Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function get($name): AcceptorInterface |
||
23 | { |
||
24 | if (!isset($this->filters[$name])) { |
||
25 | throw new \InvalidArgumentException(sprintf( |
||
26 | 'Unknown filter acceptor "%s". Known filter acceptors: "%s"', |
||
27 | $name, implode('", "', array_keys($this->filters)) |
||
28 | )); |
||
29 | } |
||
30 | |||
31 | return $this->filters[$name]; |
||
32 | } |
||
33 | |||
42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.