Skip to content

Commit

Permalink
psr4 fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nalofree committed Aug 29, 2023
1 parent d1b2f8f commit d79a2a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/src/EmailChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public function check(): array

foreach ($emails as $email) {
if (preg_match($pattern, $email, $matches)) {
$checked_emails[$matches[0]] = $this->CheckMxRecord($matches[1]) ? "valid" : "invalid";
$checked_emails[$matches[0]] = $this->checkMxRecord($matches[1]) ? "valid" : "invalid";
}
}
return $checked_emails;
}

private function CheckMxRecord($domain): bool
private function checkMxRecord($domain): bool
{
getmxrr($domain, $mx_records, $mx_weight);
if (empty($mx_records)) {
Expand Down

0 comments on commit d79a2a9

Please sign in to comment.