@@ -11,7 +11,7 @@ discard block |
||
| 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 |
||
| 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; |
@@ -15,7 +15,7 @@ |
||
| 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) { |