@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $this->hydratorFactory = $container->get(HydratorContainer::class); |
67 | 67 | $this->typeContainer = $container->get(TypeContainer::class); |
68 | 68 | |
69 | - if (! isset($container->get('metadata')[$typeName])) { |
|
69 | + if (!isset($container->get('metadata')[$typeName])) { |
|
70 | 70 | throw new Error( |
71 | 71 | 'Entity ' . $typeName . ' is not mapped in the metadata', |
72 | 72 | ); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $aliasMap = []; |
113 | 113 | |
114 | 114 | foreach ($this->metadata['fields'] as $fieldName => $fieldMetadata) { |
115 | - if (! isset($fieldMetadata['alias'])) { |
|
115 | + if (!isset($fieldMetadata['alias'])) { |
|
116 | 116 | continue; |
117 | 117 | } |
118 | 118 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
184 | 184 | |
185 | 185 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
186 | - if (! in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
186 | + if (!in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
187 | 187 | continue; |
188 | 188 | } |
189 | 189 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
202 | 202 | |
203 | 203 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
204 | - if (! in_array($associationName, array_keys($this->metadata['fields']))) { |
|
204 | + if (!in_array($associationName, array_keys($this->metadata['fields']))) { |
|
205 | 205 | continue; |
206 | 206 | } |
207 | 207 | |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | ]) |
215 | 215 | ) { |
216 | 216 | $targetEntity = $associationMetadata['targetEntity']; |
217 | - $fields[$associationName] = function () use ($targetEntity) { |
|
217 | + $fields[$associationName] = function() use ($targetEntity) { |
|
218 | 218 | $entity = $this->entityTypeContainer->get($targetEntity); |
219 | 219 | |
220 | 220 | return [ |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | // Collections |
230 | 230 | $targetEntity = $associationMetadata['targetEntity']; |
231 | 231 | |
232 | - $fields[$this->getAliasMap()[$associationName] ?? $associationName] = function () use ($targetEntity, $associationName) { |
|
232 | + $fields[$this->getAliasMap()[$associationName] ?? $associationName] = function() use ($targetEntity, $associationName) { |
|
233 | 233 | $entity = $this->entityTypeContainer->get($targetEntity); |
234 | 234 | $shortName = $this->getTypeName() . '_' . ucwords($associationName); |
235 | 235 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | public function get(Entity $entity): Closure |
46 | 46 | { |
47 | - return function ($source, array $args, $context, ResolveInfo $info) use ($entity) { |
|
47 | + return function($source, array $args, $context, ResolveInfo $info) use ($entity) { |
|
48 | 48 | $fieldResolver = $this->fieldResolver; |
49 | 49 | $collection = $fieldResolver($source, $args, $context, $info); |
50 | 50 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | } |
108 | 108 | |
109 | - if (! empty($orderBy)) { |
|
109 | + if (!empty($orderBy)) { |
|
110 | 110 | $criteria->orderBy($orderBy); |
111 | 111 | } |
112 | 112 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | 'cursor' => $cursors['last'], |
214 | 214 | ]; |
215 | 215 | |
216 | - if (! $cursors['first']) { |
|
216 | + if (!$cursors['first']) { |
|
217 | 217 | $cursors['first'] = $cursors['last']; |
218 | 218 | } |
219 | 219 | |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $limit = $associationLimit; |
251 | 251 | } |
252 | 252 | |
253 | - if (! $limit) { |
|
253 | + if (!$limit) { |
|
254 | 254 | $limit = $this->config->getLimit(); |
255 | 255 | } |
256 | 256 | |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $offset = 0; |
272 | 272 | } |
273 | 273 | |
274 | - if ($paginationFields['last'] && ! $paginationFields['before']) { |
|
274 | + if ($paginationFields['last'] && !$paginationFields['before']) { |
|
275 | 275 | $offset = $itemCount - $paginationFields['last']; |
276 | 276 | } |
277 | 277 |