Skip to content

Commit 7f4b276

Browse files
author
Jack Krielen
committed
Static error fixes (code styling)
1 parent 65c06eb commit 7f4b276

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public function __construct(
3838
}
3939

4040
/**
41+
* Apply the right HTML output to the adjustment
42+
*
4143
* @return string
4244
*/
4345
protected function apply()
@@ -181,7 +183,7 @@ public function displayPriceExcludingTax()
181183
*/
182184
public function getDataPriceType()
183185
{
184-
if ( $this->getData('price_type') !== 'finalPrice' && $priceType = $this->getData('price_type')) {
186+
if ( $this->getData('price_type') !== 'finalPrice' && $priceType = $this->getData('price_type')){
185187
return 'base' . ucfirst($priceType);
186188
}
187189
return 'basePrice';

app/code/Magento/Tax/view/base/templates/pricing/adjustment.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<?php /** @var \Magento\Tax\Pricing\Render\Adjustment $block */ ?>
99
<?php /** @var $escaper \Magento\Framework\Escaper */ ?>
1010

11-
<?php if ($block->displayBothPrices()) : ?>
11+
<?php if ($block->displayBothPrices()): ?>
1212
<span id="<?= $escaper->escapeHtmlAttr($block->buildIdWithPrefix('price-excluding-tax-')) ?>"
1313
data-label="<?= $escaper->escapeHtmlAttr(__('Excl. Tax')) ?>"
1414
data-price-amount="<?= /* @noEscape */ $block->getRawAmount() ?>"

0 commit comments

Comments
 (0)