@@ -57,7 +57,7 @@ discard block |
||
| 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 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | ); |
| 70 | 70 | |
| 71 | 71 | $metadataConfig = $this->metadata->getMetadataConfig(); |
| 72 | - $entityClass = ClassUtils::getRealClass($source::class); |
|
| 72 | + $entityClass = ClassUtils::getRealClass($source::class); |
|
| 73 | 73 | |
| 74 | 74 | return $this->buildPagination( |
| 75 | 75 | $args['pagination'] ?? [], |
@@ -118,7 +118,7 @@ discard block |
||
| 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 |
||
| 134 | 134 | array $pagination, |
| 135 | 135 | PersistentCollection $collection, |
| 136 | 136 | Criteria $criteria, |
| 137 | - string|null $filterCriteriaEventName, |
|
| 137 | + string | null $filterCriteriaEventName, |
|
| 138 | 138 | ...$resolve, |
| 139 | 139 | ): array { |
| 140 | 140 | $first = 0; |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | // Get total count from collection then match |
| 182 | 182 | $itemCount = count($collection->matching($criteria)); |
| 183 | 183 | |
| 184 | - if ($last && ! $before) { |
|
| 184 | + if ($last && !$before) { |
|
| 185 | 185 | $offset = $itemCount - $last; |
| 186 | 186 | } |
| 187 | 187 | |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | ]; |
| 223 | 223 | |
| 224 | 224 | $lastCursor = $cursor; |
| 225 | - if (! $firstCursor) { |
|
| 225 | + if (!$firstCursor) { |
|
| 226 | 226 | $firstCursor = $cursor; |
| 227 | 227 | } |
| 228 | 228 | |