Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 4 | function __call( $method, $args ) { |
|
28 | |||
29 | 4 | $value = null; |
|
30 | |||
31 | do { |
||
32 | 4 | if ( method_exists( $this->_view, $method ) ) { |
|
33 | 1 | $value = call_user_func_array( array( $this->_view, $method ), $args ); |
|
34 | 1 | break; |
|
35 | } |
||
36 | |||
37 | 4 | $value = call_user_func_array( array( $this->_model, $method ), $args ); |
|
38 | 4 | } while ( false ); |
|
39 | |||
40 | 4 | return $value; |
|
41 | |||
45 |