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