| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 1 |
| Changes | 5 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 24 | 4 | public function __invoke(): Closure |
|
| 25 | { |
||
| 26 | 4 | return |
|
| 27 | /** |
||
| 28 | * @param iterable<TKey, T> $iterable |
||
| 29 | * |
||
| 30 | * @return Generator<int, list<T>> |
||
| 31 | */ |
||
| 32 | 4 | static function (iterable $iterable): Generator { |
|
| 33 | 4 | $initial = iterator_to_array( |
|
| 34 | 4 | (new IterableIteratorAggregate($iterable))->getIterator() |
|
| 35 | 4 | ); |
|
| 36 | |||
| 37 | 4 | $reduction = |
|
| 38 | /** |
||
| 39 | * @param list<T> $stack |
||
|
|
|||
| 40 | * |
||
| 41 | * @return list<T> |
||
| 42 | */ |
||
| 43 | 4 | static fn (array $stack): array => array_slice($stack, 1); |
|
| 44 | |||
| 45 | /** @var Closure(iterable<TKey, T>): Generator<int, list<T>> $pipe */ |
||
| 46 | 4 | $pipe = (new Pipe())()( |
|
| 47 | 4 | (new Reduction())()($reduction)($initial), |
|
| 48 | 4 | (new Normalize())(), |
|
| 49 | 4 | ); |
|
| 50 | |||
| 51 | 4 | yield from $pipe($iterable); |
|
| 52 | 4 | }; |
|
| 55 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths