| Conditions | 7 |
| Paths | 13 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 7 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 17 | public function __call($name, $arguments) |
|
| 26 | { |
||
| 27 | 17 | if (in_array($name, $this->methods)) { |
|
| 28 | 17 | if ($name == 'filter' && !in_array($arguments[1], array('prepend', 'append'))) { |
|
| 29 | 1 | return; |
|
| 30 | } |
||
| 31 | 17 | $result = call_user_func_array(array(Page::html(), $name), $arguments); |
|
| 32 | 17 | } elseif (isset($this->additional[$name])) { |
|
| 33 | 12 | $result = call_user_func_array($this->additional[$name], $arguments); |
|
| 34 | 12 | } |
|
| 35 | |||
| 36 | 17 | return (isset($result) && !is_object($result)) ? $result : null; |
|
| 37 | } |
||
| 38 | } |
||
| 39 |