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