@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | private function reorderTypes(array $type): array |
| 61 | 61 | { |
| 62 | 62 | if ($type['params']) { |
| 63 | - uasort($type['params'], static function ($a, $b) { |
|
| 63 | + uasort($type['params'], static function($a, $b) { |
|
| 64 | 64 | $order = ['null' => 0, 'true' => 1, 'false' => 2, 'bool' => 3, 'int' => 4, 'float' => 5, 'string' => 6]; |
| 65 | 65 | |
| 66 | 66 | return ($order[$a['name']] ?? 7) <=> ($order[$b['name']] ?? 7); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | private function shouldTypeHint(?ReflectionType $reflectionType): bool |
| 154 | 154 | { |
| 155 | - if (!$reflectionType instanceof ReflectionNamedType) { |
|
| 155 | + if ( ! $reflectionType instanceof ReflectionNamedType) { |
|
| 156 | 156 | return false; |
| 157 | 157 | } |
| 158 | 158 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | private function shouldTypeHintUnion(?ReflectionType $reflectionType) |
| 171 | 171 | { |
| 172 | - if (!$reflectionType instanceof \ReflectionUnionType) { |
|
| 172 | + if ( ! $reflectionType instanceof \ReflectionUnionType) { |
|
| 173 | 173 | return false; |
| 174 | 174 | } |
| 175 | 175 | |