| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class Permutate extends AbstractOperation |
||
| 18 | { |
||
| 19 | 2 | public function __invoke(): Closure |
|
| 20 | { |
||
| 21 | 2 | $getPermutations = |
|
| 22 | /** |
||
| 23 | * @param list<T> $dataset |
||
|
|
|||
| 24 | * |
||
| 25 | * @return Generator<int, list<T>> |
||
| 26 | */ |
||
| 27 | 2 | fn (array $dataset): Generator => $this->getPermutations($dataset); |
|
| 28 | |||
| 29 | 2 | return |
|
| 30 | /** |
||
| 31 | * @param iterable<TKey, T> $iterable |
||
| 32 | * |
||
| 33 | * @return Generator<int, list<T>> |
||
| 34 | * |
||
| 35 | * @psalm-suppress InvalidOperand |
||
| 36 | */ |
||
| 37 | 2 | static fn (iterable $iterable): Generator => $getPermutations([...(new IterableIteratorAggregate($iterable))]); |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param array<array-key, T> $dataset |
||
| 42 | * |
||
| 43 | * @return Generator<int, list<T>> |
||
| 44 | */ |
||
| 45 | 2 | private function getPermutations(array $dataset): Generator |
|
| 63 | } |
||
| 64 | } |
||
| 67 |
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