Passed
Push — master ( 2b21a3...72c985 )
by Aimeos
05:46
created
admin/jqadm/src/Admin/JQAdm/Catalog/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -421,9 +421,12 @@
 block discarded – undo
421 421
 	{
422 422
 		$manager = \Aimeos\MShop::create( $this->getContext(), 'catalog' );
423 423
 
424
-		try {
424
+		try
425
+		{
425 426
 			return $manager->getTree( null, [], \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE )->getId();
426
-		} catch( \Exception $e ) {
427
+		}
428
+		catch( \Exception $e )
429
+		{
427 430
 			return null;
428 431
 		}
429 432
 	}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Supplier/Address/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -284,8 +284,7 @@
 block discarded – undo
284 284
 			{
285 285
 				$addrItem = $addrItems[$entry['supplier.address.id']];
286 286
 				unset( $addrItems[$entry['supplier.address.id']] );
287
-			}
288
-			else
287
+			} else
289 288
 			{
290 289
 				$addrItem = $manager->createItem();
291 290
 			}
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
@@ -541,8 +541,7 @@  discard block
 block discarded – undo
541 541
 						{
542 542
 							$attrItem = $attrItems[$array['order.base.service.attribute.id']];
543 543
 							unset( $attrItems[$array['order.base.service.attribute.id']] );
544
-						}
545
-						else
544
+						} else
546 545
 						{
547 546
 							$attrItem = $attrManager->createItem();
548 547
 						}
@@ -577,9 +576,13 @@  discard block
 block discarded – undo
577 576
 		{
578 577
 			$manager = \Aimeos\MShop::create( $this->getContext(), 'customer' );
579 578
 
580
-			try {
579
+			try
580
+			{
581 581
 				$data += $manager->getItem( $item->getCustomerId() )->toArray();
582
-			} catch( \Exception $e ) {};
582
+			}
583
+			catch( \Exception $e )
584
+			{
585
+};
583 586
 		}
584 587
 
585 588
 
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Common/Decorator/Page.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,9 +39,12 @@  discard block
 block discarded – undo
39 39
 
40 40
 		$siteItem = $siteManager->findItem( $view->param( 'site', 'default' ) );
41 41
 
42
-		try {
42
+		try
43
+		{
43 44
 			$siteid = $customerManager->getItem( $context->getUserId() )->getSiteId() ?: $siteItem->getSiteId();
44
-		} catch( \Exception $e ) {
45
+		}
46
+		catch( \Exception $e )
47
+		{
45 48
 			$siteid = $siteItem->getSiteId();
46 49
 		}
47 50
 
@@ -70,8 +73,7 @@  discard block
 block discarded – undo
70 73
 			if( ( $rootItem = reset( $sitePath ) ) !== false ) {
71 74
 				$view->pageSiteTree = $siteManager->getTree( $rootItem->getId(), [], $level );
72 75
 			}
73
-		}
74
-		else
76
+		} else
75 77
 		{
76 78
 			$view->pageSiteList = [$view->pageSiteTree];
77 79
 		}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Customer/Address/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -284,8 +284,7 @@
 block discarded – undo
284 284
 			{
285 285
 				$addrItem = $addrItems[$entry['customer.address.id']];
286 286
 				unset( $addrItems[$entry['customer.address.id']] );
287
-			}
288
-			else
287
+			} else
289 288
 			{
290 289
 				$addrItem = $manager->createItem();
291 290
 			}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Customer/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -303,8 +303,7 @@
 block discarded – undo
303 303
 			{
304 304
 				$propItem = $propItems[$entry['customer.property.id']];
305 305
 				unset( $propItems[$entry['customer.property.id']] );
306
-			}
307
-			else
306
+			} else
308 307
 			{
309 308
 				$propItem = $manager->createItem();
310 309
 			}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Download/Standard.php 2 patches
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.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -407,7 +407,9 @@
 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 )
411
+			{
412
+; } // Show product even if file isn't available any more
411 413
 		}
412 414
 
413 415
 		return $data;
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Subscription/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -351,8 +351,7 @@
 block discarded – undo
351 351
 			{
352 352
 				$list['product.lists.siteid'] = (string) $map[$attrId]->getSiteId();
353 353
 				$list['product.lists.id'] = (string) $map[$attrId]->getId();
354
-			}
355
-			else
354
+			} else
356 355
 			{
357 356
 				$list['product.lists.siteid'] = $siteId;
358 357
 				$list['product.lists.id'] = '';
Please login to merge, or discard this patch.
admin/jqadm/templates/type/product/item-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
 				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
59 59
 					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
60
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
60
+						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
61 61
 							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
62 62
 						</a>
63 63
 					</li>
Please login to merge, or discard this patch.