@@ -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 | ); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | foreach ($this->metadata['fields'] as $fieldName => $fieldMetadata) { |
120 | - if (! isset($fieldMetadata['alias'])) { |
|
120 | + if (!isset($fieldMetadata['alias'])) { |
|
121 | 121 | continue; |
122 | 122 | } |
123 | 123 | |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
189 | 189 | |
190 | 190 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
191 | - if (! in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
191 | + if (!in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
192 | 192 | continue; |
193 | 193 | } |
194 | 194 | |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
211 | 211 | |
212 | 212 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
213 | - if (! in_array($associationName, array_keys($this->metadata['fields']))) { |
|
213 | + if (!in_array($associationName, array_keys($this->metadata['fields']))) { |
|
214 | 214 | continue; |
215 | 215 | } |
216 | 216 | |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | ]) |
224 | 224 | ) { |
225 | 225 | $targetEntity = $associationMetadata['targetEntity']; |
226 | - $fields[$associationName] = function () use ($targetEntity) { |
|
226 | + $fields[$associationName] = function() use ($targetEntity) { |
|
227 | 227 | $entity = $this->entityTypeContainer->get($targetEntity); |
228 | 228 | |
229 | 229 | return [ |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | // Collections |
239 | 239 | $targetEntity = $associationMetadata['targetEntity']; |
240 | 240 | |
241 | - $fields[$this->getExtractionMap()[$associationName] ?? $associationName] = function () use ($targetEntity, $associationName) { |
|
241 | + $fields[$this->getExtractionMap()[$associationName] ?? $associationName] = function() use ($targetEntity, $associationName) { |
|
242 | 242 | $entity = $this->entityTypeContainer->get($targetEntity); |
243 | 243 | $shortName = $this->getTypeName() . '_' . ucwords($associationName); |
244 | 244 |