Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __call($name, $arguments) |
||
22 | { |
||
23 | if ($this->isMuted($name)) { |
||
24 | return null; |
||
25 | } |
||
26 | |||
27 | if (method_exists($this->target, $name)) { |
||
28 | return $this->target->$name(...$arguments); |
||
29 | } |
||
30 | |||
31 | throw new BadMethodCallException(sprintf( |
||
32 | 'Unknown method [%s@%s]', |
||
33 | get_class($this->target), |
||
34 | $name |
||
35 | )); |
||
43 |