Passed
Pull Request — master (#202)
by
unknown
09:25
created
admin/jqadm/src/Admin/JQAdm/Product/Download/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@
 block discarded – undo
407 407
 				$data['time'] = $fs->time( $data['attribute.code'] );
408 408
 				$data['size'] = $fs->size( $data['attribute.code'] );
409 409
 			}
410
-			catch( \Exception $e ) { ; } // Show product even if file isn't available any more
410
+			catch( \Exception $e ) {; } // Show product even if file isn't available any more
411 411
 		}
412 412
 
413 413
 		return $data;
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Locale/Site/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -375,7 +375,7 @@
 block discarded – undo
375 375
 		}
376 376
 
377 377
 		$msg = $this->getContext()->translate( 'admin', 'Permission denied' );
378
-		throw new \Aimeos\Admin\JQAdm\Exception( $msg);
378
+		throw new \Aimeos\Admin\JQAdm\Exception( $msg );
379 379
 	}
380 380
 
381 381
 
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Attribute/Media/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@
 block discarded – undo
355 355
 			{
356 356
 				$refItem = $cntl->add( $refItem, $file );
357 357
 
358
-				if( $preview &&  $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
358
+				if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
359 359
 					$refItem = $cntl->addPreview( $refItem, $preview );
360 360
 				}
361 361
 			}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Catalog/Media/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@
 block discarded – undo
355 355
 			{
356 356
 				$refItem = $cntl->add( $refItem, $file );
357 357
 
358
-				if( $preview &&  $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
358
+				if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
359 359
 					$refItem = $cntl->addPreview( $refItem, $preview );
360 360
 				}
361 361
 			}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Service/Media/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@
 block discarded – undo
355 355
 			{
356 356
 				$refItem = $cntl->add( $refItem, $file );
357 357
 
358
-				if( $preview &&  $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
358
+				if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
359 359
 					$refItem = $cntl->addPreview( $refItem, $preview );
360 360
 				}
361 361
 			}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Media/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@
 block discarded – undo
355 355
 			{
356 356
 				$refItem = $cntl->add( $refItem, $file );
357 357
 
358
-				if( $preview &&  $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
358
+				if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
359 359
 					$refItem = $cntl->addPreview( $refItem, $preview );
360 360
 				}
361 361
 			}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Supplier/Media/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@
 block discarded – undo
355 355
 			{
356 356
 				$refItem = $cntl->add( $refItem, $file );
357 357
 
358
-				if( $preview &&  $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
358
+				if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
359 359
 					$refItem = $cntl->addPreview( $refItem, $preview );
360 360
 				}
361 361
 			}
Please login to merge, or discard this patch.
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.