Skip to content

Commit a890636

Browse files
committed
Code review suggestion
1 parent 2c9ba2e commit a890636

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ public function resizeFile($source, $keepRatio = true)
646646
* Return width height for the image resizing.
647647
*
648648
* @param string $source
649+
* @return array
649650
*/
650651
private function getResizedParams(string $source): array
651652
{
@@ -658,11 +659,10 @@ private function getResizedParams(string $source): array
658659
if ($imageWidth && $imageHeight) {
659660
$imageWidth = $configWidth > $imageWidth ? $imageWidth : $configWidth;
660661
$imageHeight = $configHeight > $imageHeight ? $imageHeight : $configHeight;
661-
} else {
662-
return [$configWidth, $configHeight];
663-
}
664662

665-
return [$imageWidth, $imageHeight];
663+
return [$imageWidth, $imageHeight];
664+
}
665+
return [$configWidth, $configHeight];
666666
}
667667

668668
/**

0 commit comments

Comments
 (0)