@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $this->hydratorFactory = $container->get(HydratorContainer::class); |
71 | 71 | $this->typeContainer = $container->get(TypeContainer::class); |
72 | 72 | |
73 | - if (! isset($container->get('metadata')[$typeName])) { |
|
73 | + if (!isset($container->get('metadata')[$typeName])) { |
|
74 | 74 | throw new Error( |
75 | 75 | 'Entity ' . $typeName . ' is not mapped in the GraphQL metadata', |
76 | 76 | ); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | foreach ($this->metadata['fields'] as $fieldName => $fieldMetadata) { |
121 | - if (! isset($fieldMetadata['alias'])) { |
|
121 | + if (!isset($fieldMetadata['alias'])) { |
|
122 | 122 | continue; |
123 | 123 | } |
124 | 124 | |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
195 | 195 | |
196 | 196 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
197 | - if (! in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
197 | + if (!in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
198 | 198 | continue; |
199 | 199 | } |
200 | 200 | |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
217 | 217 | |
218 | 218 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
219 | - if (! in_array($associationName, array_keys($this->metadata['fields']))) { |
|
219 | + if (!in_array($associationName, array_keys($this->metadata['fields']))) { |
|
220 | 220 | continue; |
221 | 221 | } |
222 | 222 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | ]) |
230 | 230 | ) { |
231 | 231 | $targetEntity = $associationMetadata['targetEntity']; |
232 | - $fields[$associationName] = function () use ($targetEntity) { |
|
232 | + $fields[$associationName] = function() use ($targetEntity) { |
|
233 | 233 | $entity = $this->entityTypeContainer->get($targetEntity); |
234 | 234 | |
235 | 235 | return [ |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | // Collections |
245 | 245 | $targetEntity = $associationMetadata['targetEntity']; |
246 | 246 | |
247 | - $fields[$this->getExtractionMap()[$associationName] ?? $associationName] = function () use ($targetEntity, $associationName) { |
|
247 | + $fields[$this->getExtractionMap()[$associationName] ?? $associationName] = function() use ($targetEntity, $associationName) { |
|
248 | 248 | $entity = $this->entityTypeContainer->get($targetEntity); |
249 | 249 | $shortName = $this->getTypeName() . '_' . ucwords($associationName); |
250 | 250 |