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