File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/Cms/Model/Wysiwyg/Images Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -646,6 +646,7 @@ public function resizeFile($source, $keepRatio = true)
646
646
* Return width height for the image resizing.
647
647
*
648
648
* @param string $source
649
+ * @return array
649
650
*/
650
651
private function getResizedParams (string $ source ): array
651
652
{
@@ -658,11 +659,10 @@ private function getResizedParams(string $source): array
658
659
if ($ imageWidth && $ imageHeight ) {
659
660
$ imageWidth = $ configWidth > $ imageWidth ? $ imageWidth : $ configWidth ;
660
661
$ imageHeight = $ configHeight > $ imageHeight ? $ imageHeight : $ configHeight ;
661
- } else {
662
- return [$ configWidth , $ configHeight ];
663
- }
664
662
665
- return [$ imageWidth , $ imageHeight ];
663
+ return [$ imageWidth , $ imageHeight ];
664
+ }
665
+ return [$ configWidth , $ configHeight ];
666
666
}
667
667
668
668
/**
You can’t perform that action at this time.
0 commit comments