Passed
Push — master ( 42e323...8b8d83 )
by Aimeos
03:39
created
admin/jqadm/templates/settings/item-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,8 @@  discard block
 block discarded – undo
92 92
 								<?php if( $logos = $this->get( 'itemData/locale.site.logo' ) ) : ?>
93 93
 									<img class="item-preview"
94 94
 										src="<?= $enc->attr( $this->content( end( $logos ) ) ) ?>" />
95
-								<?php else : ?>
95
+								<?php else {
96
+	: ?>
96 97
 									<p class="item-preview">
97 98
 										<?= $enc->html( $this->translate( 'admin', 'Upload shop logo' ) ) ?>
98 99
 									</p>
@@ -106,7 +107,9 @@  discard block
 block discarded – undo
106 107
 						<div class="box">
107 108
 
108 109
 							<div class="form-group media-preview">
109
-								<input class="fileupload" type="file" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
110
+								<input class="fileupload" type="file" tabindex="<?= $this->get( 'tabindex', 1 );
111
+}
112
+?>"
110 113
 									name="media[icon]" />
111 114
 								<?php if( $icon = $this->get( 'itemData/locale.site.icon' ) ) : ?>
112 115
 									<img class="item-preview"
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Base.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -683,8 +683,7 @@
 block discarded – undo
683 683
 		{
684 684
 			$view->errors = array_merge( $view->get( 'errors', [] ), [$e->getMessage()] );
685 685
 			return $this->log( $e );
686
-		}
687
-		elseif( $e instanceof \Aimeos\MShop\Exception )
686
+		} elseif( $e instanceof \Aimeos\MShop\Exception )
688 687
 		{
689 688
 			$view->errors = array_merge( $view->get( 'errors', [] ), [$i18n->dt( 'mshop', $e->getMessage() )] );
690 689
 			return $this->log( $e );
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Dashboard/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,12 @@
 block discarded – undo
44 44
 	{
45 45
 		$view = $this->view();
46 46
 
47
-		try {
47
+		try
48
+		{
48 49
 			$view->listBody = parent::search();
49
-		} catch( \Exception $e ) {
50
+		}
51
+		catch( \Exception $e )
52
+		{
50 53
 			$this->report( $e, 'search' );
51 54
 		}
52 55
 
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Plugin/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -374,9 +374,12 @@
 block discarded – undo
374 374
 	{
375 375
 		$manager = \Aimeos\MShop::create( $this->context(), 'plugin' );
376 376
 
377
-		try {
377
+		try
378
+		{
378 379
 			return $manager->getProvider( $item, $item->getType() )->getConfigBE();
379
-		} catch( \Aimeos\MShop\Exception $e ) {
380
+		}
381
+		catch( \Aimeos\MShop\Exception $e )
382
+		{
380 383
 			return [];
381 384
 		}
382 385
 	}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Catalog/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -366,9 +366,12 @@
 block discarded – undo
366 366
 	{
367 367
 		$manager = \Aimeos\MShop::create( $this->context(), 'catalog' );
368 368
 
369
-		try {
369
+		try
370
+		{
370 371
 			return $manager->getTree( null, [], \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE )->getId();
371
-		} catch( \Exception $e ) {
372
+		}
373
+		catch( \Exception $e )
374
+		{
372 375
 			return null;
373 376
 		}
374 377
 	}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Service/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -375,9 +375,12 @@
 block discarded – undo
375 375
 	{
376 376
 		$manager = \Aimeos\MShop::create( $this->context(), 'service' );
377 377
 
378
-		try {
378
+		try
379
+		{
379 380
 			return $manager->getProvider( $item, $item->getType() )->getConfigBE();
380
-		} catch( \Aimeos\MShop\Exception $e ) {
381
+		}
382
+		catch( \Aimeos\MShop\Exception $e )
383
+		{
381 384
 			return [];
382 385
 		}
383 386
 	}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Rule/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -374,9 +374,12 @@
 block discarded – undo
374 374
 	{
375 375
 		$manager = \Aimeos\MShop::create( $this->context(), 'rule' );
376 376
 
377
-		try {
377
+		try
378
+		{
378 379
 			return $manager->getProvider( $item, $item->getType() )->getConfigBE();
379
-		} catch( \Aimeos\MShop\Exception $e ) {
380
+		}
381
+		catch( \Aimeos\MShop\Exception $e )
382
+		{
380 383
 			return [];
381 384
 		}
382 385
 	}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Order/Standard.php 1 patch
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -489,8 +489,7 @@  discard block
 block discarded – undo
489 489
 						{
490 490
 							$attrItem = $attrItems[$array['order.base.service.attribute.id']];
491 491
 							unset( $attrItems[$array['order.base.service.attribute.id']] );
492
-						}
493
-						else
492
+						} else
494 493
 						{
495 494
 							$attrItem = $attrManager->create();
496 495
 						}
@@ -525,9 +524,13 @@  discard block
 block discarded – undo
525 524
 		{
526 525
 			$manager = \Aimeos\MShop::create( $this->context(), 'customer' );
527 526
 
528
-			try {
527
+			try
528
+			{
529 529
 				$data += $manager->get( $item->getCustomerId() )->toArray();
530
-			} catch( \Exception $e ) {};
530
+			}
531
+			catch( \Exception $e )
532
+			{
533
+};
531 534
 		}
532 535
 
533 536
 
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Coupon/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -365,9 +365,12 @@
 block discarded – undo
365 365
 	{
366 366
 		$manager = \Aimeos\MShop::create( $this->context(), 'coupon' );
367 367
 
368
-		try {
368
+		try
369
+		{
369 370
 			return $manager->getProvider( $item, '' )->getConfigBE();
370
-		} catch( \Aimeos\MShop\Exception $e ) {
371
+		}
372
+		catch( \Aimeos\MShop\Exception $e )
373
+		{
371 374
 			return [];
372 375
 		}
373 376
 	}
Please login to merge, or discard this patch.