| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 2 | public function __invoke(): Closure |
|
| 22 | { |
||
| 23 | 2 | return |
|
| 24 | /** |
||
| 25 | * @param iterable<TKey, T> $iterable |
||
| 26 | * |
||
| 27 | * @return Generator<int, (TKey|T), mixed, void> |
||
| 28 | */ |
||
| 29 | 2 | static function (iterable $iterable): Generator { |
|
| 30 | 2 | foreach ($iterable as $key => $value) { |
|
| 31 | 2 | yield $key; |
|
| 32 | |||
| 33 | 2 | yield $value; |
|
| 34 | } |
||
| 38 |