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