@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | public function __debugInfo(): array |
| 128 | 128 | { |
| 129 | 129 | return [ |
| 130 | - 'name' => (string)$this->parameterNode->var->name, |
|
| 130 | + 'name' => (string) $this->parameterNode->var->name, |
|
| 131 | 131 | ]; |
| 132 | 132 | } |
| 133 | 133 | |
@@ -167,11 +167,11 @@ discard block |
||
| 167 | 167 | 'Parameter #%d [ %s %s%s%s$%s%s ]', |
| 168 | 168 | $this->parameterIndex, |
| 169 | 169 | $isOptional ? '<optional>' : '<required>', |
| 170 | - $parameterType ? ReflectionType::convertToDisplayType($parameterType) . ' ' : '', |
|
| 170 | + $parameterType ? ReflectionType::convertToDisplayType($parameterType).' ' : '', |
|
| 171 | 171 | $this->isVariadic() ? '...' : '', |
| 172 | 172 | $this->isPassedByReference() ? '&' : '', |
| 173 | 173 | $this->getName(), |
| 174 | - ($isOptional && $hasDefaultValue) ? (' = ' . $defaultValue) : '' |
|
| 174 | + ($isOptional && $hasDefaultValue) ? (' = '.$defaultValue) : '' |
|
| 175 | 175 | ); |
| 176 | 176 | } |
| 177 | 177 | |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | /** |
| 272 | 272 | * {@inheritDoc} |
| 273 | 273 | */ |
| 274 | - public function getDefaultValueConstantName(): null|string |
|
| 274 | + public function getDefaultValueConstantName(): null | string |
|
| 275 | 275 | { |
| 276 | 276 | if (!$this->isDefaultValueAvailable()) { |
| 277 | 277 | throw new ReflectionException('Internal error: Failed to retrieve the default value'); |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | */ |
| 286 | 286 | public function getName(): string |
| 287 | 287 | { |
| 288 | - return (string)$this->parameterNode->var->name; |
|
| 288 | + return (string) $this->parameterNode->var->name; |
|
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | /** |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | */ |
| 358 | 358 | public function isDefaultValueAvailable(): bool |
| 359 | 359 | { |
| 360 | - if (! isset($this->parameterNode->default)) { |
|
| 360 | + if (!isset($this->parameterNode->default)) { |
|
| 361 | 361 | return false; |
| 362 | 362 | } |
| 363 | 363 | |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | continue; |
| 370 | 370 | } |
| 371 | 371 | |
| 372 | - if (! $parameter->default instanceof Expr) { |
|
| 372 | + if (!$parameter->default instanceof Expr) { |
|
| 373 | 373 | return false; |
| 374 | 374 | } |
| 375 | 375 | } |