function Crap4j::crapLoad
1 call to Crap4j::crapLoad()
- Crap4j::process in vendor/
phpunit/ php-code-coverage/ src/ Report/ Crap4j.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Crap4j.php, line 137
Class
Namespace
SebastianBergmann\CodeCoverage\ReportCode
private function crapLoad(float $crapValue, int $cyclomaticComplexity, float $coveragePercent) : float {
$crapLoad = 0;
if ($crapValue >= $this->threshold) {
$crapLoad += $cyclomaticComplexity * (1.0 - $coveragePercent / 100);
$crapLoad += $cyclomaticComplexity / $this->threshold;
}
return $crapLoad;
}