@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $fields = []; |
42 | 42 | $targetEntity = $this->metadata->get($id); |
43 | 43 | |
44 | - if (! count($requiredFields) && ! count($optionalFields)) { |
|
44 | + if (!count($requiredFields) && !count($optionalFields)) { |
|
45 | 45 | $this->addAllFieldsAsRequired($targetEntity, $fields); |
46 | 46 | } else { |
47 | 47 | $this->addRequiredFields($targetEntity, $requiredFields, $fields); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | array &$fields, |
66 | 66 | ): void { |
67 | 67 | foreach ($this->entityManager->getClassMetadata($targetEntity->getEntityClass())->getFieldNames() as $fieldName) { |
68 | - if (! in_array($fieldName, $optionalFields) && $optionalFields !== ['*']) { |
|
68 | + if (!in_array($fieldName, $optionalFields) && $optionalFields !== ['*']) { |
|
69 | 69 | continue; |
70 | 70 | } |
71 | 71 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | array &$fields, |
97 | 97 | ): void { |
98 | 98 | foreach ($this->entityManager->getClassMetadata($targetEntity->getEntityClass())->getFieldNames() as $fieldName) { |
99 | - if (! in_array($fieldName, $requiredFields) && $requiredFields !== ['*']) { |
|
99 | + if (!in_array($fieldName, $requiredFields) && $requiredFields !== ['*']) { |
|
100 | 100 | continue; |
101 | 101 | } |
102 | 102 |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | return $this->metadataConfig['typeName']; |
65 | 65 | } |
66 | 66 | |
67 | - public function getDescription(): string|null |
|
67 | + public function getDescription(): string | null |
|
68 | 68 | { |
69 | 69 | return $this->metadataConfig['description']; |
70 | 70 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
123 | 123 | |
124 | 124 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
125 | - if (! in_array($fieldName, array_keys($this->metadataConfig['fields']))) { |
|
125 | + if (!in_array($fieldName, array_keys($this->metadataConfig['fields']))) { |
|
126 | 126 | continue; |
127 | 127 | } |
128 | 128 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $classMetadata = $this->entityManager->getClassMetadata($this->getEntityClass()); |
141 | 141 | |
142 | 142 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
143 | - if (! in_array($associationName, array_keys($this->metadataConfig['fields']))) { |
|
143 | + if (!in_array($associationName, array_keys($this->metadataConfig['fields']))) { |
|
144 | 144 | continue; |
145 | 145 | } |
146 | 146 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | case ClassMetadataInfo::MANY_TO_ONE: |
152 | 152 | case ClassMetadataInfo::TO_ONE: |
153 | 153 | $targetEntity = $associationMetadata['targetEntity']; |
154 | - $fields[$associationName] = function () use ($targetEntity) { |
|
154 | + $fields[$associationName] = function() use ($targetEntity) { |
|
155 | 155 | $entity = $this->metadata->get($targetEntity); |
156 | 156 | |
157 | 157 | return [ |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | case ClassMetadataInfo::MANY_TO_MANY: |
165 | 165 | case ClassMetadataInfo::TO_MANY: |
166 | 166 | $targetEntity = $associationMetadata['targetEntity']; |
167 | - $fields[$associationName] = function () use ($targetEntity, $associationName) { |
|
167 | + $fields[$associationName] = function() use ($targetEntity, $associationName) { |
|
168 | 168 | $entity = $this->metadata->get($targetEntity); |
169 | 169 | $shortName = $this->getTypeName() . '_' . $associationName; |
170 | 170 |