Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c0d6ebe

Browse files
author
Björn May
committed
use (int) instead of intval()
1 parent e112cd6 commit c0d6ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/ImageResize.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public function resizeToBestFit($max_width, $max_height, $allow_enlarge = false)
509509

510510
if ($height > $max_height) {
511511
$height = $max_height;
512-
$width = intval(round($height / $ratio));
512+
$width = (int) round($height / $ratio);
513513
}
514514

515515
return $this->resize($width, $height, $allow_enlarge);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /