| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 2 | public static function __callStatic($method, $arguments) |
|
| 49 | { |
||
| 50 | 2 | $class = \get_called_class(); |
|
| 51 | |||
| 52 | 2 | if (!static::$container->has($class)) { |
|
| 53 | 1 | throw new \RuntimeException(sprintf('"%s" facade has not been register.', $class)); |
|
| 54 | } |
||
| 55 | |||
| 56 | 1 | $service = static::$container->get($class); |
|
| 57 | |||
| 58 | 1 | return $service->$method(...$arguments); |
|
| 59 | } |
||
| 60 | } |
||
| 61 |