Passed
Pull Request — master (#202)
by
unknown
09:25
created
admin/jqadm/templates/order/item-standard.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 															<span class="product-name"><?= $enc->html( $orderProduct->getName() ) ?></span>
296 296
 															<span class="product-attr">
297 297
 																<?php foreach( $orderProduct->getAttributeItems() as $attrItem ) : ?>
298
-                                                                    <?php if ($attrItem->getCode() !== 'upload') : ?>
298
+                                                                    <?php if( $attrItem->getCode() !== 'upload' ) : ?>
299 299
                                                                         <span class="attr-code"><?= $enc->html( $attrItem->getCode() ) ?></span>
300 300
                                                                         <span class="attr-value">
301 301
                                                                             <?php if( $attrItem->getQuantity() > 1 ) : ?>
@@ -334,15 +334,15 @@  discard block
 block discarded – undo
334 334
 												</div>
335 335
 											</div>
336 336
                                             <div class="row">
337
-                                                <?php foreach( $orderProduct->getAttributeItems('custom') as $attrItem ) : ?>
337
+                                                <?php foreach( $orderProduct->getAttributeItems( 'custom' ) as $attrItem ) : ?>
338 338
                                                     <?php if( $attrItem->getCode() === 'upload' ) : ?>
339 339
                                                         <label class="col-5 col-sm-12 form-control-label"><?= $attrItem->getName() ?></label>
340 340
                                                         <div class="col-7 col-sm-12">
341 341
                                                             <div class="upload-images">
342
-                                                                <?php foreach ($attrItem->getValue() as $upload) : ?>
342
+                                                                <?php foreach( $attrItem->getValue() as $upload ) : ?>
343 343
                                                                     <span class="upload-image">
344
-                                                                                        <img src="<?= $enc->attr( $this->content($upload) ) ?>" alt="upload-image" />
345
-                                                                                        <a href="<?= $enc->attr( $this->content($upload) ) ?>" target="_blank">Download</a>
344
+                                                                                        <img src="<?= $enc->attr( $this->content( $upload ) ) ?>" alt="upload-image" />
345
+                                                                                        <a href="<?= $enc->attr( $this->content( $upload ) ) ?>" target="_blank">Download</a>
346 346
                                                                                     </span>
347 347
                                                                 <?php endforeach ?>
348 348
                                                             </div>
Please login to merge, or discard this patch.