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