Passed
Pull Request — main (#133)
by Tom
03:04
created
src/Metadata/MetadataFactory.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     }
27 27
 
28 28
     /** @return mixed[]|null */
29
-    public function __invoke(): array|null
29
+    public function __invoke(): array | null
30 30
     {
31 31
         if ($this->metadata) {
32 32
             return $this->metadata;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
             // Only one matching instance per group is allowed
78 78
             assert(
79
-                ! $entityInstance,
79
+                !$entityInstance,
80 80
                 'Duplicate attribute found for entity '
81 81
                 . $reflectionClass->getName() . ', group ' . $instance->getGroup(),
82 82
             );
@@ -92,8 +92,7 @@  discard block
 block discarded – undo
92 92
                 'excludeCriteria' => $instance->getExcludeCriteria(),
93 93
                 'description' => $instance->getDescription(),
94 94
                 'typeName' => $instance->getTypeName()
95
-                    ? $this->appendGroupSuffix($instance->getTypeName()) :
96
-                    $this->getTypeName($reflectionClass->getName()),
95
+                    ? $this->appendGroupSuffix($instance->getTypeName()) : $this->getTypeName($reflectionClass->getName()),
97 96
             ];
98 97
         }
99 98
     }
@@ -116,7 +115,7 @@  discard block
 block discarded – undo
116 115
 
117 116
                 // Only one matching instance per group is allowed
118 117
                 assert(
119
-                    ! $fieldInstance,
118
+                    !$fieldInstance,
120 119
                     'Duplicate attribute found for field '
121 120
                     . $fieldName . ', group ' . $instance->getGroup(),
122 121
                 );
@@ -167,7 +166,7 @@  discard block
 block discarded – undo
167 166
 
168 167
                 // Only one matching instance per group is allowed
169 168
                 assert(
170
-                    ! $associationInstance,
169
+                    !$associationInstance,
171 170
                     'Duplicate attribute found for association '
172 171
                     . $associationName . ', group ' . $instance->getGroup(),
173 172
                 );
Please login to merge, or discard this patch.