Passed
Pull Request — master (#1553)
by Asmir
05:18 queued 02:37
created
src/Metadata/Driver/TypedPropertiesDriver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     private function reorderTypes(array $types): array
61 61
     {
62
-        uasort($types, static function ($a, $b) {
62
+        uasort($types, static function($a, $b) {
63 63
             $order = ['null' => 0, 'true' => 1, 'false' => 2, 'bool' => 3, 'int' => 4, 'float' => 5, 'string' => 6];
64 64
 
65 65
             return ($order[$a['name']] ?? 7) <=> ($order[$b['name']] ?? 7);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     private function shouldTypeHint(?ReflectionType $reflectionType): bool
152 152
     {
153
-        if (!$reflectionType instanceof ReflectionNamedType) {
153
+        if ( ! $reflectionType instanceof ReflectionNamedType) {
154 154
             return false;
155 155
         }
156 156
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      */
168 168
     private function shouldTypeHintUnion(?ReflectionType $reflectionType)
169 169
     {
170
-        if (!$reflectionType instanceof \ReflectionUnionType) {
170
+        if ( ! $reflectionType instanceof \ReflectionUnionType) {
171 171
             return false;
172 172
         }
173 173
 
Please login to merge, or discard this patch.
src/Handler/UnionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     private function matchSimpleType(mixed $data, array $type, Context $context): mixed
100 100
     {
101 101
         foreach ($type['params'][0] as $possibleType) {
102
-            if ($this->isPrimitiveType($possibleType['name']) && !$this->testPrimitive($data, $possibleType['name'], $context->getFormat())) {
102
+            if ($this->isPrimitiveType($possibleType['name']) && ! $this->testPrimitive($data, $possibleType['name'], $context->getFormat())) {
103 103
                 continue;
104 104
             }
105 105
 
Please login to merge, or discard this patch.