Passed
Pull Request — main (#126)
by Tom
05:09 queued 02:17
created
src/Resolve/ResolveCollectionFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     public function get(Entity $entity): Closure
58 58
     {
59
-        return function ($source, array $args, $context, ResolveInfo $info) {
59
+        return function($source, array $args, $context, ResolveInfo $info) {
60 60
             $fieldResolver = $this->fieldResolver;
61 61
             $collection    = $fieldResolver($source, $args, $context, $info);
62 62
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             }
118 118
         }
119 119
 
120
-        if (! empty($orderBy)) {
120
+        if (!empty($orderBy)) {
121 121
             $criteria->orderBy($orderBy);
122 122
         }
123 123
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         array $pagination,
134 134
         PersistentCollection $collection,
135 135
         Criteria $criteria,
136
-        string|null $filterCriteriaEventName,
136
+        string | null $filterCriteriaEventName,
137 137
         mixed ...$resolve,
138 138
     ): array {
139 139
         $paginationFields = [
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             ];
199 199
 
200 200
             $lastCursor = $cursor;
201
-            if (! $firstCursor) {
201
+            if (!$firstCursor) {
202 202
                 $firstCursor = $cursor;
203 203
             }
204 204
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
             $offset = 0;
250 250
         }
251 251
 
252
-        if ($paginationFields['last'] && ! $paginationFields['before']) {
252
+        if ($paginationFields['last'] && !$paginationFields['before']) {
253 253
             $offset = $itemCount - $paginationFields['last'];
254 254
         }
255 255
 
Please login to merge, or discard this patch.