Completed
Pull Request — master (#33)
by Tsukasa
20s
created
src/Validation/ApollonValidation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             return false;
81 81
         }
82 82
 
83
-        return abs((int)$check) <= $limit;
83
+        return abs((int) $check) <= $limit;
84 84
     }
85 85
 
86 86
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $regex = '/^[a-zA-Z0-9]+$/u';
96 96
 
97
-        return (bool)self::_check($check, $regex);
97
+        return (bool) self::_check($check, $regex);
98 98
     }
99 99
 
100 100
     /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         // 半角スペース、全角スペースは認めない
118 118
         $regex = '/^[a-zA-Z0-9\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\x7e]+$/u';
119 119
 
120
-        return (bool)self::_check($check, $regex);
120
+        return (bool) self::_check($check, $regex);
121 121
     }
122 122
 
123 123
     /**
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             return false;
145 145
         }
146 146
 
147
-        return abs((int)$check) <= $limit;
147
+        return abs((int) $check) <= $limit;
148 148
     }
149 149
 
150 150
     /**
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
      */
348 348
     public static function emailNonRfc($check): bool
349 349
     {
350
-        $regex = '/^[\.a-z0-9!#$%&\'*+\/=?^_`{|}~-]+@' . self::$_pattern['hostname'] . '$/ui';
350
+        $regex = '/^[\.a-z0-9!#$%&\'*+\/=?^_`{|}~-]+@'.self::$_pattern['hostname'].'$/ui';
351 351
 
352 352
         return self::_check($check, $regex);
353 353
     }
Please login to merge, or discard this patch.