Conditions | 1 |
Paths | 1 |
Total Lines | 26 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 12 | public function __invoke(): Closure |
|
22 | { |
||
23 | /** @var Closure(iterable<TKey, T>): Generator<T, T|null> $pipe */ |
||
24 | 12 | $pipe = (new Pipe())()( |
|
25 | 12 | (new Normalize())(), |
|
26 | 12 | (new Chunk())()(2), |
|
27 | 12 | (new Associate())()( |
|
28 | /** |
||
29 | * @param TKey $key |
||
|
|||
30 | * @param array{0: TKey, 1: T} $value |
||
31 | * |
||
32 | * @return TKey|null |
||
33 | */ |
||
34 | 12 | static fn (mixed $key, array $value): mixed => $value[0] ?? null |
|
35 | 12 | )( |
|
36 | /** |
||
37 | * @param array{0: TKey, 1: T} $value |
||
38 | * |
||
39 | * @return T|null |
||
40 | */ |
||
41 | 12 | static fn (array $value): mixed => $value[1] ?? null |
|
42 | 12 | ) |
|
43 | 12 | ); |
|
44 | |||
45 | // Point free style. |
||
46 | 12 | return $pipe; |
|
47 | } |
||
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