Skip to content

Commit 77cab76

Browse files
committed
PLUG-106: Switch to using block->escapeHtml, temporarily remove codesniffer as we have phpstan running.
1 parent 29cadf1 commit 77cab76

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

.github/workflows/codesniffer.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

view/frontend/templates/checkout/process.phtml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
*/
77

88
/** @var $block Magento\Framework\View\Element\Template */
9-
/** @var $escaper Magento\Framework\Escaper */
109
?>
1110

1211
<div class="truelayer-checkout-pending" data-bind="scope:'truelayer-pending'">
1312
<h2 data-bind="visible: isLoading">
14-
<?=$escaper->escapeHtml(__('Please wait, we are processing your payment'))?>
13+
<?=$block->escapeHtml(__('Please wait, we are processing your payment'))?>
1514
</h2>
1615

1716
<div class="truelayer-loading" data-bind="visible: isLoading">
@@ -23,8 +22,8 @@
2322

2423
<div class="message info" data-bind="visible: isError" style="display: none;">
2524
<div>
26-
<?=$escaper->escapeHtml(__('Your payment is taking longer than usual to authorize.'))?>
27-
<?=$escaper->escapeHtml(__('Please wait for an order confirmation email.'))?>
25+
<?=$block->escapeHtml(__('Your payment is taking longer than usual to authorize.'))?>
26+
<?=$block->escapeHtml(__('Please wait for an order confirmation email.'))?>
2827
</div>
2928
</div>
3029
</div>

0 commit comments

Comments
 (0)