| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | public static function __callStatic( $method, $parameters ) { |
||
| 47 | $instance = static::instance( static::class ); |
||
| 48 | |||
| 49 | if ( ! $instance ) { |
||
| 50 | throw new RuntimeException( 'Application instance not bootstrapped: ' . static::class ); |
||
| 51 | } |
||
| 52 | |||
| 53 | if ( ! $instance->hasAlias( $method ) ) { |
||
| 54 | throw new RuntimeException( 'Application alias not found: ' . $method ); |
||
| 55 | } |
||
| 56 | |||
| 57 | return call_user_func_array( [$instance, $method], $parameters ); |
||
| 58 | } |
||
| 60 |