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