@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | public function __debugInfo(): array |
124 | 124 | { |
125 | 125 | return [ |
126 | - 'name' => (string)$this->parameterNode->var->name, |
|
126 | + 'name' => (string) $this->parameterNode->var->name, |
|
127 | 127 | ]; |
128 | 128 | } |
129 | 129 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $defaultValue = ''; |
141 | 141 | if ($hasDefaultValue) { |
142 | 142 | $defaultValue = $this->getDefaultValue(); |
143 | - if (! $this->isDefaultValueConstant() || ! is_string($defaultValue) || ! str_contains($defaultValue, '::')) { |
|
143 | + if (!$this->isDefaultValueConstant() || !is_string($defaultValue) || !str_contains($defaultValue, '::')) { |
|
144 | 144 | $defaultValue = is_array($defaultValue) |
145 | 145 | ? $defaultValue |
146 | 146 | : str_replace('\\', '\\', var_export($defaultValue, true)); |
@@ -151,11 +151,11 @@ discard block |
||
151 | 151 | 'Parameter #%d [ %s %s%s%s$%s%s ]', |
152 | 152 | $this->parameterIndex, |
153 | 153 | $isOptional ? '<optional>' : '<required>', |
154 | - $parameterType ? ReflectionType::convertToDisplayType($parameterType) . ' ' : '', |
|
154 | + $parameterType ? ReflectionType::convertToDisplayType($parameterType).' ' : '', |
|
155 | 155 | $this->isVariadic() ? '...' : '', |
156 | 156 | $this->isPassedByReference() ? '&' : '', |
157 | 157 | $this->getName(), |
158 | - ($isOptional && $hasDefaultValue) ? (' = ' . $defaultValue) : '' |
|
158 | + ($isOptional && $hasDefaultValue) ? (' = '.$defaultValue) : '' |
|
159 | 159 | ); |
160 | 160 | } |
161 | 161 | |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | /** |
251 | 251 | * {@inheritDoc} |
252 | 252 | */ |
253 | - public function getDefaultValueConstantName(): null|string |
|
253 | + public function getDefaultValueConstantName(): null | string |
|
254 | 254 | { |
255 | 255 | if (!$this->isDefaultValueAvailable()) { |
256 | 256 | throw new ReflectionException('Internal error: Failed to retrieve the default value'); |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | */ |
265 | 265 | public function getName(): string |
266 | 266 | { |
267 | - return (string)$this->parameterNode->var->name; |
|
267 | + return (string) $this->parameterNode->var->name; |
|
268 | 268 | } |
269 | 269 | |
270 | 270 | /** |