| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 4 | public function __invoke(): Closure |
|
| 24 | { |
||
| 25 | 4 | return |
|
| 26 | /** |
||
| 27 | * @param null|callable(mixed): string $callback |
||
| 28 | * |
||
| 29 | * @return Closure(iterable<TKey, T>): Generator<TKey, T> |
||
| 30 | */ |
||
| 31 | 4 | static fn (?callable $callback = null): Closure => |
|
| 32 | /** |
||
| 33 | * @return Generator<TKey, T> |
||
| 34 | */ |
||
| 35 | 4 | static fn (iterable $iterator): Generator => yield from new TypedIterableAggregate((new IterableIteratorAggregate($iterator))->getIterator(), $callback); |
|
| 36 | } |
||
| 38 |