Passed
Branch main (5561e9)
by Tom
11:29
created
src/Metadata/Metadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Metadata/MetadataFactory.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                     );
Please login to merge, or discard this patch.