Skip to content

Commit 21ad13f

Browse files
author
Jack Krielen
committed
Refactor small line of code. + Code Styling.
1 parent 7f4b276 commit 21ad13f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Tax/Pricing/Render/Adjustment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ public function displayPriceExcludingTax()
183183
*/
184184
public function getDataPriceType()
185185
{
186-
if ( $this->getData('price_type') !== 'finalPrice' && $priceType = $this->getData('price_type')){
187-
return 'base' . ucfirst($priceType);
186+
if ($this->getData('price_type') && $this->getData('price_type') !== 'finalPrice') {
187+
return 'base' . ucfirst($this->getData('price_type'));
188188
}
189189
return 'basePrice';
190190
}

0 commit comments

Comments
 (0)