@@ -120,20 +120,20 @@ function () use ($productId, $context) {
120120
121121 $ productPrice = $ this ->tiers ->getProductRegularPrice ($ productId ) ?? 0.0 ;
122122 $ tierPrices = $ this ->tiers ->getProductTierPrices ($ productId ) ?? [];
123- return $ this ->filterAndFormatProductTierPrices ($ tierPrices , $ productPrice , $ store );
123+ return $ this ->formatAndFilterTierPrices ($ tierPrices , $ productPrice , $ store );
124124 }
125125 );
126126 }
127127
128128 /**
129- * Filter and format tier prices for output
129+ * Format and filter tier prices for output
130130 *
131131 * @param ProductTierPriceInterface[] $tierPrices
132132 * @param float $productPrice
133133 * @param StoreInterface $store
134134 * @return array
135135 */
136- private function filterAndFormatProductTierPrices (
136+ private function formatAndFilterTierPrices (
137137 array $ tierPrices ,
138138 float $ productPrice ,
139139 StoreInterface $ store
@@ -142,7 +142,7 @@ private function filterAndFormatProductTierPrices(
142142 $ qtyCache = [];
143143
144144 foreach ($ tierPrices as $ key => $ tierPrice ) {
145- $ this ->formatProductTierPrices ($ productPrice , $ store , $ tierPrice , $ tiers );
145+ $ this ->formatTierPrices ($ productPrice , $ store , $ tierPrice , $ tiers );
146146 $ this ->filterTierPrices ($ tierPrices , $ key , $ tierPrice , $ qtyCache , $ tiers );
147147 }
148148 return $ tiers ;
@@ -156,7 +156,7 @@ private function filterAndFormatProductTierPrices(
156156 * @param ProductTierPriceInterface $tierPrice
157157 * @param array $tiers
158158 */
159- private function formatProductTierPrices (float $ productPrice , StoreInterface $ store , &$ tierPrice , &$ tiers )
159+ private function formatTierPrices (float $ productPrice , StoreInterface $ store , &$ tierPrice , &$ tiers )
160160 {
161161 $ tierPrice ->setValue ($ this ->priceCurrency ->convertAndRound ($ tierPrice ->getValue ()));
162162 $ percentValue = $ tierPrice ->getExtensionAttributes ()->getPercentageValue ();
0 commit comments