Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
52 | 23 | public static function __callStatic($method, $args) |
|
53 | { |
||
54 | 23 | $instance = static::getInstance(); |
|
55 | |||
56 | 23 | throw_if(! $instance, RuntimeException::class, 'A facade root has not been set.'); |
|
57 | 23 | throw_if(! method_exists($instance, $method), RuntimeException::class, 'Method "'.$method.'" does not exist on "'.get_class($instance).'".'); |
|
58 | |||
59 | 22 | return $instance->$method(...$args); |
|
60 | } |
||
62 |