Skip to content

Commit

Permalink
Static error fixes (code styling)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Krielen committed Apr 13, 2020
1 parent 65c06eb commit 7f4b276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/code/Magento/Tax/Pricing/Render/Adjustment.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public function __construct(
}

/**
* Apply the right HTML output to the adjustment
*
* @return string
*/
protected function apply()
Expand Down Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<?php /** @var \Magento\Tax\Pricing\Render\Adjustment $block */ ?>
<?php /** @var $escaper \Magento\Framework\Escaper */ ?>

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

0 comments on commit 7f4b276

Please sign in to comment.