| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 4 | public function __invoke(): Closure |
|
| 26 | { |
||
| 27 | 4 | $buildCachingIterator = |
|
| 28 | /** |
||
| 29 | * @return CachingIteratorAggregate<TKey, T> |
||
| 30 | */ |
||
| 31 | 4 | static fn (iterable $iterator): CachingIteratorAggregate => new CachingIteratorAggregate((new IterableIteratorAggregate($iterator))->getIterator()); |
|
| 32 | |||
| 33 | /** @var Closure(iterable<TKey, T>): Generator<TKey, T> $takeWhile */ |
||
| 34 | 4 | $takeWhile = (new Pipe())()( |
|
| 35 | 4 | $buildCachingIterator, |
|
| 36 | 4 | (new TakeWhile())()( |
|
| 37 | /** |
||
| 38 | * @param T $value |
||
| 39 | * @param TKey $key |
||
|
|
|||
| 40 | * @param CachingIteratorAggregate<TKey, T> $iterator |
||
| 41 | */ |
||
| 42 | 4 | static fn ($value, $key, CachingIteratorAggregate $iterator): bool => $iterator->hasNext() |
|
| 43 | 4 | ) |
|
| 44 | 4 | ); |
|
| 45 | |||
| 46 | // Point free style. |
||
| 47 | 4 | return $takeWhile; |
|
| 48 | } |
||
| 50 |
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