Skip to content

Commit f9f782b

Browse files
author
Hwashiang Yu
committed
MC-16877: Eliminate @escapeNotVerified in Catalog Inventory Modules
- Removed coding standard ignore - Ran phpcbf on templates
1 parent ef04c2c commit f9f782b

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

app/code/Magento/CatalogInventory/view/frontend/templates/qtyincrements.phtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
/**
108
* @var $block \Magento\CatalogInventory\Block\Qtyincrements
119
*/

app/code/Magento/CatalogInventory/view/frontend/templates/stockqty/composite.phtml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
/**
108
* @var $block \Magento\CatalogInventory\Block\Stockqty\Composite
119
*/
1210
?>
13-
<?php if ($block->isMsgVisible()): ?>
11+
<?php if ($block->isMsgVisible()) : ?>
1412
<div class="availability only">
1513
<a href="#"
1614
data-mage-init='{"toggleAdvanced": {"selectorsToggleClass": "active", "baseToggleClass": "expanded", "toggleContainers": "#<?= /* @escapeNotVerified */ $block->getDetailsPlaceholderId() ?>"}}'

app/code/Magento/CatalogInventory/view/frontend/templates/stockqty/default.phtml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
/**
108
* @var $block \Magento\CatalogInventory\Block\Stockqty\DefaultStockqty
119
*/
1210
?>
13-
<?php if ($block->isMsgVisible()): ?>
11+
<?php if ($block->isMsgVisible()) : ?>
1412
<div class="availability only" title="<?= /* @escapeNotVerified */ __('Only %1 left', ($block->getStockQtyLeft())) ?>">
1513
<?= /* @escapeNotVerified */ __('Only %1 left', "<strong>{$block->getStockQtyLeft()}</strong>") ?>
1614
</div>

0 commit comments

Comments
 (0)