Skip to content

Commit

Permalink
Refactor small line of code. + Code Styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Krielen committed Apr 14, 2020
1 parent 7f4b276 commit 21ad13f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Tax/Pricing/Render/Adjustment.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ public function displayPriceExcludingTax()
*/
public function getDataPriceType()
{
if ( $this->getData('price_type') !== 'finalPrice' && $priceType = $this->getData('price_type')){
return 'base' . ucfirst($priceType);
if ($this->getData('price_type') && $this->getData('price_type') !== 'finalPrice') {
return 'base' . ucfirst($this->getData('price_type'));
}
return 'basePrice';
}
Expand Down

0 comments on commit 21ad13f

Please sign in to comment.