From 21ad13f6880fa6be86b18a993d38dbb18752916b Mon Sep 17 00:00:00 2001 From: Jack Krielen Date: Tue, 14 Apr 2020 08:50:01 +0200 Subject: [PATCH] Refactor small line of code. + Code Styling. --- app/code/Magento/Tax/Pricing/Render/Adjustment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Tax/Pricing/Render/Adjustment.php b/app/code/Magento/Tax/Pricing/Render/Adjustment.php index c2c3a24d59535..ec451eb012878 100644 --- a/app/code/Magento/Tax/Pricing/Render/Adjustment.php +++ b/app/code/Magento/Tax/Pricing/Render/Adjustment.php @@ -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'; }