/**
* @inheritDoc
*/
- public function createThumbnail($maxWidth, $maxHeight, $obtainDimensions = true) {
+ public function createThumbnail($maxWidth, $maxHeight, $preserveAspectRatio = true) {
$x = $y = 0;
$sourceWidth = $this->width;
$sourceHeight = $this->height;
- if ($obtainDimensions) {
+ if ($preserveAspectRatio) {
if ($maxWidth / $this->width < $maxHeight / $this->height) {
$width = $maxWidth;
$height = round($this->height * ($width / $this->width));
* @param integer $pct opacity percent
* @return boolean
*/
- private function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {
+ private function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) { // phpcs:ignore
if (!isset($pct)) {
return false;
}