Passed
Pull Request — main (#136)
by Tom
06:29 queued 03:33
created
src/Resolve/ResolveEntityFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function get(Entity $entity, string $eventName): Closure
35 35
     {
36
-        return function ($objectValue, array $args, $context, ResolveInfo $info) use ($entity, $eventName) {
36
+        return function($objectValue, array $args, $context, ResolveInfo $info) use ($entity, $eventName) {
37 37
             $entityClass = $entity->getEntityClass();
38 38
 
39 39
             $queryBuilderFilter = (new Applicator($this->entityManager, $entityClass))
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         $itemCount = $paginator->count();
191 191
 
192 192
         // Rebuild paginator if needed
193
-        if ($paginationFields['last'] && ! $paginationFields['before']) {
193
+        if ($paginationFields['last'] && !$paginationFields['before']) {
194 194
             $offsetAndLimit['offset'] = $itemCount - $paginationFields['last'];
195 195
             $queryBuilder->setFirstResult($offsetAndLimit['offset']);
196 196
             $paginator = new Paginator($queryBuilder->getQuery());
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
                 'cursor' => $cursors['last'],
205 205
             ];
206 206
 
207
-            if (! $cursors['first']) {
207
+            if (!$cursors['first']) {
208 208
                 $cursors['first'] = $cursors['last'];
209 209
             }
210 210
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
         $limit = $this->metadata[$entity->getEntityClass()]['limit'];
234 234
 
235
-        if (! $limit) {
235
+        if (!$limit) {
236 236
             $limit = $this->config->getLimit();
237 237
         }
238 238
 
Please login to merge, or discard this patch.