Skip to content

Commit b2d0793

Browse files
authored
Static tests fixes
1 parent 428605d commit b2d0793

File tree

1 file changed

+9
-8
lines changed
  • app/code/Magento/Wishlist/view/frontend/templates/email

1 file changed

+9
-8
lines changed

app/code/Magento/Wishlist/view/frontend/templates/email/items.phtml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
<table>
1212
<tr>
1313
<?php $i = 0;
14-
foreach ($block->getWishlistItems() as $item) : $i++ ?>
15-
<?php /* @var $item \Magento\Wishlist\Model\Item */ ?>
16-
<?php /* @var $_product \Magento\Catalog\Model\Product */ ?>
14+
foreach ($block->getWishlistItems() as $item): $i++ ?>
15+
<?php /* @var \Magento\Wishlist\Model\Item $item */ ?>
16+
<?php /* @var \Magento\Catalog\Model\Product $_product */ ?>
1717
<?php $_product = $item->getProduct(); ?>
1818
<td class="col product">
1919
<p>
2020
<a href="<?= $block->escapeUrl($block->getProductUrl($item)) ?>">
21-
<?= /* @noEscape */ $block->getImage($block->getProductForThumbnail($item), 'product_small_image')->toHtml() ?>
21+
<?php $productThumbnail = $block->getProductForThumbnail($item) ?>
22+
<?= /* @noEscape */ $block->getImage($productThumbnail, 'product_small_image')->toHtml() ?>
2223
</a>
2324
</p>
2425

@@ -27,7 +28,7 @@
2728
<strong><?= $block->escapeHtml($_product->getName()) ?></strong>
2829
</a>
2930
</p>
30-
<?php if ($block->hasDescription($item)) : ?>
31+
<?php if ($block->hasDescription($item)): ?>
3132
<p>
3233
<strong><?= $block->escapeHtml(__('Comment')) ?>:</strong>
3334
<br/><?= /* @noEscape */ $block->getEscapedDescription($item) ?>
@@ -39,14 +40,14 @@
3940
</a>
4041
</p>
4142
</td>
42-
<?php if ($i % 3 != 0) : ?>
43+
<?php if ($i % 3 != 0): ?>
4344
<td></td>
44-
<?php else : ?>
45+
<?php else: ?>
4546
</tr>
4647
<tr>
4748
<td colspan="5">&nbsp;</td>
4849
</tr>
49-
<?php if ($i < $l) : ?>
50+
<?php if ($i < $l): ?>
5051
<tr>
5152
<?php endif ?>
5253
<?php endif ?>

0 commit comments

Comments
 (0)