Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
21 | 26 | public function __invoke(): Closure |
|
22 | { |
||
23 | 26 | return |
|
24 | /** |
||
25 | * @param callable(T, T, TKey, iterable<TKey, T>): T $comparator |
||
26 | * |
||
27 | * @return Closure(iterable<TKey, T>): Generator<TKey,T> |
||
28 | */ |
||
29 | 26 | static function (callable $comparator): Closure { |
|
30 | /** @var Closure(iterable<TKey, T>): Generator<TKey, T> $foldLeft1 */ |
||
31 | 26 | $foldLeft1 = (new FoldLeft1())()($comparator); |
|
32 | |||
33 | // Point free style. |
||
34 | 26 | return $foldLeft1; |
|
35 | 26 | }; |
|
38 |