Skip to content

Commit 00317ef

Browse files
committed
Static tests fix
1 parent 9c11369 commit 00317ef

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

app/code/Magento/Catalog/view/base/templates/product/price/tier_prices.phtml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ $tierPrices = $tierPriceModel->getTierPriceList();
1717
$msrpShowOnGesture = $block->getPriceType('msrp_price')->isShowPriceOnGesture();
1818
$product = $block->getSaleableItem();
1919
?>
20-
<?php if (count($tierPrices)) : ?>
20+
<?php if (count($tierPrices)): ?>
2121
<ul class="<?= $block->escapeHtmlAttr(($block->hasListClass() ? $block->getListClass() : 'prices-tier items')) ?>">
22-
<?php foreach ($tierPrices as $index => $price) : ?>
22+
<?php foreach ($tierPrices as $index => $price): ?>
2323
<li class="item">
2424
<?php
2525
$productId = $product->getId();
2626
$isSaleable = $product->isSaleable();
2727
$popupId = 'msrp-popup-' . $productId . $block->getRandomString(20);
28-
if ($msrpShowOnGesture && $price['price']->getValue() < $product->getMsrp()) :
28+
if ($msrpShowOnGesture && $price['price']->getValue() < $product->getMsrp()):
2929
$addToCartUrl = '';
3030
if ($isSaleable) {
3131
$addToCartUrl = $this->helper(\Magento\Checkout\Helper\Cart::class)
@@ -60,7 +60,7 @@ $product = $block->getSaleableItem();
6060
id="<?= $block->escapeHtmlAttr($popupId) ?>"
6161
data-tier-price="<?= $block->escapeHtml($block->jsonEncode($tierPriceData)) ?>">
6262
<?= $block->escapeHtml(__('Click for price')) ?></a>
63-
<?php else :
63+
<?php else:
6464
$priceAmountBlock = $block->renderAmount(
6565
$price['price'],
6666
[
@@ -73,7 +73,8 @@ $product = $block->getSaleableItem();
7373
?>
7474
<?= /* @noEscape */ ($block->getShowDetailedPrice() !== false)
7575
? __(
76-
'Buy %1 for %2 each and <strong class="benefit">save<span class="percent tier-%3">&nbsp;%4</span>%</strong>',
76+
'Buy %1 for %2 each and '.
77+
'<strong class="benefit">save<span class="percent tier-%3">&nbsp;%4</span>%</strong>',
7778
$price['price_qty'],
7879
$priceAmountBlock,
7980
$index,
@@ -85,7 +86,7 @@ $product = $block->getSaleableItem();
8586
</li>
8687
<?php endforeach; ?>
8788
</ul>
88-
<?php if ($msrpShowOnGesture) :?>
89+
<?php if ($msrpShowOnGesture):?>
8990
<script type="text/x-magento-init">
9091
{
9192
".product-info-main": {

0 commit comments

Comments
 (0)