@@ -128,7 +128,7 @@ discard block |
||
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) { |
@@ -142,12 +142,12 @@ discard block |
||
142 | 142 | 'Parameter #%d [ %s %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 | $isNullableParam ? 'or NULL ' : '', |
147 | 147 | $this->isVariadic() ? '...' : '', |
148 | 148 | $this->isPassedByReference() ? '&' : '', |
149 | 149 | $this->getName(), |
150 | - ($isOptional && $hasDefaultValue) ? (' = ' . $defaultValue) : '' |
|
150 | + ($isOptional && $hasDefaultValue) ? (' = '.$defaultValue) : '' |
|
151 | 151 | ); |
152 | 152 | } |
153 | 153 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | |
193 | 193 | throw new ReflectionException("Can not resolve a class name for parameter"); |
194 | 194 | } |
195 | - $className = $parameterType->toString(); |
|
195 | + $className = $parameterType->toString(); |
|
196 | 196 | $classOrInterfaceExists = class_exists($className, false) || interface_exists($className, false); |
197 | 197 | |
198 | 198 | return $classOrInterfaceExists ? new \ReflectionClass($className) : new ReflectionClass($className); |
@@ -158,7 +158,7 @@ |
||
158 | 158 | { |
159 | 159 | // Enable 7.1 nullable types support |
160 | 160 | if ($this->parameterNode->type instanceof NullableType) { |
161 | - return true; |
|
161 | + return true; |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | $hasDefaultNull = $this->isDefaultValueAvailable() && $this->getDefaultValue() === null; |