Removed useless casts() from min/max calls

This commit is contained in:
Dylan K. Taylor
2020-02-06 15:58:27 +00:00
parent 812424a619
commit d26fcf7dee
6 changed files with 6 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ class HelpCommand extends VanillaCommand{
}
ksort($commands, SORT_NATURAL | SORT_FLAG_CASE);
$commands = array_chunk($commands, $pageHeight);
$pageNumber = (int) min(count($commands), $pageNumber);
$pageNumber = min(count($commands), $pageNumber);
if($pageNumber < 1){
$pageNumber = 1;
}