Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class TestListener extends AbstractListener |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @return array |
||
13 | */ |
||
14 | public function getEventMapping(): array |
||
15 | { |
||
16 | return [ |
||
17 | PoolEvent::POOL_NEW_THREAD => 'onNewThread' |
||
18 | ]; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @param PoolEvent $event |
||
23 | */ |
||
24 | public function onNewThread(PoolEvent $event) |
||
26 | |||
27 | } |
||
30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.