Skip to content

Commit 1511377

Browse files
committed
Fix code style for empty label check if statement
1 parent 8aeb71b commit 1511377

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/code/Magento/Catalog/Model/Product/Gallery/CreateHandler.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,8 @@ public function execute($product, $arguments = [])
194194
$product->getStoreId()
195195
);
196196
}
197-
if (
198-
in_array($mediaAttrCode, ['image', 'small_image', 'thumbnail'])
199-
&& (
197+
if (in_array($mediaAttrCode, ['image', 'small_image', 'thumbnail']) &&
198+
(
200199
!empty($product->getData($mediaAttrCode . '_label'))
201200
|| $resetLabel === true
202201
)

0 commit comments

Comments
 (0)