@@ -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)) |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | $itemCount = $paginator->count(); |
177 | 177 | |
178 | 178 | // Rebuild paginator if needed |
179 | - if ($last && ! $before) { |
|
179 | + if ($last && !$before) { |
|
180 | 180 | $offset = $itemCount - $last; |
181 | 181 | $queryBuilder->setFirstResult($offset); |
182 | 182 | $paginator = new Paginator($queryBuilder->getQuery()); |
@@ -193,11 +193,11 @@ discard block |
||
193 | 193 | ]; |
194 | 194 | |
195 | 195 | $lastCursor = $cursor; |
196 | - if (! $firstCursor) { |
|
196 | + if (!$firstCursor) { |
|
197 | 197 | $firstCursor = $cursor; |
198 | 198 | } |
199 | 199 | |
200 | - $index ++; |
|
200 | + $index++; |
|
201 | 201 | } |
202 | 202 | |
203 | 203 | $endCursor = $paginator->count() ? $paginator->count() - 1 : 0; |