Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 | }); |
||
32 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.