File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
app/code/Magento/Catalog/Model/Product/Attribute/Backend/Media Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,16 @@ public function convertFrom(ProductAttributeMediaGalleryEntryInterface $entry)
100100 protected function convertFromMediaGalleryEntryContentInterface (
101101 ImageContentInterface $ content = null
102102 ) {
103- if ($ content == null ) {
103+ if ($ content === null ) {
104104 return null ;
105- } else {
106- return [
107- 'data ' => [
108- ImageContentInterface::BASE64_ENCODED_DATA => $ content ->getBase64EncodedData (),
109- ImageContentInterface::TYPE => $ content ->getType (),
110- ImageContentInterface::NAME => $ content ->getName (),
111- ],
112- ];
113105 }
106+
107+ return [
108+ 'data ' => [
109+ ImageContentInterface::BASE64_ENCODED_DATA => $ content ->getBase64EncodedData (),
110+ ImageContentInterface::TYPE => $ content ->getType (),
111+ ImageContentInterface::NAME => $ content ->getName (),
112+ ],
113+ ];
114114 }
115115}
You can’t perform that action at this time.
0 commit comments