Passed
Branch master (4698e5)
by Timur
04:15
created
Category
src/ExtraFieldsDetector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
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 .= '.*';
Please login to merge, or discard this patch.
src/ExtraFormRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.