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