Skip to content

Commit 142efda

Browse files
committed
MC-16618: Eliminate @escapeNotVerified in Sales-related Modules
- Front-end static fixes
1 parent 4f6f01f commit 142efda

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/code/Magento/Sales/view/frontend/templates/order/history.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<a href="<?= $block->escapeUrl($block->getViewUrl($_order)) ?>" class="action view">
4343
<span><?= $block->escapeHtml(__('View Order')) ?></span>
4444
</a>
45-
<?php if ($this->helper('Magento\Sales\Helper\Reorder')->canReorder($_order->getEntityId())) : ?>
45+
<?php if ($this->helper(\Magento\Sales\Helper\Reorder::class)->canReorder($_order->getEntityId())) : ?>
4646
<a href="#" data-post='<?= /* @noEscape */
4747
$this->helper(\Magento\Framework\Data\Helper\PostHelper::class)
4848
->getPostData($block->getReorderUrl($_order))
@@ -59,6 +59,6 @@
5959
<?php if ($block->getPagerHtml()) : ?>
6060
<div class="order-products-toolbar toolbar bottom"><?= $block->getPagerHtml() ?></div>
6161
<?php endif ?>
62-
<?php else: ?>
62+
<?php else : ?>
6363
<div class="message info empty"><span><?= $block->escapeHtml(__('You have placed no orders.')) ?></span></div>
6464
<?php endif ?>

app/code/Magento/Sales/view/frontend/templates/order/invoice/items.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</tr>
3535
</thead>
3636
<?php $_items = $_invoice->getAllItems(); ?>
37-
<?php foreach ($_items as $_item): ?>
37+
<?php foreach ($_items as $_item) : ?>
3838
<?php if (!$_item->getOrderItem()->getParentItem()) : ?>
3939
<tbody>
4040
<?= $block->getItemHtml($_item) ?>

app/code/Magento/Sales/view/frontend/templates/order/print/creditmemo.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<?php $_creditmemo = $block->getCreditmemo() ?>
99
<?php if ($_creditmemo) : ?>
1010
<?php $_creditmemos = [$_creditmemo]; ?>
11-
<?php else: ?>
11+
<?php else : ?>
1212
<?php $_creditmemos = $_order->getCreditmemosCollection() ?>
1313
<?php endif; ?>
1414
<?php foreach ($_creditmemos as $_creditmemo) : ?>

0 commit comments

Comments
 (0)