@@ -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 metadata', |
76 | 76 | ); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $this->aliasMap = []; |
121 | 121 | |
122 | 122 | foreach ($this->metadata['fields'] as $fieldName => $fieldMetadata) { |
123 | - if (! isset($fieldMetadata['alias'])) { |
|
123 | + if (!isset($fieldMetadata['alias'])) { |
|
124 | 124 | continue; |
125 | 125 | } |
126 | 126 | |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
192 | 192 | |
193 | 193 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
194 | - if (! in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
194 | + if (!in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
195 | 195 | continue; |
196 | 196 | } |
197 | 197 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
214 | 214 | |
215 | 215 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
216 | - if (! in_array($associationName, array_keys($this->metadata['fields']))) { |
|
216 | + if (!in_array($associationName, array_keys($this->metadata['fields']))) { |
|
217 | 217 | continue; |
218 | 218 | } |
219 | 219 | |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | ]) |
227 | 227 | ) { |
228 | 228 | $targetEntity = $associationMetadata['targetEntity']; |
229 | - $fields[$associationName] = function () use ($targetEntity) { |
|
229 | + $fields[$associationName] = function() use ($targetEntity) { |
|
230 | 230 | $entity = $this->entityTypeContainer->get($targetEntity); |
231 | 231 | |
232 | 232 | return [ |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | // Collections |
242 | 242 | $targetEntity = $associationMetadata['targetEntity']; |
243 | 243 | |
244 | - $fields[$this->getAliasMap()[$associationName] ?? $associationName] = function () use ($targetEntity, $associationName) { |
|
244 | + $fields[$this->getAliasMap()[$associationName] ?? $associationName] = function() use ($targetEntity, $associationName) { |
|
245 | 245 | $entity = $this->entityTypeContainer->get($targetEntity); |
246 | 246 | $shortName = $this->getTypeName() . '_' . ucwords($associationName); |
247 | 247 |