| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 6 | public function __invoke(): Closure |
|
| 22 | { |
||
| 23 | 6 | return |
|
| 24 | /** |
||
| 25 | * @return Closure(iterable<TKey, T>): Generator<int, mixed> |
||
| 26 | */ |
||
| 27 | 6 | static function (mixed $column): Closure { |
|
| 28 | 6 | $filterCallbackBuilder = |
|
| 29 | /** |
||
| 30 | * @param T $value |
||
| 31 | * @param TKey $key |
||
|
|
|||
| 32 | */ |
||
| 33 | 6 | static fn (mixed $value, mixed $key): bool => $key === $column; |
|
| 34 | |||
| 35 | /** @var Closure(iterable<TKey, T>): Generator<int, mixed> $pipe */ |
||
| 36 | 6 | $pipe = (new Pipe())()( |
|
| 37 | 6 | (new Transpose())(), |
|
| 38 | 6 | (new Filter())()($filterCallbackBuilder), |
|
| 39 | 6 | (new Head())(), |
|
| 40 | 6 | (new Flatten())()(1) |
|
| 41 | 6 | ); |
|
| 42 | |||
| 43 | // Point free style. |
||
| 44 | 6 | return $pipe; |
|
| 45 | 6 | }; |
|
| 48 |
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