@@ -31,7 +31,7 @@ discard block |
||
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 |
||
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 |
||
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 |