Skip to content

Commit d927d0b

Browse files
committed
Fixed Static Test Failures
1 parent 09da3f5 commit d927d0b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2011 Adobe
4+
* All Rights Reserved.
55
*/
66

77
/**
88
* @var $block \Magento\Tax\Block\Checkout\Subtotal
99
* @see \Magento\Tax\Block\Checkout\Subtotal
1010
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
11+
* @var $escaper \Magento\Framework\Escaper
1112
*/
1213
?>
1314
<?php
14-
$style = $block->escapeHtmlAttr($block->getStyle());
15+
$style = $escaper->escapeHtmlAttr($block->getStyle());
1516
$colspan = (int) $block->getColspan();
1617
/** @var \Magento\Checkout\Helper\Data $checkoutHelper */
1718
$checkoutHelper = $block->getData('checkoutHelper');
1819
?>
1920
<?php if ($block->displayBoth()): ?>
2021
<tr class="totals sub excl">
2122
<th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
22-
<?= $block->escapeHtml(__('Subtotal (Excl. Tax)')) ?>
23+
<?= $escaper->escapeHtml(__('Subtotal (Excl. Tax)')) ?>
2324
</th>
24-
<td class="amount" data-th="<?= $block->escapeHtmlAttr(__('Subtotal (Excl. Tax)')) ?>">
25+
<td class="amount" data-th="<?= $escaper->escapeHtmlAttr(__('Subtotal (Excl. Tax)')) ?>">
2526
<?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValueExclTax()) ?>
2627
</td>
2728
</tr>
@@ -31,9 +32,9 @@ $checkoutHelper = $block->getData('checkoutHelper');
3132
<?php endif; ?>
3233
<tr class="totals sub incl">
3334
<th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
34-
<?= $block->escapeHtml(__('Subtotal (Incl. Tax)')) ?>
35+
<?= $escaper->escapeHtml(__('Subtotal (Incl. Tax)')) ?>
3536
</th>
36-
<td class="amount" data-th="<?= $block->escapeHtmlAttr(__('Subtotal (Incl. Tax)')) ?>">
37+
<td class="amount" data-th="<?= $escaper->escapeHtmlAttr(__('Subtotal (Incl. Tax)')) ?>">
3738
<?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValueInclTax()) ?>
3839
</td>
3940
</tr>
@@ -44,9 +45,9 @@ $checkoutHelper = $block->getData('checkoutHelper');
4445
<?php else: ?>
4546
<tr class="totals sub">
4647
<th class="mark" colspan="<?= /* @noEscape */ $colspan ?>" scope="row">
47-
<?= $block->escapeHtml($block->getTotal()->getTitle()) ?>
48+
<?= $escaper->escapeHtml($block->getTotal()->getTitle()) ?>
4849
</th>
49-
<td class="amount" data-th="<?= $block->escapeHtmlAttr($block->getTotal()->getTitle()) ?>">
50+
<td class="amount" data-th="<?= $escaper->escapeHtmlAttr($block->getTotal()->getTitle()) ?>">
5051
<?= /* @noEscape */ $checkoutHelper->formatPrice($block->getTotal()->getValue()) ?>
5152
</td>
5253
</tr>

0 commit comments

Comments
 (0)