| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function get(string $name) |
||
| 37 | { |
||
| 38 | if (!isset($this->agents[$name])) { |
||
| 39 | throw new Exception\AgentNotFoundException(sprintf( |
||
| 40 | 'Could not find an agent named "%s". Registered agent names: "%s"', |
||
| 41 | $name, implode('", "', array_keys($this->agents)) |
||
| 42 | )); |
||
| 43 | } |
||
| 44 | |||
| 45 | return $this->agents[$name]; |
||
| 46 | } |
||
| 47 | |||
| 62 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.