Skip to content

Commit 4b5b255

Browse files
committed
Formate code AdvancedPricing.php and AdvancedPricingTest.php
1 parent 89c0dc6 commit 4b5b255

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

app/code/Magento/AdvancedPricingImportExport/Model/Export/AdvancedPricing.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ protected function correctExportData($exportData)
402402
$exportRow[$keyTemplate] = $this->_getCustomerGroupById(
403403
$row[$keyTemplate],
404404
isset($row[ImportAdvancedPricing::VALUE_ALL_GROUPS])
405-
? $row[ImportAdvancedPricing::VALUE_ALL_GROUPS]
406-
: null
405+
? $row[ImportAdvancedPricing::VALUE_ALL_GROUPS]
406+
: null
407407
);
408408
unset($exportRow[ImportAdvancedPricing::VALUE_ALL_GROUPS]);
409409
} elseif ($keyTemplate === ImportAdvancedPricing::COL_TIER_PRICE) {

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Export/AdvancedPricingTest.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,13 @@ protected function setUp()
151151
]
152152
);
153153
$this->exportConfig = $this->createMock(\Magento\ImportExport\Model\Export\Config::class);
154-
$this->productFactory = $this->createPartialMock(\Magento\Catalog\Model\ResourceModel\ProductFactory::class, [
155-
'create',
156-
'getTypeId',
157-
]);
154+
$this->productFactory = $this->createPartialMock(
155+
\Magento\Catalog\Model\ResourceModel\ProductFactory::class,
156+
[
157+
'create',
158+
'getTypeId',
159+
]
160+
);
158161
$this->attrSetColFactory = $this->createPartialMock(
159162
\Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory::class,
160163
[
@@ -185,11 +188,14 @@ protected function setUp()
185188
\Magento\CatalogImportExport\Model\Import\Product\StoreResolver::class
186189
);
187190
$this->groupRepository = $this->createMock(\Magento\Customer\Api\GroupRepositoryInterface::class);
188-
$this->writer = $this->createPartialMock(\Magento\ImportExport\Model\Export\Adapter\AbstractAdapter::class, [
191+
$this->writer = $this->createPartialMock(
192+
\Magento\ImportExport\Model\Export\Adapter\AbstractAdapter::class,
193+
[
189194
'setHeaderCols',
190195
'writeRow',
191196
'getContents',
192-
]);
197+
]
198+
);
193199
$constructorMethods = [
194200
'initTypeModels',
195201
'initAttributes',

0 commit comments

Comments
 (0)