From 7f4b2766b8b068ca03595d0548e84ed94c47773b Mon Sep 17 00:00:00 2001 From: Jack Krielen Date: Mon, 13 Apr 2020 12:30:23 +0200 Subject: [PATCH] Static error fixes (code styling) --- app/code/Magento/Tax/Pricing/Render/Adjustment.php | 4 +++- .../Magento/Tax/view/base/templates/pricing/adjustment.phtml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Tax/Pricing/Render/Adjustment.php b/app/code/Magento/Tax/Pricing/Render/Adjustment.php index 6141b958bbaa1..c2c3a24d59535 100644 --- a/app/code/Magento/Tax/Pricing/Render/Adjustment.php +++ b/app/code/Magento/Tax/Pricing/Render/Adjustment.php @@ -38,6 +38,8 @@ public function __construct( } /** + * Apply the right HTML output to the adjustment + * * @return string */ protected function apply() @@ -181,7 +183,7 @@ public function displayPriceExcludingTax() */ public function getDataPriceType() { - if ( $this->getData('price_type') !== 'finalPrice' && $priceType = $this->getData('price_type')) { + if ( $this->getData('price_type') !== 'finalPrice' && $priceType = $this->getData('price_type')){ return 'base' . ucfirst($priceType); } return 'basePrice'; diff --git a/app/code/Magento/Tax/view/base/templates/pricing/adjustment.phtml b/app/code/Magento/Tax/view/base/templates/pricing/adjustment.phtml index 5db066eb5e2fd..685893151bc5a 100644 --- a/app/code/Magento/Tax/view/base/templates/pricing/adjustment.phtml +++ b/app/code/Magento/Tax/view/base/templates/pricing/adjustment.phtml @@ -8,7 +8,7 @@ -displayBothPrices()) : ?> +displayBothPrices()): ?>