| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 5 | private function getRatio(array $commentStatistics, int $linesOfCode): float |
|
| 46 | { |
||
| 47 | 5 | if ($linesOfCode === 0) { |
|
| 48 | 1 | return 0; |
|
| 49 | } |
||
| 50 | |||
| 51 | 4 | $totalComments = 0; |
|
| 52 | |||
| 53 | 4 | foreach ($commentStatistics as $stat) { |
|
| 54 | 4 | $totalComments += $stat->lines; |
|
| 55 | } |
||
| 56 | |||
| 57 | 4 | return round($totalComments / $linesOfCode, 2); |
|
| 58 | } |
||
| 73 |
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