Passed
Push — 1.x ( 3ddd0c...ced68d )
by
unknown
03:41
created
src/Rules/ValidEvenNumber.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function passes($attribute, $value): bool
13 13
     {
14
-        if (! is_numeric($value)) {
14
+        if ( ! is_numeric($value)) {
15 15
             return false;
16 16
         }
17 17
 
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
         $number = explode('.', $number);
20 20
 
21 21
         // Check if there is a decimal part and it's not zero
22
-        if (isset($number[1]) && $number[1] != 0) {
22
+        if (isset($number[ 1 ]) && $number[ 1 ] != 0) {
23 23
             return false;
24 24
         }
25 25
 
26
-        $number = $number[0];
26
+        $number = $number[ 0 ];
27 27
 
28 28
         if (extension_loaded('gmp')) {
29 29
             return gmp_cmp(gmp_mod($number, '2'), '0') === 0;
Please login to merge, or discard this patch.
src/Rules/ValidCountry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function passes($attribute, $value): bool
17 17
     {
18
-        $countries = config('laravel-validate.countries', []);
18
+        $countries = config('laravel-validate.countries', [ ]);
19 19
 
20 20
         // Check value exists in country keys
21 21
         if ($this->validByKey) {
Please login to merge, or discard this patch.