Passed
Branch 2.2 (c9783b)
by Pieter
05:14
created
src/Services/Eloquent/EloquentModelSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@
 block discarded – undo
58 58
 
59 59
         return array_filter(
60 60
             array_map(
61
-                function ($modelInstance) use (&$resourceClass) {
61
+                function($modelInstance) use (&$resourceClass) {
62 62
                     return $this->toResource($modelInstance, $resourceClass);
63 63
                 }, iterator_to_array($modelInstances)
64 64
             ),
65
-            function ($resource) {
65
+            function($resource) {
66 66
                 return !$this->gate->getPolicyFor($resource) && $this->gate->allows('get', $resource);
67 67
             }
68 68
         );
Please login to merge, or discard this patch.