@@ -523,7 +523,7 @@ |
||
523 | 523 | |
524 | 524 | if (method_exists($this->context, 'getDeclaringClass')) { |
525 | 525 | return $this->context->getDeclaringClass() |
526 | - ->getParentClass(); |
|
526 | + ->getParentClass(); |
|
527 | 527 | } |
528 | 528 | } |
529 | 529 |
@@ -225,8 +225,8 @@ discard block |
||
225 | 225 | */ |
226 | 226 | public function getConstants( |
227 | 227 | ?int $filter = ReflectionClassConstant::IS_PUBLIC |
228 | - |ReflectionClassConstant::IS_PROTECTED |
|
229 | - |ReflectionClassConstant::IS_PRIVATE |
|
228 | + |ReflectionClassConstant::IS_PROTECTED |
|
229 | + |ReflectionClassConstant::IS_PRIVATE |
|
230 | 230 | ): array { |
231 | 231 | if (!isset($this->constants)) { |
232 | 232 | $this->constants = $this->recursiveCollect( |
@@ -566,8 +566,8 @@ discard block |
||
566 | 566 | */ |
567 | 567 | public function getReflectionConstants( |
568 | 568 | ?int $filter = ReflectionClassConstant::IS_PUBLIC |
569 | - |ReflectionClassConstant::IS_PROTECTED |
|
570 | - |ReflectionClassConstant::IS_PRIVATE |
|
569 | + |ReflectionClassConstant::IS_PROTECTED |
|
570 | + |ReflectionClassConstant::IS_PRIVATE |
|
571 | 571 | ): array { |
572 | 572 | if (!isset($this->classConstants)) { |
573 | 573 | $directClassConstants = ReflectionClassConstant::collectFromClassNode( |
@@ -148,7 +148,9 @@ |
||
148 | 148 | } |
149 | 149 | } |
150 | 150 | |
151 | - if ($quoteString === null) $quoteString = true; |
|
151 | + if ($quoteString === null) { |
|
152 | + $quoteString = true; |
|
153 | + } |
|
152 | 154 | break; |
153 | 155 | |
154 | 156 | case 'boolean': |
@@ -310,9 +310,7 @@ |
||
310 | 310 | $parameterType = $this->parameterNode->type; |
311 | 311 | if ($parameterType instanceof NullableType) { |
312 | 312 | $parameterType = $parameterType->type; |
313 | - } |
|
314 | - |
|
315 | - elseif ($parameterType instanceof UnionType) { |
|
313 | + } elseif ($parameterType instanceof UnionType) { |
|
316 | 314 | $types = []; |
317 | 315 | foreach ($parameterType->types as $type) { |
318 | 316 | $types[] = $this->resolveReflectionNamedType($type); |
@@ -233,9 +233,7 @@ |
||
233 | 233 | return [$classLevelNode, $classProperty, null]; |
234 | 234 | } |
235 | 235 | } |
236 | - } |
|
237 | - |
|
238 | - else if ($classLevelNode instanceof ClassMethod |
|
236 | + } else if ($classLevelNode instanceof ClassMethod |
|
239 | 237 | && $classLevelNode->name->toString() === '__construct' |
240 | 238 | ) { |
241 | 239 | foreach ($classLevelNode->getParams() as $param) { |