| Conditions | 4 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 2 | private function getPermutations(array $dataset): Generator |
|
| 46 | { |
||
| 47 | 2 | foreach ($dataset as $key => $firstItem) { |
|
| 48 | 2 | $remaining = $dataset; |
|
| 49 | |||
| 50 | 2 | array_splice($remaining, $key, 1); |
|
| 51 | |||
| 52 | 2 | if ([] === $remaining) { |
|
| 53 | 2 | yield [$firstItem]; |
|
| 54 | |||
| 55 | 2 | continue; |
|
| 56 | } |
||
| 57 | |||
| 58 | 2 | foreach ($this->getPermutations($remaining) as $permutation) { |
|
| 59 | // TODO: Fix this. |
||
| 60 | 2 | array_unshift($permutation, $firstItem); |
|
| 61 | |||
| 62 | 2 | yield $permutation; |
|
| 63 | } |
||
| 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