| @@ -38,6 +38,8 @@ | ||
| 38 | 38 | |
| 39 | 39 | /** | 
| 40 | 40 | * Initializes reflection data | 
| 41 | + * @param boolean $allowsNull | |
| 42 | + * @param boolean $isBuiltin | |
| 41 | 43 | */ | 
| 42 | 44 | public function __construct($type, $allowsNull, $isBuiltin) | 
| 43 | 45 |      { | 
| @@ -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); |