@@ -18,13 +18,13 @@ |
||
18 | 18 | /** @throws Error */ |
19 | 19 | public function get(string $id): Entity |
20 | 20 | { |
21 | - if (! isset($this->metadataConfig[$id])) { |
|
21 | + if (!isset($this->metadataConfig[$id])) { |
|
22 | 22 | throw new Error( |
23 | 23 | 'Entity ' . $id . ' is not mapped in the metadata', |
24 | 24 | ); |
25 | 25 | } |
26 | 26 | |
27 | - if (! $this->has($id)) { |
|
27 | + if (!$this->has($id)) { |
|
28 | 28 | $this->set($id, new Entity($this->container, $this->metadataConfig[$id])); |
29 | 29 | } |
30 | 30 |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | // Only one matching instance per group is allowed |
146 | 146 | assert( |
147 | - ! $entityInstance, |
|
147 | + !$entityInstance, |
|
148 | 148 | 'Duplicate attribute found for entity ' |
149 | 149 | . $entityClass . ', group ' . $instance->getGroup(), |
150 | 150 | ); |
@@ -164,8 +164,7 @@ discard block |
||
164 | 164 | 'excludeCriteria' => $instance->getExcludeCriteria(), |
165 | 165 | 'description' => $instance->getDescription(), |
166 | 166 | 'typeName' => $instance->getTypeName() |
167 | - ? $this->appendGroupSuffix($instance->getTypeName()) : |
|
168 | - $this->getTypeName($entityClass), |
|
167 | + ? $this->appendGroupSuffix($instance->getTypeName()) : $this->getTypeName($entityClass), |
|
169 | 168 | ]; |
170 | 169 | } |
171 | 170 | |
@@ -188,7 +187,7 @@ discard block |
||
188 | 187 | |
189 | 188 | // Only one matching instance per group is allowed |
190 | 189 | assert( |
191 | - ! $fieldInstance, |
|
190 | + !$fieldInstance, |
|
192 | 191 | 'Duplicate attribute found for field ' |
193 | 192 | . $fieldName . ', group ' . $instance->getGroup(), |
194 | 193 | ); |
@@ -231,7 +230,7 @@ discard block |
||
231 | 230 | |
232 | 231 | // Only one matching instance per group is allowed |
233 | 232 | assert( |
234 | - ! $associationInstance, |
|
233 | + !$associationInstance, |
|
235 | 234 | 'Duplicate attribute found for association ' |
236 | 235 | . $associationName . ', group ' . $instance->getGroup(), |
237 | 236 | ); |