Skip to content

Commit 4b54d14

Browse files
committed
magento-engcom/import-export-improvements#49: Update code styles in option import
1 parent 20094b7 commit 4b54d14

File tree

1 file changed

+3
-4
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import/Product

1 file changed

+3
-4
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/Option.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,11 +1236,10 @@ protected function _importData()
12361236
$multiRowData = $this->_getMultiRowFormat($rowData);
12371237
if (!empty($rowData[self::COLUMN_SKU]) && isset($this->_productsSkuToId[$rowData[self::COLUMN_SKU]])) {
12381238
$this->_rowProductId = $this->_productsSkuToId[$rowData[self::COLUMN_SKU]];
1239-
if (
1240-
array_key_exists('custom_options', $rowData)
1239+
if (array_key_exists('custom_options', $rowData)
12411240
&& (
1242-
trim($rowData['custom_options']) === ''
1243-
|| trim ($rowData['custom_options']) === $this->_productEntity->getEmptyAttributeValueConstant()
1241+
trim($rowData['custom_options']) === '' ||
1242+
trim($rowData['custom_options']) === $this->_productEntity->getEmptyAttributeValueConstant()
12441243
)
12451244
) {
12461245
$optionsToRemove[] = $this->_rowProductId;

0 commit comments

Comments
 (0)