Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 2 | public static function of(): Closure |
|
29 | { |
||
30 | return |
||
31 | /** |
||
32 | * @param positive-int $index |
||
|
|||
33 | */ |
||
34 | 2 | static fn (int $offset): Closure => |
|
35 | /** |
||
36 | * @param positive-int $index |
||
37 | */ |
||
38 | 2 | static fn (int $length): Closure => |
|
39 | /** |
||
40 | * @param T ...$args |
||
41 | * |
||
42 | * @return array<array-key, T> |
||
43 | */ |
||
44 | 2 | static fn (...$args): array => array_slice($args, $offset, $length, true); |
|
45 | } |
||
47 |