Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
23 | 10 | public function __invoke(): Closure |
|
24 | { |
||
25 | 10 | return |
|
26 | /** |
||
27 | * @param V $default |
||
|
|||
28 | * |
||
29 | * @return Closure(callable(T, TKey, iterable<TKey, T>): bool ...): Closure(iterable<TKey, T>): Generator<TKey, T|V> |
||
30 | */ |
||
31 | 10 | static fn (mixed $default): Closure => |
|
32 | /** |
||
33 | * @param callable(T, TKey, iterable<TKey, T>): bool ...$callbacks |
||
34 | * |
||
35 | * @return Closure(iterable<TKey, T>): Generator<TKey, T|V> |
||
36 | */ |
||
37 | 10 | static function (callable ...$callbacks) use ($default): Closure { |
|
38 | /** @var Closure(iterable<TKey, T>): Generator<TKey, T|V> $pipe */ |
||
39 | 10 | $pipe = (new Pipe())()( |
|
40 | 10 | (new Filter())()(...$callbacks), |
|
41 | 10 | (new Current())()(0)($default) |
|
42 | 10 | ); |
|
43 | |||
44 | // Point free style. |
||
45 | 10 | return $pipe; |
|
46 | 10 | }; |
|
49 |
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