Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 1 | public function on(iterable $collection): Closure |
|
24 | { |
||
25 | $getPermutate = function (array $dataset): Generator { |
||
26 | 1 | return $this->getPermutations($dataset); |
|
27 | 1 | }; |
|
28 | |||
29 | return static function () use ($collection, $getPermutate): Generator { |
||
30 | 1 | yield from $getPermutate((new All())->on($collection)); |
|
31 | 1 | }; |
|
60 |