| Conditions | 4 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 59 | 16 | public function __call( $method_name, $args ) { |
|
| 60 | |||
| 61 | 16 | $value = null; |
|
| 62 | |||
| 63 | do { |
||
| 64 | 16 | if ( property_exists( $this, "_{$method_name}" ) ) { |
|
| 65 | 16 | $property = "_{$method_name}"; |
|
| 66 | 16 | $value = $this->{$property}; |
|
| 67 | 16 | break; |
|
| 68 | } |
||
| 69 | |||
| 70 | 3 | if ( isset( $this->extra_args()[ $method_name ] ) ) { |
|
| 71 | 2 | $value = $this->extra_args()[ $method_name ]; |
|
| 72 | 2 | break; |
|
| 73 | } |
||
| 74 | 1 | } while ( false ); |
|
| 75 | |||
| 76 | 16 | return $value; |
|
| 77 | |||
| 81 |