Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | private function getUserFromMessage(ChannelInterface $channel, array $data): UserInterface |
||
|
|||
48 | { |
||
49 | /** @var GitterSystem $system */ |
||
50 | $system = $this->getChannel()->getSystem(); |
||
51 | |||
52 | return $system->getUser($data['fromUser'], function () use ($system, $data): UserInterface { |
||
53 | return new GitterUser($system, $data['fromUser']); |
||
54 | }); |
||
55 | } |
||
56 | } |
||
57 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.