@@ -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 | } |
@@ -52,6 +52,9 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | |
55 | + /** |
|
56 | + * @param string[] $classes |
|
57 | + */ |
|
55 | 58 | private function isParentClassOfAny(\ReflectionClass $parentClass, $classes) |
56 | 59 | { |
57 | 60 | $isSubClassOf = function ($class) use ($parentClass) { |