Skip to content

Commit

Permalink
Correctly sort the topProjectRisks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleff committed Jun 8, 2011
1 parent 6985826 commit 9a095ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions PHP/CodeCoverage/Report/HTML.php
Expand Up @@ -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 = '';

Expand Down

0 comments on commit 9a095ab

Please sign in to comment.