Skip to content

Commit c62c3c8

Browse files
committed
MAGETWO-99488: Eliminate @escapeNotVerified in Tax-related Modules
1 parent b5d85e1 commit c62c3c8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/code/Magento/Tax/view/frontend/templates/checkout/grandtotal.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
* @var $block \Magento\Tax\Block\Checkout\Grandtotal
1111
*/
1212
?>
13+
<?php
14+
$style = $block->escapeHtmlAttr($block->getStyle());
15+
$colspan = (int)$block->getColspan();
16+
?>
1317
<?php if ($block->includeTax() && $block->getTotalExclTax() >= 0) : ?>
14-
<?php
15-
$style = $block->escapeHtmlAttr($block->getStyle());
16-
$colspan = (int)$block->getColspan();
17-
?>
1818
<tr class="grand totals excl">
1919
<th style="<?= /* @noEscape */ $style ?>" class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
2020
<strong><?= $block->escapeHtml(__('Grand Total Excl. Tax')) ?></strong>

app/code/Magento/Tax/view/frontend/templates/checkout/subtotal.phtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* @see \Magento\Tax\Block\Checkout\Subtotal
1212
*/
1313
?>
14+
<?php
15+
$style = $block->escapeHtmlAttr($block->getStyle());
16+
$colspan = (int)$block->getColspan();
17+
?>
1418
<?php if ($block->displayBoth()) : ?>
15-
<?php
16-
$style = $block->escapeHtmlAttr($block->getStyle());
17-
$colspan = (int)$block->getColspan();
18-
?>
1919
<tr class="totals sub excl">
2020
<th style="<?= /* @noEscape */ $style ?>" class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
2121
<?= $block->escapeHtml(__('Subtotal (Excl. Tax)')) ?>

0 commit comments

Comments
 (0)