| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class CDS |
||
| 10 | { |
||
| 11 | private bool $exceedThreshold = false; |
||
| 12 | |||
| 13 | public function __construct(private readonly array $thresholds) |
||
| 15 | } |
||
| 16 | |||
| 17 | public function prepareCDS(float $cds): CdsDTO |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | private function getColorForCDS(float $cds): string |
||
| 27 | { |
||
| 28 | if (! isset($this->thresholds['CDS'])) { |
||
| 29 | return 'white'; |
||
| 30 | } |
||
| 31 | if ($cds >= $this->thresholds['CDS']) { |
||
| 32 | return 'green'; |
||
| 33 | } |
||
| 34 | $this->exceedThreshold = true; |
||
| 35 | return 'red'; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function hasExceededThreshold(): bool |
||
| 41 | } |
||
| 42 | } |
||
| 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