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