@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | private function sortListeners($listeners) |
| 118 | 118 | { |
| 119 | - usort($listeners, function (ListenerMethod $a, ListenerMethod $b) { |
|
| 119 | + usort($listeners, function(ListenerMethod $a, ListenerMethod $b) { |
|
| 120 | 120 | return $this->classSorter->__invoke($a->getClass(), $b->getClass()); |
| 121 | 121 | }); |
| 122 | 122 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | protected function filterFiles(array $files) |
| 140 | 140 | { |
| 141 | - return array_filter($files, function ($file) { |
|
| 141 | + return array_filter($files, function($file) { |
|
| 142 | 142 | return $this->isListenerFileName($file); |
| 143 | 143 | }); |
| 144 | 144 | } |
@@ -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 | } |