We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf07b6 commit 1394f85Copy full SHA for 1394f85
PHP/CodeCoverage/Report/HTML.php
@@ -321,7 +321,7 @@ protected function leastTestedMethods(array $classes, $max = 20)
321
322
asort($methods);
323
324
- return array_slice($risks, 0, max($max, count($risks)));
+ return array_slice($methods, 0, min($max, count($methods)));
325
}
326
327
/**
@@ -341,6 +341,6 @@ protected function topProjectRisks(array $classes, $max = 20)
341
342
asort($risks);
343
344
- return array_reverse(array_slice($risks, 0, max($max, count($risks))));
+ return array_reverse(array_slice($risks, 0, min($max, count($risks))));
345
346
0 commit comments