Passed
Pull Request — master (#1546)
by
unknown
02:39
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.