| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 8 | public function __invoke(): Closure |
|
| 26 | { |
||
| 27 | 8 | return |
|
| 28 | /** |
||
| 29 | * @return Closure(iterable<TKey, T>): Generator<TKey|int, list<T>> |
||
| 30 | */ |
||
| 31 | 8 | static fn (int $size): Closure => |
|
| 32 | /** |
||
| 33 | * @param iterable<TKey, T> $iterable |
||
| 34 | * |
||
| 35 | * @return Generator<TKey|int, list<T>> |
||
| 36 | */ |
||
| 37 | 8 | static fn (iterable $iterable): Generator => yield from new LimitIterableAggregate(new ReductionIterableAggregate( |
|
| 38 | 8 | $iterable, |
|
| 39 | /** |
||
| 40 | * @param list<T> $stack |
||
|
|
|||
| 41 | * @param T $current |
||
| 42 | * |
||
| 43 | * @return list<T> |
||
| 44 | */ |
||
| 45 | 8 | static fn (array $stack, mixed $current): array => array_slice([...$stack, $current], ++$size * -1), |
|
| 46 | 8 | [] |
|
| 47 | 8 | ), 1); |
|
| 48 | } |
||
| 50 |
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