Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
31 | 9 | public static function __callStatic($name, array $arguments = []) |
|
32 | { |
||
33 | 9 | if (in_array($name, static::$allowedMethods)) { |
|
34 | 9 | return self::map($name, empty($arguments) ? static::$metrics : reset($arguments)); |
|
35 | } |
||
36 | |||
37 | 2 | throw new \Exception('[' . $name . '] not an allowed method in context [' . get_class() . ']' . PHP_EOL); |
|
38 | } |
||
39 | |||
70 |