Passed
Push — 12.3.x ( 8c9e03...7a953c )
by Tom
02:16
created
src/Resolve/ResolveCollectionFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function get(Entity $entity): Closure
46 46
     {
47
-        return function ($source, array $args, $context, ResolveInfo $info) use ($entity) {
47
+        return function($source, array $args, $context, ResolveInfo $info) use ($entity) {
48 48
             $fieldResolver = $this->fieldResolver;
49 49
             $collection    = $fieldResolver($source, $args, $context, $info);
50 50
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             }
107 107
         }
108 108
 
109
-        if (! empty($orderBy)) {
109
+        if (!empty($orderBy)) {
110 110
             $criteria->orderBy($orderBy);
111 111
         }
112 112
 
@@ -223,11 +223,11 @@  discard block
 block discarded – undo
223 223
                 'cursor' => $cursors['last'],
224 224
             ];
225 225
 
226
-            if (! $startCursor) {
226
+            if (!$startCursor) {
227 227
                 $startCursor = $cursors['last'];
228 228
             }
229 229
 
230
-            if (! $cursors['first']) {
230
+            if (!$cursors['first']) {
231 231
                 $cursors['first'] = $cursors['last'];
232 232
             }
233 233
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
             $limit = $associationLimit;
266 266
         }
267 267
 
268
-        if (! $limit) {
268
+        if (!$limit) {
269 269
             $limit = $this->config->getLimit();
270 270
         }
271 271
 
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             $offset = 0;
287 287
         }
288 288
 
289
-        if ($paginationFields['last'] && ! $paginationFields['before']) {
289
+        if ($paginationFields['last'] && !$paginationFields['before']) {
290 290
             $offset = $itemCount - $paginationFields['last'];
291 291
         }
292 292
 
Please login to merge, or discard this patch.
src/Resolve/ResolveEntityFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function get(Entity $entity, string|null $eventName): Closure
36 36
     {
37
-        return function ($objectValue, array $args, $context, ResolveInfo $info) use ($entity, $eventName) {
37
+        return function($objectValue, array $args, $context, ResolveInfo $info) use ($entity, $eventName) {
38 38
             $entityClass        = $entity->getEntityClass();
39 39
             $queryBuilderFilter = new QueryBuilderFilter();
40 40
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         $itemCount = $paginator->count();
149 149
 
150 150
         // Rebuild paginator if needed
151
-        if ($paginationFields['last'] && ! $paginationFields['before']) {
151
+        if ($paginationFields['last'] && !$paginationFields['before']) {
152 152
             $offsetAndLimit['offset'] = $itemCount - $paginationFields['last'];
153 153
             $queryBuilder->setFirstResult($offsetAndLimit['offset']);
154 154
             $paginator = new Paginator($queryBuilder->getQuery());
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
                 'cursor' => $cursors['last'],
164 164
             ];
165 165
 
166
-            if (! $startCursor) {
166
+            if (!$startCursor) {
167 167
                 $startCursor = $cursors['last'];
168 168
             }
169 169
 
170
-            if (! $cursors['first']) {
170
+            if (!$cursors['first']) {
171 171
                 $cursors['first'] = $cursors['last'];
172 172
             }
173 173
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
         $limit = $this->metadata[$entity->getEntityClass()]['limit'];
198 198
 
199
-        if (! $limit) {
199
+        if (!$limit) {
200 200
             $limit = $this->config->getLimit();
201 201
         }
202 202
 
Please login to merge, or discard this patch.