Passed
Pull Request — master (#1546)
by
unknown
02:43
created
src/Metadata/Driver/TypedPropertiesDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     private function shouldTypeHint(?ReflectionType $reflectionType): bool
131 131
     {
132
-        if (!$reflectionType instanceof ReflectionNamedType) {
132
+        if ( ! $reflectionType instanceof ReflectionNamedType) {
133 133
             return false;
134 134
         }
135 135
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     private function shouldTypeHintUnion(?ReflectionType $reflectionType)
148 148
     {
149
-        if (!$reflectionType instanceof \ReflectionUnionType) {
149
+        if ( ! $reflectionType instanceof \ReflectionUnionType) {
150 150
             return false;
151 151
         }
152 152
 
Please login to merge, or discard this patch.
src/Handler/UnionHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     private function reorderTypes(array $type): array
90 90
     {
91 91
         if ($type['params']) {
92
-            uasort($type['params'], static function ($a, $b) {
92
+            uasort($type['params'], static function($a, $b) {
93 93
                 $order = ['null' => 0, 'true' => 1, 'false' => 2, 'bool' => 3, 'int' => 4, 'float' => 5, 'string' => 6];
94 94
 
95 95
                 return (array_key_exists($a['name'], $order) ? $order[$a['name']] : 7) <=> (array_key_exists($b['name'], $order) ? $order[$b['name']] : 7);
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         return $type;
100 100
     }
101 101
 
102
-    private function determineType(mixed $data, array $type, string $format): string|null
102
+    private function determineType(mixed $data, array $type, string $format): string | null
103 103
     {
104 104
         foreach ($this->reorderTypes($type)['params'] as $possibleType) {
105 105
             if ($this->testPrimitive($data, $possibleType['name'], $format)) {
Please login to merge, or discard this patch.