5
5
*/
6
6
7
7
// phpcs:disable Magento2.Templates.ThisInTemplate
8
- // phpcs:disable Magento2 .Files.LineLength.MaxExceeded
8
+ // phpcs:disable Generic .Files.LineLength
9
9
10
10
/** @var $block \Magento\Checkout\Block\Cart\Item\Renderer */
11
11
@@ -19,58 +19,58 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
19
19
<tbody class="cart item">
20
20
<tr class="item-info">
21
21
<td data-th="<?= $ block ->escapeHtml (__ ('Item ' )) ?> " class="col item">
22
- <?php if ($ block ->hasProductUrl ()) : ?>
22
+ <?php if ($ block ->hasProductUrl ()): ?>
23
23
<a href="<?= $ block ->escapeUrl ($ block ->getProductUrl ()) ?> "
24
24
title="<?= $ block ->escapeHtml ($ block ->getProductName ()) ?> "
25
25
tabindex="-1"
26
26
class="product-item-photo">
27
- <?php else : ?>
27
+ <?php else : ?>
28
28
<span class="product-item-photo">
29
- <?php endif ;?>
29
+ <?php endif ; ?>
30
30
<?= $ block ->getImage ($ block ->getProductForThumbnail (), 'cart_page_product_thumbnail ' )->toHtml () ?>
31
- <?php if ($ block ->hasProductUrl ()) : ?>
31
+ <?php if ($ block ->hasProductUrl ()): ?>
32
32
</a>
33
- <?php else : ?>
33
+ <?php else : ?>
34
34
</span>
35
35
<?php endif ; ?>
36
36
<div class="product-item-details">
37
37
<strong class="product-item-name">
38
- <?php if ($ block ->hasProductUrl ()) : ?>
38
+ <?php if ($ block ->hasProductUrl ()): ?>
39
39
<a href="<?= $ block ->escapeUrl ($ block ->getProductUrl ()) ?> "><?= $ block ->escapeHtml ($ block ->getProductName ()) ?> </a>
40
- <?php else : ?>
40
+ <?php else : ?>
41
41
<?= $ block ->escapeHtml ($ block ->getProductName ()) ?>
42
42
<?php endif ; ?>
43
43
</strong>
44
- <?php if ($ _options = $ block ->getOptionList ()) : ?>
44
+ <?php if ($ _options = $ block ->getOptionList ()): ?>
45
45
<dl class="item-options">
46
- <?php foreach ($ _options as $ _option ) : ?>
46
+ <?php foreach ($ _options as $ _option ): ?>
47
47
<?php $ _formatedOptionValue = $ block ->getFormatedOptionValue ($ _option ) ?>
48
48
<dt><?= $ block ->escapeHtml ($ _option ['label ' ]) ?> </dt>
49
49
<dd>
50
- <?php if (isset ($ _formatedOptionValue ['full_view ' ])) : ?>
50
+ <?php if (isset ($ _formatedOptionValue ['full_view ' ])): ?>
51
51
<?= $ block ->escapeHtml ($ _formatedOptionValue ['full_view ' ], ['span ' , 'a ' ]) ?>
52
- <?php else : ?>
53
- <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ], ['span ' , 'a ' ]) ?>
52
+ <?php else : ?>
53
+ <?= $ block ->escapeHtml ($ _formatedOptionValue ['value ' ], ['span ' , 'a ' ]) ?>
54
54
<?php endif ; ?>
55
55
</dd>
56
56
<?php endforeach ; ?>
57
57
</dl>
58
- <?php endif ;?>
59
- <?php if ($ messages = $ block ->getMessages ()) : ?>
60
- <?php foreach ($ messages as $ message ) : ?>
58
+ <?php endif ; ?>
59
+ <?php if ($ messages = $ block ->getMessages ()): ?>
60
+ <?php foreach ($ messages as $ message ): ?>
61
61
<div class= "cart item message <?= $ block ->escapeHtmlAttr ($ message ['type ' ]) ?> ">
62
62
<div><?= $ block ->escapeHtml ($ message ['text ' ]) ?> </div>
63
63
</div>
64
64
<?php endforeach ; ?>
65
65
<?php endif ; ?>
66
66
<?php $ addInfoBlock = $ block ->getProductAdditionalInformationBlock (); ?>
67
- <?php if ($ addInfoBlock ) : ?>
67
+ <?php if ($ addInfoBlock ): ?>
68
68
<?= $ addInfoBlock ->setItem ($ _item )->toHtml () ?>
69
- <?php endif ;?>
69
+ <?php endif ; ?>
70
70
</div>
71
71
</td>
72
72
73
- <?php if ($ canApplyMsrp ) : ?>
73
+ <?php if ($ canApplyMsrp ): ?>
74
74
<td class="col msrp" data-th="<?= $ block ->escapeHtml (__ ('Price ' )) ?> ">
75
75
<span class="pricing msrp">
76
76
<span class="msrp notice"><?= $ block ->escapeHtml (__ ('See price before order confirmation. ' )) ?> </span>
@@ -89,7 +89,7 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
89
89
</a>
90
90
</span>
91
91
</td>
92
- <?php else : ?>
92
+ <?php else : ?>
93
93
<td class="col price" data-th="<?= $ block ->escapeHtml (__ ('Price ' )) ?> ">
94
94
<?= $ block ->getUnitPriceHtml ($ _item ) ?>
95
95
</td>
@@ -117,9 +117,9 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
117
117
</td>
118
118
119
119
<td class="col subtotal" data-th="<?= $ block ->escapeHtml (__ ('Subtotal ' )) ?> ">
120
- <?php if ($ canApplyMsrp ) : ?>
120
+ <?php if ($ canApplyMsrp ): ?>
121
121
<span class="cart msrp subtotal">--</span>
122
- <?php else : ?>
122
+ <?php else : ?>
123
123
<?= $ block ->getRowTotalHtml ($ _item ) ?>
124
124
<?php endif ; ?>
125
125
</td>
0 commit comments