File tree 1 file changed +9
-9
lines changed
app/code/Magento/Catalog/Model/Product/Attribute/Backend/Media
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)
100
100
protected function convertFromMediaGalleryEntryContentInterface (
101
101
ImageContentInterface $ content = null
102
102
) {
103
- if ($ content == null ) {
103
+ if ($ content === null ) {
104
104
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
- ];
113
105
}
106
+
107
+ return [
108
+ 'data ' => [
109
+ ImageContentInterface::BASE64_ENCODED_DATA => $ content ->getBase64EncodedData (),
110
+ ImageContentInterface::TYPE => $ content ->getType (),
111
+ ImageContentInterface::NAME => $ content ->getName (),
112
+ ],
113
+ ];
114
114
}
115
115
}
You can’t perform that action at this time.
0 commit comments