Passed
Push — master ( 0191aa...d62f7c )
by John
03:39
created
src/EmailValidator/Validator/LocalPart/AtomValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,6 +51,6 @@
 block discarded – undo
51 51
         }
52 52
 
53 53
         // Check for valid characters
54
-        return (bool)preg_match('/^[a-zA-Z0-9!#$%&\'*+\-\/=?^_`{|}~]+$/', $atom);
54
+        return (bool) preg_match('/^[a-zA-Z0-9!#$%&\'*+\-\/=?^_`{|}~]+$/', $atom);
55 55
     }
56 56
 } 
57 57
\ No newline at end of file
Please login to merge, or discard this patch.
src/EmailValidator/Validator/Domain/DomainNameValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         // Rest of the label must be alphanumeric or hyphen
124 124
         $rest = substr($label, 4);
125
-        return (bool)preg_match('/^[a-zA-Z0-9-]+$/', $rest);
125
+        return (bool) preg_match('/^[a-zA-Z0-9-]+$/', $rest);
126 126
     }
127 127
 
128 128
     /**
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     private function hasValidLabelFormat(string $label): bool
146 146
     {
147
-        return (bool)preg_match('/^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$/', $label);
147
+        return (bool) preg_match('/^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$/', $label);
148 148
     }
149 149
 
150 150
     /**
Please login to merge, or discard this patch.
src/EmailValidator/Validator/Domain/DomainLiteralValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     private function hasInvalidCharacters(string $content): bool
60 60
     {
61
-        return (bool)preg_match('/[\s\x00-\x1F\x7F]/', $content);
61
+        return (bool) preg_match('/[\s\x00-\x1F\x7F]/', $content);
62 62
     }
63 63
 
64 64
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             return false;
106 106
         }
107 107
 
108
-        $value = (int)$octet;
108
+        $value = (int) $octet;
109 109
         return $value >= 0 && $value <= 255;
110 110
     }
111 111
 
@@ -208,6 +208,6 @@  discard block
 block discarded – undo
208 208
         }
209 209
 
210 210
         // Must be 1-4 hexadecimal digits (case-insensitive)
211
-        return (bool)preg_match('/^[0-9A-Fa-f]{1,4}$/', $group);
211
+        return (bool) preg_match('/^[0-9A-Fa-f]{1,4}$/', $group);
212 212
     }
213 213
 } 
214 214
\ No newline at end of file
Please login to merge, or discard this patch.