@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace voku\helper; |
| 6 | 6 | |
@@ -130,10 +130,10 @@ discard block |
||
| 130 | 130 | list($local, $domain) = self::punnycode($local, $domain); |
| 131 | 131 | |
| 132 | 132 | if ($quoteHelperForIdn === true) { |
| 133 | - $local = '"' . $local . '"'; |
|
| 133 | + $local = '"'.$local.'"'; |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | - $email = $local . '@' . $domain; |
|
| 136 | + $email = $local.'@'.$domain; |
|
| 137 | 137 | |
| 138 | 138 | if (!\filter_var($email, FILTER_VALIDATE_EMAIL)) { |
| 139 | 139 | return false; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | */ |
| 228 | 228 | protected static function getData(string $file) |
| 229 | 229 | { |
| 230 | - $file = __DIR__ . '/data/' . $file . '.php'; |
|
| 230 | + $file = __DIR__.'/data/'.$file.'.php'; |
|
| 231 | 231 | if (\file_exists($file)) { |
| 232 | 232 | /** @noinspection PhpIncludeInspection */ |
| 233 | 233 | return require $file; |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | public static function isDnsError(string $domain): bool |
| 249 | 249 | { |
| 250 | 250 | if (\function_exists('checkdnsrr')) { |
| 251 | - return !\checkdnsrr($domain . '.', 'MX') || !\checkdnsrr($domain, 'A'); |
|
| 251 | + return !\checkdnsrr($domain.'.', 'MX') || !\checkdnsrr($domain, 'A'); |
|
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | throw new \Exception(' Can\'t call checkdnsrr'); |