| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 6 | protected function attachOnceListener($pointer, $event, callable $listener) |
|
| 29 | { |
||
| 30 | return function() use($listener, $event, $pointer) { |
||
| 31 | 6 | unset($this->eventListeners[$event][$pointer]); |
|
| 32 | |||
| 33 | 6 | $args = func_get_args(); |
|
| 34 | $this->getLoop()->onTick(function() use($listener, $args) { |
||
| 35 | 6 | $listener(...$args); |
|
| 36 | 6 | }); |
|
| 37 | 6 | }; |
|
| 38 | } |
||
| 39 | |||
| 60 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.