| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class ReturnChild implements ChildInterface |
||
| 15 | { |
||
| 16 | /** @phpstan-ignore-next-line */ |
||
| 17 | private function __construct(Messenger $messenger, LoopInterface $loop) |
||
|
|
|||
| 18 | { |
||
| 19 | $messenger->registerRpc('return', static function (Payload $payload): PromiseInterface { |
||
| 20 | return resolve($payload->getPayload()); |
||
| 21 | }); |
||
| 22 | $messenger->on('message', static function (Payload $payload) use ($messenger): void { |
||
| 23 | $messenger->message(MessagesFactory::message($payload->getPayload())); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function create(Messenger $messenger, LoopInterface $loop): void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.