@@ -80,8 +80,9 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | $namespace = $m['namespace']; |
83 | - if ($namespace) |
|
84 | - $namespace = '\\' . $namespace; |
|
83 | + if ($namespace) { |
|
84 | + $namespace = '\\' . $namespace; |
|
85 | + } |
|
85 | 86 | |
86 | 87 | |
87 | 88 | $fqn = $namespace . '\\' . $unqualifiedClassName; |
@@ -194,8 +194,9 @@ |
||
194 | 194 | |
195 | 195 | private function isValidListenerMethod(\ReflectionMethod $reflectionMethod) |
196 | 196 | { |
197 | - if ($reflectionMethod->getNumberOfParameters() == 0) |
|
198 | - return false; |
|
197 | + if ($reflectionMethod->getNumberOfParameters() == 0) { |
|
198 | + return false; |
|
199 | + } |
|
199 | 200 | |
200 | 201 | return true; |
201 | 202 | } |
@@ -14,6 +14,9 @@ |
||
14 | 14 | return $parent->isInterface() ? $child->implementsInterface($parentClass) : $child->isSubclassOf($parentClass); |
15 | 15 | } |
16 | 16 | |
17 | + /** |
|
18 | + * @param \ReflectionClass $object |
|
19 | + */ |
|
17 | 20 | public function isASubClassOrSameClass($object, string $parentClass) |
18 | 21 | { |
19 | 22 | return $this->getObjectClass($object) === $parentClass || $this->isASubClass($object, $parentClass); |
@@ -68,6 +68,9 @@ |
||
68 | 68 | return $dependencies; |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param string[] $classes |
|
73 | + */ |
|
71 | 74 | private function isParentClassOfAny(\ReflectionClass $parentClass, $classes): bool |
72 | 75 | { |
73 | 76 | $comparator = new SubclassComparator(); |