| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 34 | private function getRatio(array $commentStatistics, int $linesOfCode): float |
||
| 35 | { |
||
| 36 | if ($linesOfCode === 0) { |
||
| 37 | return 0; |
||
| 38 | } |
||
| 39 | |||
| 40 | $totalComments = 0; |
||
| 41 | |||
| 42 | foreach ($commentStatistics as $stat) { |
||
| 43 | $totalComments += $stat['lines']; |
||
| 44 | } |
||
| 45 | |||
| 46 | return round($totalComments / $linesOfCode, 2); |
||
| 47 | } |
||
| 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