File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
AdvancedPricingImportExport/Model/Export
CatalogImportExport/Model/Export Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,9 @@ protected function initTypeModels()
174
174
}
175
175
if ($ model ->isSuitable ()) {
176
176
$ this ->_productTypeModels [$ productTypeName ] = $ model ;
177
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge
177
178
$ this ->_disabledAttrs = array_merge ($ this ->_disabledAttrs , $ model ->getDisabledAttrs ());
179
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge
178
180
$ this ->_indexValueAttributes = array_merge (
179
181
$ this ->_indexValueAttributes ,
180
182
$ model ->getIndexValueAttributes ()
@@ -199,6 +201,7 @@ protected function initTypeModels()
199
201
public function export ()
200
202
{
201
203
//Execution time may be very long
204
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
202
205
set_time_limit (0 );
203
206
204
207
$ writer = $ this ->getWriter ();
@@ -355,6 +358,7 @@ private function prepareExportData(
355
358
$ linkedTierPricesData = [];
356
359
foreach ($ tierPricesData as $ tierPriceData ) {
357
360
$ sku = $ productLinkIdToSkuMap [$ tierPriceData ['product_link_id ' ]];
361
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge
358
362
$ linkedTierPricesData [] = array_merge (
359
363
$ tierPriceData ,
360
364
[ImportAdvancedPricing::COL_SKU => $ sku ]
Original file line number Diff line number Diff line change @@ -484,7 +484,9 @@ protected function initTypeModels()
484
484
}
485
485
if ($ model ->isSuitable ()) {
486
486
$ this ->_productTypeModels [$ productTypeName ] = $ model ;
487
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge
487
488
$ this ->_disabledAttrs = array_merge ($ this ->_disabledAttrs , $ model ->getDisabledAttrs ());
489
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge
488
490
$ this ->_indexValueAttributes = array_merge (
489
491
$ this ->_indexValueAttributes ,
490
492
$ model ->getIndexValueAttributes ()
@@ -923,6 +925,7 @@ protected function getExportData()
923
925
foreach ($ rawData as $ productId => $ productData ) {
924
926
foreach ($ productData as $ storeId => $ dataRow ) {
925
927
if ($ storeId == Store::DEFAULT_STORE_ID && isset ($ stockItemRows [$ productId ])) {
928
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge
926
929
$ dataRow = array_merge ($ dataRow , $ stockItemRows [$ productId ]);
927
930
}
928
931
$ this ->appendMultirowData ($ dataRow , $ multirawData );
You can’t perform that action at this time.
0 commit comments