Completed
Push — master ( 34991a...adfc38 )
by Alexander
13s
created
src/ReflectionParameter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
         if ($hasDefaultValue) {
129 129
             $defaultValue = $this->getDefaultValue();
130 130
             if (is_string($defaultValue) && strlen($defaultValue) > 15) {
131
-                $defaultValue = substr($defaultValue, 0, 15) . '...';
131
+                $defaultValue = substr($defaultValue, 0, 15).'...';
132 132
             }
133 133
             /* @see https://3v4l.org/DJOEb for behaviour changes */
134 134
             if (is_double($defaultValue) && fmod($defaultValue, 1.0) === 0.0) {
135
-                $defaultValue = (int)$defaultValue;
135
+                $defaultValue = (int) $defaultValue;
136 136
             }
137 137
 
138 138
             $defaultValue = str_replace('\\\\', '\\', var_export($defaultValue, true));
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
             'Parameter #%d [ %s %s%s%s$%s%s ]',
143 143
             $this->parameterIndex,
144 144
             $isOptional ? '<optional>' : '<required>',
145
-            $parameterType ? ReflectionType::convertToDisplayType($parameterType) . ' ' : '',
145
+            $parameterType ? ReflectionType::convertToDisplayType($parameterType).' ' : '',
146 146
             $this->isVariadic() ? '...' : '',
147 147
             $this->isPassedByReference() ? '&' : '',
148 148
             $this->getName(),
149
-            ($isOptional && $hasDefaultValue) ? (' = ' . $defaultValue) : ''
149
+            ($isOptional && $hasDefaultValue) ? (' = '.$defaultValue) : ''
150 150
         );
151 151
     }
152 152
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
                 throw new ReflectionException("Can not resolve a class name for parameter");
198 198
             }
199
-            $className   = $parameterType->toString();
199
+            $className = $parameterType->toString();
200 200
             $classOrInterfaceExists = class_exists($className, false) || interface_exists($className, false);
201 201
 
202 202
             return $classOrInterfaceExists ? new \ReflectionClass($className) : new ReflectionClass($className);
Please login to merge, or discard this patch.