Completed
Push — master ( 0009c6...1fb800 )
by Marco
25s queued 10s
created
src/Reflection/StringCast/ReflectionParameterStringCast.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     private static function typeToString(ReflectionParameter $parameterReflection) : string
36 36
     {
37
-        if (! $parameterReflection->hasType()) {
37
+        if (!$parameterReflection->hasType()) {
38 38
             return '';
39 39
         }
40 40
 
@@ -43,20 +43,20 @@  discard block
 block discarded – undo
43 43
             'bool' => 'boolean',
44 44
         ];
45 45
 
46
-        $originalType = (string) $parameterReflection->getType();
46
+        $originalType = (string)$parameterReflection->getType();
47 47
 
48 48
         $type = $mapping[$originalType] ?? $originalType;
49 49
 
50
-        if (! $parameterReflection->allowsNull()) {
51
-            return $type . ' ';
50
+        if (!$parameterReflection->allowsNull()) {
51
+            return $type.' ';
52 52
         }
53 53
 
54
-        return $type . ' or NULL ';
54
+        return $type.' or NULL ';
55 55
     }
56 56
 
57 57
     private static function valueToString(ReflectionParameter $parameterReflection) : string
58 58
     {
59
-        if (! ($parameterReflection->isOptional() && $parameterReflection->isDefaultValueAvailable())) {
59
+        if (!($parameterReflection->isOptional() && $parameterReflection->isDefaultValueAvailable())) {
60 60
             return '';
61 61
         }
62 62
 
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
         }
68 68
 
69 69
         if (is_string($defaultValue) && strlen($defaultValue) > 15) {
70
-            return ' = ' . var_export(substr($defaultValue, 0, 15) . '...', true);
70
+            return ' = '.var_export(substr($defaultValue, 0, 15).'...', true);
71 71
         }
72 72
 
73
-        return ' = ' . var_export($defaultValue, true);
73
+        return ' = '.var_export($defaultValue, true);
74 74
     }
75 75
 }
Please login to merge, or discard this patch.