This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
app/code/Magento/AdvancedPricingImportExport/Model/Export Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -452,6 +452,9 @@ private function tierPriceTypeValue(array $tierPriceData): string
452
452
* @param string[] $productIds Link IDs of products to find tier prices for.
453
453
*
454
454
* @return array Tier prices data.
455
+ *
456
+ * @SuppressWarnings(PHPMD.NPathComplexity)
457
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
455
458
*/
456
459
private function fetchTierPrices (array $ productIds ): array
457
460
{
@@ -478,14 +481,12 @@ private function fetchTierPrices(array $productIds): array
478
481
ImportAdvancedPricing::COL_TIER_PRICE_PERCENTAGE_VALUE => 'ap.percentage_value ' ,
479
482
'product_link_id ' => 'ap. ' .$ productEntityLinkField ,
480
483
];
481
- if ($ exportFilter ) {
482
- if (array_key_exists ('tier_price ' , $ exportFilter )) {
483
- if (!empty ($ exportFilter ['tier_price ' ][0 ])) {
484
- $ priceFromFilter = $ exportFilter ['tier_price ' ][0 ];
485
- }
486
- if (!empty ($ exportFilter ['tier_price ' ][1 ])) {
487
- $ priceToFilter = $ exportFilter ['tier_price ' ][1 ];
488
- }
484
+ if ($ exportFilter && array_key_exists ('tier_price ' , $ exportFilter )) {
485
+ if (!empty ($ exportFilter ['tier_price ' ][0 ])) {
486
+ $ priceFromFilter = $ exportFilter ['tier_price ' ][0 ];
487
+ }
488
+ if (!empty ($ exportFilter ['tier_price ' ][1 ])) {
489
+ $ priceToFilter = $ exportFilter ['tier_price ' ][1 ];
489
490
}
490
491
}
491
492
You can’t perform that action at this time.
0 commit comments