Passed
Pull Request — master (#1546)
by
unknown
03:05
created
src/Handler/UnionHandler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,18 +107,18 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
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.