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