@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * @param string $filePath |
| 48 | - * @return bool |
|
| 48 | + * @return integer |
|
| 49 | 49 | */ |
| 50 | 50 | protected function isListenerFileName($filePath) |
| 51 | 51 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * @param $className |
|
| 78 | + * @param string $className |
|
| 79 | 79 | * @throws \Exception |
| 80 | 80 | */ |
| 81 | 81 | private function validateEventHandlersInClass($className) |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | 79 | * @param string $filePath |
| 80 | - * @return bool |
|
| 80 | + * @return integer |
|
| 81 | 81 | */ |
| 82 | 82 | protected function isListenerFileName($filePath) |
| 83 | 83 | { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | - * @param $className |
|
| 147 | + * @param string $className |
|
| 148 | 148 | * @return ListenerMethod[] |
| 149 | 149 | */ |
| 150 | 150 | private function findListenerMethodsInClass($className) |
@@ -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 | } |