@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $this->hydratorFactory = $container->get(HydratorFactory::class); |
| 61 | 61 | $this->typeManager = $container->get(TypeManager::class); |
| 62 | 62 | |
| 63 | - if (! isset($container->get('metadata')[$typeName])) { |
|
| 63 | + if (!isset($container->get('metadata')[$typeName])) { |
|
| 64 | 64 | throw new Error( |
| 65 | 65 | 'Entity ' . $typeName . ' is not mapped in the metadata', |
| 66 | 66 | ); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
| 156 | 156 | |
| 157 | 157 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
| 158 | - if (! in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
| 158 | + if (!in_array($fieldName, array_keys($this->metadata['fields']))) { |
|
| 159 | 159 | continue; |
| 160 | 160 | } |
| 161 | 161 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
| 174 | 174 | |
| 175 | 175 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
| 176 | - if (! in_array($associationName, array_keys($this->metadata['fields']))) { |
|
| 176 | + if (!in_array($associationName, array_keys($this->metadata['fields']))) { |
|
| 177 | 177 | continue; |
| 178 | 178 | } |
| 179 | 179 | |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | ]) |
| 187 | 187 | ) { |
| 188 | 188 | $targetEntity = $associationMetadata['targetEntity']; |
| 189 | - $fields[$associationName] = function () use ($targetEntity) { |
|
| 189 | + $fields[$associationName] = function() use ($targetEntity) { |
|
| 190 | 190 | $entity = $this->typeManager->build(self::class, $targetEntity); |
| 191 | 191 | |
| 192 | 192 | return [ |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | // Collections |
| 200 | 200 | $targetEntity = $associationMetadata['targetEntity']; |
| 201 | - $fields[$associationName] = function () use ($targetEntity, $associationName) { |
|
| 201 | + $fields[$associationName] = function() use ($targetEntity, $associationName) { |
|
| 202 | 202 | $entity = $this->typeManager->build(self::class, $targetEntity); |
| 203 | 203 | $shortName = $this->getTypeName() . '_' . $associationName; |
| 204 | 204 | |