| Total Complexity | 9 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 12 | final class ComToLoc |
||
| 13 | { |
||
| 14 | private bool $exceedThreshold = false; |
||
| 15 | |||
| 16 | public function __construct(private readonly array $thresholds) |
||
| 17 | { |
||
| 18 | } |
||
| 19 | |||
| 20 | public function prepareComToLoc(array $commentStatistics, int $linesOfCode): ComToLocDTO |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function hasExceededThreshold(): bool |
||
| 30 | { |
||
| 31 | return $this->exceedThreshold; |
||
| 32 | } |
||
| 33 | |||
| 34 | private function getRatio(array $commentStatistics, int $linesOfCode): float |
||
| 47 | } |
||
| 48 | |||
| 49 | private function getColorForRatio(float $ratio): string |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
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