@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $this->hydratorFactory = $container->get(HydratorContainer::class); |
70 | 70 | $this->typeContainer = $container->get(TypeContainer::class); |
71 | 71 | |
72 | - if (! isset($container->get('metadata')[$typeName])) { |
|
72 | + if (!isset($container->get('metadata')[$typeName])) { |
|
73 | 73 | throw new Error( |
74 | 74 | 'Entity ' . $typeName . ' is not mapped in the metadata', |
75 | 75 | ); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $this->extractionMap = []; |
120 | 120 | |
121 | 121 | foreach ($this->metadata['fields'] as $fieldName => $fieldMetadata) { |
122 | - if (! isset($fieldMetadata['alias'])) { |
|
122 | + if (!isset($fieldMetadata['alias'])) { |
|
123 | 123 | continue; |
124 | 124 | } |
125 | 125 | |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
191 | 191 | |
192 | 192 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
193 | - if (! in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
193 | + if (!in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
194 | 194 | continue; |
195 | 195 | } |
196 | 196 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
213 | 213 | |
214 | 214 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
215 | - if (! in_array($associationName, array_keys($this->metadata['fields']))) { |
|
215 | + if (!in_array($associationName, array_keys($this->metadata['fields']))) { |
|
216 | 216 | continue; |
217 | 217 | } |
218 | 218 | |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | ]) |
226 | 226 | ) { |
227 | 227 | $targetEntity = $associationMetadata['targetEntity']; |
228 | - $fields[$associationName] = function () use ($targetEntity) { |
|
228 | + $fields[$associationName] = function() use ($targetEntity) { |
|
229 | 229 | $entity = $this->entityTypeContainer->get($targetEntity); |
230 | 230 | |
231 | 231 | return [ |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | // Collections |
241 | 241 | $targetEntity = $associationMetadata['targetEntity']; |
242 | 242 | |
243 | - $fields[$this->getExtractionMap()[$associationName] ?? $associationName] = function () use ($targetEntity, $associationName) { |
|
243 | + $fields[$this->getExtractionMap()[$associationName] ?? $associationName] = function() use ($targetEntity, $associationName) { |
|
244 | 244 | $entity = $this->entityTypeContainer->get($targetEntity); |
245 | 245 | $shortName = $this->getTypeName() . '_' . ucwords($associationName); |
246 | 246 |