| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 6 | public function __invoke(): Closure |
|
| 22 | { |
||
| 23 | 6 | return |
|
| 24 | /** |
||
| 25 | * @return Closure(iterable<TKey, T>): Generator<int, TKey> |
||
| 26 | */ |
||
| 27 | 6 | static function (int $index): Closure { |
|
| 28 | /** @var Closure(iterable<TKey, T>): Generator<int, TKey> $pipe */ |
||
| 29 | 6 | $pipe = (new Pipe())()( |
|
| 30 | 6 | (new Limit())()(1)($index), |
|
| 31 | 6 | (new Flip())() |
|
| 32 | 6 | ); |
|
| 33 | |||
| 34 | // Point free style. |
||
| 35 | 6 | return $pipe; |
|
| 36 | 6 | }; |
|
| 39 |