Passed
Push — master ( d92fa9...ba7df9 )
by Aimeos
03:30
created
admin/jqadm/templates/order/item-standard.php 1 patch
Braces   +11 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@  discard block
 block discarded – undo
9 9
 	return ( $key == $code ? 'selected="selected"' : '' );
10 10
 };
11 11
 
12
-$sortItems = function( array $items )
13
-{
12
+$sortItems = function( array $items ) {
14 13
 	krsort( $items );
15 14
 	return $items;
16 15
 };
@@ -340,8 +339,11 @@  discard block
 block discarded – undo
340 339
 										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div>
341 340
 									</div>
342 341
 								<?php endforeach; ?>
343
-							<?php else : ?>
344
-								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?>
342
+							<?php else {
343
+	: ?>
344
+								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) );
345
+}
346
+?>
345 347
 							<?php endif; ?>
346 348
 						</div>
347 349
 
@@ -768,8 +770,11 @@  discard block
 block discarded – undo
768 770
 									<div class="col-6 name">
769 771
 										<?php if( $basket->getPrice()->getTaxFlag() ) : ?>
770 772
 											<?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?>
771
-										<?php else : ?>
772
-											<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?>
773
+										<?php else {
774
+	: ?>
775
+											<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) );
776
+}
777
+?>
773 778
 										<?php endif; ?>
774 779
 									</div>
775 780
 									<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getTaxValue() ), $currency ) ); ?></div>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/listhead-standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,16 +56,14 @@
 block discarded – undo
56 56
 		$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
57 57
 		$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
58 58
 		$config = $this->config( 'admin/jqadm/url/get/config', [] );
59
-	}
60
-	else
59
+	} else
61 60
 	{
62 61
 		$target = $this->config( 'admin/jqadm/url/create/target' );
63 62
 		$controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
64 63
 		$action = $this->config( 'admin/jqadm/url/create/action', 'create' );
65 64
 		$config = $this->config( 'admin/jqadm/url/create/config', [] );
66 65
 	}
67
-}
68
-else
66
+} else
69 67
 {
70 68
 	$target = $this->config( 'admin/jqadm/url/search/target' );
71 69
 	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
Please login to merge, or discard this patch.
admin/jqadm/templates/dashboard/item-order-latest-standard.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2016-2018
6 6
  */
7 7
 
8
-$price = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat ) {
10 9
 	if( isset( $orders[$item->getBaseId()] ) )
11 10
 	{
12 11
 		$price = $orders[$item->getBaseId()]->getPrice();
@@ -15,8 +14,7 @@  discard block
 block discarded – undo
15 14
 };
16 15
 
17 16
 
18
-$name = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item )
19
-{
17
+$name = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
20 18
 	if( isset( $orders[$item->getBaseId()] ) )
21 19
 	{
22 20
 		$type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT;
@@ -34,8 +32,7 @@  discard block
 block discarded – undo
34 32
 };
35 33
 
36 34
 
37
-$payment = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item )
38
-{
35
+$payment = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
39 36
 	if( isset( $orders[$item->getBaseId()] ) )
40 37
 	{
41 38
 		$type = \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT;
@@ -51,8 +48,7 @@  discard block
 block discarded – undo
51 48
 };
52 49
 
53 50
 
54
-$status = function( array $list, $key )
55
-{
51
+$status = function( array $list, $key ) {
56 52
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
57 53
 };
58 54
 
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Common/Decorator/Page.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,9 @@  discard block
 block discarded – undo
50 50
 				$id = $siteManager->searchItems( $search )->keys()->first() ?: $siteItem->getId();
51 51
 			}
52 52
 		}
53
-		catch( \Exception $e ) { ; }
53
+		catch( \Exception $e )
54
+		{
55
+; }
54 56
 
55 57
 		if( $view->access( ['admin', 'super'] ) ) {
56 58
 			$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE;
@@ -77,8 +79,7 @@  discard block
 block discarded – undo
77 79
 			if( ( $rootItem = $sitePath->first() ) !== null ) {
78 80
 				$view->pageSiteTree = $siteManager->getTree( $rootItem->getId(), [], $level );
79 81
 			}
80
-		}
81
-		else
82
+		} else
82 83
 		{
83 84
 			$view->pageSiteList = [$view->pageSiteTree];
84 85
 		}
Please login to merge, or discard this patch.