@@ -129,7 +129,7 @@ discard block |
||
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 |
||
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 |
@@ -93,7 +93,7 @@ |
||
93 | 93 | private function reorderTypes(array $type): array |
94 | 94 | { |
95 | 95 | if ($type['params']) { |
96 | - uasort($type['params'], static function ($a, $b) { |
|
96 | + uasort($type['params'], static function($a, $b) { |
|
97 | 97 | $order = ['null' => 0, 'true' => 1, 'false' => 2, 'bool' => 3, 'int' => 4, 'float' => 5, 'string' => 6]; |
98 | 98 | |
99 | 99 | return (array_key_exists($a['name'], $order) ? $order[$a['name']] : 7) <=> (array_key_exists($b['name'], $order) ? $order[$b['name']] : 7); |