Passed
Push — master ( 116646...98d703 )
by farhad
02:57 queued 01:11
created
src/Rules/IranMobile.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,9 @@
 block discarded – undo
14 14
 
15 15
     public function rule($attribute, $value, $parameters, $validator): bool
16 16
     {
17
-        if ((bool) preg_match('/^(((98)|(\+98)|(0098)|0)(9){1}[0-9]{9})+$/', $value) || (bool) preg_match('/^(9){1}[0-9]{9}+$/', $value))
18
-            return true;
17
+        if ((bool) preg_match('/^(((98)|(\+98)|(0098)|0)(9){1}[0-9]{9})+$/', $value) || (bool) preg_match('/^(9){1}[0-9]{9}+$/', $value)) {
18
+                    return true;
19
+        }
19 20
 
20 21
         return false;
21 22
     }
Please login to merge, or discard this patch.