diff --git a/PHP/CodeCoverage/Report/HTML.php b/PHP/CodeCoverage/Report/HTML.php index cf9b46ac7..2fa6ffcbe 100644 --- a/PHP/CodeCoverage/Report/HTML.php +++ b/PHP/CodeCoverage/Report/HTML.php @@ -397,11 +397,9 @@ protected function topProjectRisks(array $classes, $max = 10) } } - asort($risks); + arsort($risks); - $risks = array_reverse( - array_slice($risks, 0, min($max, count($risks))) - ); + $risks = array_slice($risks, 0, min($max, count($risks))); $buffer = '';