Skip to content

Commit 9a5bfd3

Browse files
committed
Fixed typo
1 parent 6b7a9b3 commit 9a5bfd3

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

+3-3
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)