Skip to content

Commit f96eae8

Browse files
committed
Code refactoring
1 parent 0a7a771 commit f96eae8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

app/code/Magento/Review/view/frontend/templates/customer/view.phtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ $product = $block->getProductData();
4141
<?php $ratingCode = $block->escapeHtml($_rating->getRatingCode()) ?>
4242
<div class="rating-summary item">
4343
<span class="rating-label">
44-
<span><?= $ratingCode ?></span>
44+
<span><?= /* @noEscape */ $ratingCode ?></span>
4545
</span>
46-
<div class="rating-result <?= $ratingCode ?>" title="<?= /* @noEscape */ $rating ?>%">
46+
<div class="rating-result <?= /* @noEscape */ $ratingCode ?>"
47+
title="<?= /* @noEscape */ $rating ?>%"
48+
>
4749
<span>
4850
<span><?= /* @noEscape */ $rating ?>%</span>
4951
</span>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ $urlForm = $block->getReviewsUrl() . '#review-form';
1919
<?php if ($rating):?>
2020
<div class="rating-summary">
2121
<span class="label"><span><?= $block->escapeHtml(__('Rating')) ?>:</span></span>
22-
<div class="rating-result" id="rating-result_<?= /* @noEscape */ $block->getProduct()->getId() ?>" title="<?= $block->escapeHtmlAttr($rating); ?>%">
22+
<div class="rating-result"
23+
id="rating-result_<?= /* @noEscape */ $block->getProduct()->getId() ?>"
24+
title="<?= $block->escapeHtmlAttr($rating); ?>%"
25+
>
2326
<span>
2427
<span>
2528
<span itemprop="ratingValue"><?= $block->escapeHtml($rating); ?>

0 commit comments

Comments
 (0)