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)
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 /**
You can’t perform that action at this time.
0 commit comments