Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
57 | 4 | private static function curryN(int $numberOfArguments, callable $function, array $args = []) |
|
58 | { |
||
59 | 4 | return (0 >= $numberOfArguments) |
|
60 | 4 | ? $function(...$args) |
|
61 | : |
||
62 | /** |
||
63 | * @psalm-param mixed ...$argsNext |
||
64 | * @return mixed |
||
65 | */ |
||
66 | 4 | static fn (...$argsNext) => self::curryN($numberOfArguments - count($argsNext), $function, static::getArguments($args, $argsNext)); |
|
67 | } |
||
69 |