Total Complexity | 6 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 92.31% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | abstract class AbstractSorter implements SorterInterface |
||
10 | { |
||
11 | 3 | public function __construct(private ?StrategyInterface $strategy = null) |
|
12 | { |
||
13 | 3 | if ($this->strategy === null) { |
|
14 | 3 | $this->strategy = new SimpleSortStrategy(new UnicodeCIComparator()); |
|
15 | } |
||
16 | } |
||
17 | |||
18 | 1 | public function setStrategy(StrategyInterface $strategy): static |
|
19 | { |
||
20 | 1 | $this->strategy = $strategy; |
|
21 | 1 | return $this; |
|
22 | } |
||
23 | |||
24 | 1 | public function setSortOrder(int $order): static |
|
28 | } |
||
29 | |||
30 | 3 | /** |
|
31 | * @param array<string|int, mixed> $collection |
||
32 | 3 | * @return array<string|int, mixed> |
|
33 | */ |
||
34 | public function sort(array $collection): array |
||
43 |
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