Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 2 | public static function of(): Closure |
|
27 | { |
||
28 | return |
||
29 | /** |
||
30 | * @param positive-int $count |
||
|
|||
31 | */ |
||
32 | 2 | static fn (int $count, int $offset = 0): Closure => static fn (callable $callable): Closure => static fn (mixed ...$args): mixed => $callable(...array_slice($args, $offset, $count)); |
|
33 | } |
||
35 |