Passed
Pull Request — main (#88)
by Tom
02:51
created
src/Resolve/ResolveCollectionFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function get(Entity $entity): Closure
54 54
     {
55
-        return function ($source, $args, $context, ResolveInfo $resolveInfo) {
55
+        return function($source, $args, $context, ResolveInfo $resolveInfo) {
56 56
             $filter = $args['filter'] ?? [];
57 57
 
58 58
             $fieldResolver = $this->fieldResolver;
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             }
137 137
         }
138 138
 
139
-        if (! empty($orderBy)) {
139
+        if (!empty($orderBy)) {
140 140
             $criteria->orderBy($orderBy);
141 141
         }
142 142
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         // Get total count from collection then match
195 195
         $itemCount = count($collection->matching($criteria));
196 196
 
197
-        if ($last && ! $before) {
197
+        if ($last && !$before) {
198 198
             $offset = $itemCount - $last;
199 199
         }
200 200
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
             ];
223 223
 
224 224
             $lastCursor = $cursor;
225
-            if (! $firstCursor) {
225
+            if (!$firstCursor) {
226 226
                 $firstCursor = $cursor;
227 227
             }
228 228
 
Please login to merge, or discard this patch.