Skip to content

Commit d988484

Browse files
committed
ACP2E-1634: addressing CR comments
1 parent bdbdd26 commit d988484

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

app/code/Magento/Catalog/Pricing/Price/MinimalTierPriceCalculator.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ class MinimalTierPriceCalculator implements MinimalPriceCalculatorInterface
2020
*/
2121
private $calculator;
2222

23-
/**
24-
* @var AmountInterface|null
25-
*/
26-
private $lowestTierPrice = null;
2723

2824
/**
2925
* @param CalculatorInterface $calculator
@@ -52,7 +48,7 @@ public function getValue(SaleableInterface $saleableItem)
5248
*/
5349
public function getAmount(SaleableInterface $saleableItem)
5450
{
55-
$this->lowestTierPrice = null;
51+
$lowestTierPrice = null;
5652
/** @var TierPrice $price */
5753
$tierPrice = $saleableItem->getPriceInfo()->getPrice(TierPrice::PRICE_CODE);
5854
$tierPriceList = $tierPrice->getTierPriceList();
@@ -64,10 +60,10 @@ public function getAmount(SaleableInterface $saleableItem)
6460
$price = $tierPrice['price'];
6561
if ($minPrice > $price->getValue()) {
6662
$minPrice = $price->getValue();
67-
$this->lowestTierPrice = $price;
63+
$lowestTierPrice = $price;
6864
}
6965
}
7066

71-
return $this->lowestTierPrice;
67+
return $lowestTierPrice;
7268
}
7369
}

0 commit comments

Comments
 (0)