Completed
Push — master ( c69bf1...9e1abb )
by Lars
02:53
created
src/voku/helper/EmailCheck.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
248 248
   public static function isDnsError(string $domain)
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');
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
    */
263 263
   private static function punnycode(string $local, string $domain): array
264 264
   {
265
-    $max_chr_width = UTF8::max_chr_width($local . $domain);
265
+    $max_chr_width = UTF8::max_chr_width($local.$domain);
266 266
 
267 267
     if ($max_chr_width <= 1) {
268 268
       return [$local, $domain];
Please login to merge, or discard this patch.
src/voku/helper/data/domainsTypo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     'yahhoo.de',
78 78
 ];
79 79
 
80
-$result =& $data;
80
+$result = & $data;
81 81
 unset($data);
82 82
 
83 83
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/data/domainsExample.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     'example.org',
12 12
 ];
13 13
 
14
-$result =& $data;
14
+$result = & $data;
15 15
 unset($data);
16 16
 
17 17
 return $result;
Please login to merge, or discard this patch.
src/voku/helper/data/domainsTemporary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2381,7 +2381,7 @@
 block discarded – undo
2381 2381
     'zzz.com',
2382 2382
 ];
2383 2383
 
2384
-$result =& $data;
2384
+$result = & $data;
2385 2385
 unset($data);
2386 2386
 
2387 2387
 return $result;
Please login to merge, or discard this patch.