Passed
Pull Request — main (#127)
by Tom
03:01
created
src/Resolve/ResolveCollectionFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     public function get(Entity $entity): Closure
59 59
     {
60
-        return function ($source, array $args, $context, ResolveInfo $info) {
60
+        return function($source, array $args, $context, ResolveInfo $info) {
61 61
             $fieldResolver = $this->fieldResolver;
62 62
             $collection    = $fieldResolver($source, $args, $context, $info);
63 63
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             }
119 119
         }
120 120
 
121
-        if (! empty($orderBy)) {
121
+        if (!empty($orderBy)) {
122 122
             $criteria->orderBy($orderBy);
123 123
         }
124 124
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         array $pagination,
135 135
         PersistentCollection $collection,
136 136
         Criteria $criteria,
137
-        string|null $filterCriteriaEventName,
137
+        string | null $filterCriteriaEventName,
138 138
         mixed ...$resolve,
139 139
     ): array {
140 140
         $paginationFields = [
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
                 'cursor' => $cursors['last'],
225 225
             ];
226 226
 
227
-            if (! $cursors['first']) {
227
+            if (!$cursors['first']) {
228 228
                 $cursors['first'] = $cursors['last'];
229 229
             }
230 230
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
             $offset = 0;
268 268
         }
269 269
 
270
-        if ($paginationFields['last'] && ! $paginationFields['before']) {
270
+        if ($paginationFields['last'] && !$paginationFields['before']) {
271 271
             $offset = $itemCount - $paginationFields['last'];
272 272
         }
273 273
 
Please login to merge, or discard this patch.
src/Resolve/ResolveEntityFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function get(Entity $entity, string $eventName): Closure
33 33
     {
34
-        return function ($objectValue, array $args, $context, ResolveInfo $info) use ($entity, $eventName) {
34
+        return function($objectValue, array $args, $context, ResolveInfo $info) use ($entity, $eventName) {
35 35
             $entityClass = $entity->getEntityClass();
36 36
 
37 37
             $queryBuilderFilter = (new Applicator($this->entityManager, $entityClass))
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $itemCount = $paginator->count();
187 187
 
188 188
         // Rebuild paginator if needed
189
-        if ($paginationFields['last'] && ! $paginationFields['before']) {
189
+        if ($paginationFields['last'] && !$paginationFields['before']) {
190 190
             $offsetAndLimit['offset'] = $itemCount - $paginationFields['last'];
191 191
             $queryBuilder->setFirstResult($offsetAndLimit['offset']);
192 192
             $paginator = new Paginator($queryBuilder->getQuery());
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 'cursor' => $cursors['last'],
201 201
             ];
202 202
 
203
-            if (! $cursors['first']) {
203
+            if (!$cursors['first']) {
204 204
                 $cursors['first'] = $cursors['last'];
205 205
             }
206 206
 
Please login to merge, or discard this patch.