Skip to content

Commit 063abf8

Browse files
committed
resizeToBestFit now passes on $allow_enlarge, some docblock fixes.
1 parent a2c9999 commit 063abf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ImageResize.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ImageResize
4343
/**
4444
* Create instance from a strng
4545
*
46-
* @param string $imageData
46+
* @param string $image_data
4747
* @return ImageResize
4848
* @throws \exception
4949
*/
@@ -274,13 +274,13 @@ public function resizeToBestFit($max_width, $max_height, $allow_enlarge = false)
274274
$width = $height / $ratio;
275275
}
276276

277-
return $this->resize($width, $height, true);
277+
return $this->resize($width, $height, $allow_enlarge);
278278
}
279279

280280
/**
281281
* Resizes image according to given scale (proportionally)
282282
*
283-
* @param type $scale
283+
* @param integer|float $scale
284284
* @return \Eventviva\ImageResize
285285
*/
286286
public function scale($scale)

0 commit comments

Comments
 (0)