@@ -107,18 +107,18 @@ |
||
| 107 | 107 | } |
| 108 | 108 | } |
| 109 | 109 | private function testPrimitive(mixed $data, string $type, string $format): bool { |
| 110 | - switch($type) { |
|
| 110 | + switch ($type) { |
|
| 111 | 111 | case 'integer': |
| 112 | 112 | case 'int': |
| 113 | - return (string)(int)$data === (string)$data; |
|
| 113 | + return (string) (int) $data === (string) $data; |
|
| 114 | 114 | case 'double': |
| 115 | 115 | case 'float': |
| 116 | - return (string)(float)$data === (string)$data; |
|
| 116 | + return (string) (float) $data === (string) $data; |
|
| 117 | 117 | case 'bool': |
| 118 | 118 | case 'boolean': |
| 119 | - return (string)(bool)$data === (string)$data; |
|
| 119 | + return (string) (bool) $data === (string) $data; |
|
| 120 | 120 | case 'string': |
| 121 | - return (string)$data === (string)$data; |
|
| 121 | + return (string) $data === (string) $data; |
|
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | } |
@@ -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 | |