| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 18 | public function __invoke(): Closure |
|
| 25 | { |
||
| 26 | 18 | return |
|
| 27 | /** |
||
| 28 | * @param callable(V, T, TKey, iterable<TKey, T>): V $callback |
||
| 29 | * |
||
| 30 | * @return Closure(V): Closure(iterable<TKey, T>): Generator<TKey|int, V> |
||
| 31 | */ |
||
| 32 | 18 | static fn (callable $callback): Closure => |
|
| 33 | /** |
||
| 34 | * @param V $initial |
||
|
|
|||
| 35 | * |
||
| 36 | * @return Closure(iterable<TKey, T>): Generator<TKey|int, V> |
||
| 37 | */ |
||
| 38 | 18 | static fn (mixed $initial): Closure => |
|
| 39 | /** |
||
| 40 | * @param iterable<TKey, T> $iterable |
||
| 41 | * |
||
| 42 | * @return Generator<TKey|int, V> |
||
| 43 | */ |
||
| 44 | 18 | static fn (iterable $iterable): Generator => yield from new ReductionIterableAggregate($iterable, Closure::fromCallable($callback), $initial); |
|
| 45 | } |
||
| 47 |
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