Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | public function getName(AgentInterface $unknownAgent) |
||
49 | { |
||
50 | foreach ($this->agents as $name => $agent) { |
||
51 | if ($agent === $unknownAgent) { |
||
52 | return $name; |
||
53 | } |
||
54 | } |
||
55 | |||
56 | throw new \RuntimeException(sprintf( |
||
57 | 'Could not identify agent of class "%s"', |
||
58 | get_class($unknownAgent) |
||
59 | )); |
||
60 | } |
||
61 | } |
||
62 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.