Skip to content

Commit a94b895

Browse files
author
Stanislav Idolov
authored
ENGCOM-2786: Typo in Magento\Cms\Model\Wysiwyg\Images\Storage function resizeFile() #17596
2 parents 91a82b5 + 0ea1ba3 commit a94b895

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,10 @@ public function getThumbnailUrl($filePath, $checkFile = false)
567567
* Create thumbnail for image and save it to thumbnails directory
568568
*
569569
* @param string $source Image path to be resized
570-
* @param bool $keepRation Keep aspect ratio or not
570+
* @param bool $keepRatio Keep aspect ratio or not
571571
* @return bool|string Resized filepath or false if errors were occurred
572572
*/
573-
public function resizeFile($source, $keepRation = true)
573+
public function resizeFile($source, $keepRatio = true)
574574
{
575575
$realPath = $this->_directory->getRelativePath($source);
576576
if (!$this->_directory->isFile($realPath) || !$this->_directory->isExist($realPath)) {
@@ -587,7 +587,7 @@ public function resizeFile($source, $keepRation = true)
587587
}
588588
$image = $this->_imageFactory->create();
589589
$image->open($source);
590-
$image->keepAspectRatio($keepRation);
590+
$image->keepAspectRatio($keepRatio);
591591
$image->resize($this->_resizeParameters['width'], $this->_resizeParameters['height']);
592592
$dest = $targetDir . '/' . pathinfo($source, PATHINFO_BASENAME);
593593
$image->save($dest);

0 commit comments

Comments
 (0)