Completed
Pull Request — master (#21)
by Alexander
03:05
created
src/ReflectionParameter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         if ($isOptional) {
131 131
             $defaultValue = $this->getDefaultValue();
132 132
             if (is_string($defaultValue) && strlen($defaultValue) > 15) {
133
-                $defaultValue = substr($defaultValue, 0, 15) . '...';
133
+                $defaultValue = substr($defaultValue, 0, 15).'...';
134 134
             }
135 135
             /* @see https://3v4l.org/DJOEb for behaviour changes */
136 136
             if (is_double($defaultValue) && fmod($defaultValue, 1.0) === 0.0) {
@@ -143,12 +143,12 @@  discard block
 block discarded – undo
143 143
             'Parameter #%d [ %s %s%s%s%s$%s%s ]',
144 144
             $this->parameterIndex,
145 145
             ($this->isVariadic() || $isOptional) ? '<optional>' : '<required>',
146
-            $parameterType ? ltrim($parameterType, '\\') . ' ' : '',
146
+            $parameterType ? ltrim($parameterType, '\\').' ' : '',
147 147
             $isNullableParam ? 'or NULL ' : '',
148 148
             $this->isVariadic() ? '...' : '',
149 149
             $this->isPassedByReference() ? '&' : '',
150 150
             $this->getName(),
151
-            $isOptional ? (' = ' . $defaultValue) : ''
151
+            $isOptional ? (' = '.$defaultValue) : ''
152 152
         );
153 153
     }
154 154
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             if (!$parameterType instanceof Name\FullyQualified) {
184 184
                 throw new ReflectionException("Can not resolve a class name for parameter");
185 185
             }
186
-            $className   = $parameterType->toString();
186
+            $className = $parameterType->toString();
187 187
             $classOrInterfaceExists = class_exists($className, false) || interface_exists($className, false);
188 188
 
189 189
             return $classOrInterfaceExists ? new \ReflectionClass($className) : new ReflectionClass($className);
Please login to merge, or discard this patch.