@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $this->resolveCollectionFactory = $container->get(ResolveCollectionFactory::class); |
74 | 74 | $this->typeContainer = $container->get(TypeContainer::class); |
75 | 75 | |
76 | - if (! isset($container->get('metadata')[$typeName])) { |
|
76 | + if (!isset($container->get('metadata')[$typeName])) { |
|
77 | 77 | throw new Error( |
78 | 78 | 'Entity ' . $typeName . ' is not mapped in the GraphQL metadata', |
79 | 79 | ); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | foreach ($this->metadata['fields'] as $fieldName => $fieldMetadata) { |
124 | - if (! isset($fieldMetadata['alias'])) { |
|
124 | + if (!isset($fieldMetadata['alias'])) { |
|
125 | 125 | continue; |
126 | 126 | } |
127 | 127 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
198 | 198 | |
199 | 199 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
200 | - if (! in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
200 | + if (!in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
201 | 201 | continue; |
202 | 202 | } |
203 | 203 | |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
220 | 220 | |
221 | 221 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
222 | - if (! in_array($associationName, array_keys($this->metadata['fields']))) { |
|
222 | + if (!in_array($associationName, array_keys($this->metadata['fields']))) { |
|
223 | 223 | continue; |
224 | 224 | } |
225 | 225 | |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | ]) |
233 | 233 | ) { |
234 | 234 | $targetEntity = $associationMetadata['targetEntity']; |
235 | - $fields[$associationName] = function () use ($targetEntity) { |
|
235 | + $fields[$associationName] = function() use ($targetEntity) { |
|
236 | 236 | $entity = $this->entityTypeContainer->get($targetEntity); |
237 | 237 | |
238 | 238 | return [ |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | // Collections |
248 | 248 | $targetEntity = $associationMetadata['targetEntity']; |
249 | 249 | |
250 | - $fields[$this->getExtractionMap()[$associationName] ?? $associationName] = function () use ($targetEntity, $associationName) { |
|
250 | + $fields[$this->getExtractionMap()[$associationName] ?? $associationName] = function() use ($targetEntity, $associationName) { |
|
251 | 251 | $entity = $this->entityTypeContainer->get($targetEntity); |
252 | 252 | $shortName = $this->getTypeName() . '_' . ucwords($associationName); |
253 | 253 |