Skip to content

Commit e8a310c

Browse files
authored
Remove unnecessary scripts
1 parent 5f76c92 commit e8a310c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/Review/view/frontend/templates/helper/summary_short.phtml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@ $urlForm = $block->getReviewsUrl() . '#review-form';
1919
<div class="rating-result"
2020
id="rating-result_<?= /* @noEscape */ $block->getProduct()->getId() ?>"
2121
title="<?= $block->escapeHtmlAttr($rating) ?>%">
22-
<span><span><?= $block->escapeHtml($rating) ?>%</span></span>
22+
<span style="width: <?= $block->escapeHtmlAttr($rating) ?>%"><span><?= $block->escapeHtml($rating) ?>%</span></span>
2323
</div>
24-
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag(
25-
'width:' . $block->escapeHtmlAttr($rating) . '%',
26-
'#rating-result_' . $block->getProduct()->getId() . ' span'
27-
) ?>
2824
</div>
2925
<?php endif;?>
3026
<div class="reviews-actions">

0 commit comments

Comments
 (0)