@@ -16,12 +16,12 @@ |
||
16 | 16 | $keys = $rules->keys(); |
17 | 17 | $filtered = []; |
18 | 18 | |
19 | - $rules->each(function ($rules, $key) use ($original, $keys, &$filtered) { |
|
19 | + $rules->each(function($rules, $key) use ($original, $keys, &$filtered) { |
|
20 | 20 | if (is_string($rules)) { |
21 | 21 | $rules = explode('|', $rules); |
22 | 22 | } |
23 | 23 | |
24 | - $nestedRules = $keys->filter(fn ($otherKey) => strpos($otherKey, $key.'.') === 0); |
|
24 | + $nestedRules = $keys->filter(fn($otherKey) => strpos($otherKey, $key.'.') === 0); |
|
25 | 25 | |
26 | 26 | if (in_array('array', $rules) && $nestedRules->isEmpty()) { |
27 | 27 | $key .= '.*'; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** @var Validator $validator */ |
23 | 23 | $validator = $factory->make($data, $rules, $this->messages(), $this->attributes()); |
24 | 24 | |
25 | - return $validator->afterSuccess(function (Validator $validator) { |
|
25 | + return $validator->afterSuccess(function(Validator $validator) { |
|
26 | 26 | /** @var ExtraFieldsDetector $detector */ |
27 | 27 | $detector = $this->container->make( |
28 | 28 | config('extra-validator.extra_fields_detector', ExtraFieldsDetector::class) |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $this->extraCallbacks[$type] = []; |
40 | 40 | } |
41 | 41 | |
42 | - $this->extraCallbacks[$type][] = fn () => call_user_func_array($callback, [$this]); |
|
42 | + $this->extraCallbacks[$type][] = fn() => call_user_func_array($callback, [$this]); |
|
43 | 43 | |
44 | 44 | return $this; |
45 | 45 | } |