Skip to content

Commit 1053adc

Browse files
committed
fix Static tests failures
1 parent 285870e commit 1053adc

File tree

1 file changed

+14
-14
lines changed
  • app/code/Magento/Checkout/view/frontend/templates/cart

1 file changed

+14
-14
lines changed

app/code/Magento/Checkout/view/frontend/templates/cart/form.phtml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
?>
1111
<?php $mergedCells = ($this->helper(Magento\Tax\Helper\Data::class)->displayCartBothPrices() ? 2 : 1); ?>
1212
<?= $block->getChildHtml('form_before') ?>
13-
<form action="<?= $block->escapeUrl($block->getUrl('checkout/cart/updatePost')) ?>"
13+
<form action="<?= $escaper->escapeUrl($block->getUrl('checkout/cart/updatePost')) ?>"
1414
method="post"
1515
id="form-validate"
1616
data-mage-init='{"Magento_Checkout/js/action/update-shopping-cart":
17-
{"validationURL" : "<?= $block->escapeUrl($block->getUrl('checkout/cart/updateItemQty')) ?>",
17+
{"validationURL" : "<?= $escaper->escapeUrl($block->getUrl('checkout/cart/updateItemQty')) ?>",
1818
"updateCartActionContainer": "#update_cart_action_container"},
1919
"Magento_Checkout/js/cart/ensure-subtotal-sync": {}
2020
}'
@@ -30,13 +30,13 @@
3030
class="cart items data table"
3131
data-mage-init='{"shoppingCart":{"emptyCartButton": ".action.clear",
3232
"updateCartActionContainer": "#update_cart_action_container"}}'>
33-
<caption class="table-caption"><?= $block->escapeHtml(__('Shopping Cart Items')) ?></caption>
33+
<caption class="table-caption"><?= $escaper->escapeHtml(__('Shopping Cart Items')) ?></caption>
3434
<thead>
3535
<tr>
36-
<th class="col item" scope="col"><span><?= $block->escapeHtml(__('Item')) ?></span></th>
37-
<th class="col price" scope="col"><span><?= $block->escapeHtml(__('Price')) ?></span></th>
38-
<th class="col qty" scope="col"><span><?= $block->escapeHtml(__('Qty')) ?></span></th>
39-
<th class="col subtotal" scope="col"><span><?= $block->escapeHtml(__('Subtotal')) ?></span></th>
36+
<th class="col item" scope="col"><span><?= $escaper->escapeHtml(__('Item')) ?></span></th>
37+
<th class="col price" scope="col"><span><?= $escaper->escapeHtml(__('Price')) ?></span></th>
38+
<th class="col qty" scope="col"><span><?= $escaper->escapeHtml(__('Qty')) ?></span></th>
39+
<th class="col subtotal" scope="col"><span><?= $escaper->escapeHtml(__('Subtotal')) ?></span></th>
4040
</tr>
4141
</thead>
4242
<?php foreach ($block->getItems() as $_item): ?>
@@ -52,28 +52,28 @@
5252
<div class="cart main actions">
5353
<?php if ($block->getContinueShoppingUrl()): ?>
5454
<a class="action continue"
55-
href="<?= $block->escapeUrl($block->getContinueShoppingUrl()) ?>"
56-
title="<?= $block->escapeHtml(__('Continue Shopping')) ?>">
57-
<span><?= $block->escapeHtml(__('Continue Shopping')) ?></span>
55+
href="<?= $escaper->escapeUrl($block->getContinueShoppingUrl()) ?>"
56+
title="<?= $escaper->escapeHtml(__('Continue Shopping')) ?>">
57+
<span><?= $escaper->escapeHtml(__('Continue Shopping')) ?></span>
5858
</a>
5959
<?php endif; ?>
6060
<?php if ($block->getViewModel()->isClearShoppingCartEnabled()): ?>
6161
<button type="button"
6262
name="update_cart_action"
6363
data-cart-empty=""
6464
value="empty_cart"
65-
title="<?= $block->escapeHtml(__('Clear Shopping Cart')) ?>"
65+
title="<?= $escaper->escapeHtml(__('Clear Shopping Cart')) ?>"
6666
class="action clear" id="empty_cart_button">
67-
<span><?= $block->escapeHtml(__('Clear Shopping Cart')) ?></span>
67+
<span><?= $escaper->escapeHtml(__('Clear Shopping Cart')) ?></span>
6868
</button>
6969
<?php endif ?>
7070
<button type="submit"
7171
name="update_cart_action"
7272
data-cart-item-update=""
7373
value="update_qty"
74-
title="<?= $block->escapeHtml(__('Update Shopping Cart')) ?>"
74+
title="<?= $escaper->escapeHtml(__('Update Shopping Cart')) ?>"
7575
class="action update">
76-
<span><?= $block->escapeHtml(__('Update Shopping Cart')) ?></span>
76+
<span><?= $escaper->escapeHtml(__('Update Shopping Cart')) ?></span>
7777
</button>
7878
<input type="hidden" value="" id="update_cart_action_container" data-cart-item-update=""/>
7979
</div>

0 commit comments

Comments
 (0)