| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 3 | protected function proxyFunctionCall(string $name, array $arguments) |
|
| 35 | { |
||
| 36 | 3 | if (!function_exists($name)) { |
|
| 37 | 1 | throw new BadFunctionCallException(sprintf('Function "%s" does not exist.', $name)); |
|
| 38 | } |
||
| 39 | |||
| 40 | try { |
||
| 41 | 2 | return call_user_func($name, ...$arguments); |
|
| 42 | 1 | } catch (Throwable $e) { |
|
| 43 | 1 | return false; |
|
| 44 | } |
||
| 47 |