Skip to content

Commit bca81d2

Browse files
MAGETWO-70817: remove redundant else and use strict check #10271
2 parents 2e8d837 + 749d082 commit bca81d2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/Media/ImageEntryConverter.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)