@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function except($rules): self |
| 32 | 32 | { |
| 33 | - $this->except = ! is_array($rules) ? func_get_args() : $rules; |
|
| 33 | + $this->except = !is_array($rules) ? func_get_args() : $rules; |
|
| 34 | 34 | |
| 35 | 35 | return $this; |
| 36 | 36 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | return collect($rules) |
| 83 | - ->reject(function ($rule) { |
|
| 83 | + ->reject(function($rule) { |
|
| 84 | 84 | return in_array($rule, $this->except); |
| 85 | 85 | })->toArray(); |
| 86 | 86 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | protected function guardAgainstInvalidKey(string $key, array $rules) |
| 48 | 48 | { |
| 49 | - if (! array_key_exists($key, $rules)) { |
|
| 49 | + if (!array_key_exists($key, $rules)) { |
|
| 50 | 50 | throw new OutOfBoundsException("invalid key, '{$key}'"); |
| 51 | 51 | } |
| 52 | 52 | } |