| 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 |
||
| 23 | 2 | public static function of(): Closure |
|
| 24 | { |
||
| 25 | return |
||
| 26 | /** |
||
| 27 | * @psalm-param positive-int $index |
||
| 28 | */ |
||
| 29 | 2 | static fn (int $offset): Closure => |
|
| 30 | /** |
||
| 31 | * @psalm-param positive-int $index |
||
| 32 | */ |
||
| 33 | 2 | static fn (int $length): Closure => |
|
| 34 | /** |
||
| 35 | * @psalm-param T ...$args |
||
| 36 | * |
||
| 37 | * @psalm-return T |
||
| 38 | */ |
||
| 39 | 2 | static fn (...$args) => array_slice($args, $offset, $length, true); |
|
| 40 | } |
||
| 42 |