Passed
Push — master ( c95a25...bf45b2 )
by Aimeos
03:29
created
admin/jqadm/templates/subscription/item-standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
 };
11 11
 
12 12
 
13
-$sortItems = function( array $items )
14
-{
13
+$sortItems = function( array $items ) {
15 14
 	krsort( $items );
16 15
 	return $items;
17 16
 };
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( array $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( array $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( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
19
-{
17
+$name = function( array $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( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
38
-{
35
+$payment = function( array $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( $list, $key )
55
-{
51
+$status = function( $list, $key ) {
56 52
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
57 53
 };
58 54
 
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/pagination-standard.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
  */
22 22
 
23 23
 
24
-$pgroup = function( array $params, $group )
25
-{
24
+$pgroup = function( array $params, $group ) {
26 25
 	if( $group != null ) {
27 26
 		return [$group => ['page' => $params]];
28 27
 	}
@@ -56,16 +55,14 @@  discard block
 block discarded – undo
56 55
 		$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
57 56
 		$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
58 57
 		$config = $this->config( 'admin/jqadm/url/get/config', [] );
59
-	}
60
-	else
58
+	} else
61 59
 	{
62 60
 		$target = $this->config( 'admin/jqadm/url/create/target' );
63 61
 		$controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
64 62
 		$action = $this->config( 'admin/jqadm/url/create/action', 'create' );
65 63
 		$config = $this->config( 'admin/jqadm/url/create/config', [] );
66 64
 	}
67
-}
68
-else
65
+} else
69 66
 {
70 67
 	$target = $this->config( 'admin/jqadm/url/search/target' );
71 68
 	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
Please login to merge, or discard this patch.
admin/jqadm/templates/customer/item-order-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), 2017-2018
6 6
  */
7 7
 
8
-$price = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( array $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( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
19
-{
17
+$name = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
20 18
 	if( isset( $orders[$item->getBaseId()] ) )
21 19
 	{
22 20
 		$addresses = $orders[$item->getBaseId()]->getAddresses();
@@ -36,8 +34,7 @@  discard block
 block discarded – undo
36 34
 };
37 35
 
38 36
 
39
-$payment = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
40
-{
37
+$payment = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
41 38
 	if( isset( $orders[$item->getBaseId()] ) )
42 39
 	{
43 40
 		$services = $orders[$item->getBaseId()]->getServices();
@@ -49,8 +46,7 @@  discard block
 block discarded – undo
49 46
 };
50 47
 
51 48
 
52
-$status = function( $list, $key )
53
-{
49
+$status = function( $list, $key ) {
54 50
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
55 51
 };
56 52
 
Please login to merge, or discard this patch.
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
 };
@@ -325,8 +324,11 @@  discard block
 block discarded – undo
325 324
 										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div>
326 325
 									</div>
327 326
 								<?php endforeach; ?>
328
-							<?php else : ?>
329
-								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?>
327
+							<?php else {
328
+	: ?>
329
+								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) );
330
+}
331
+?>
330 332
 							<?php endif; ?>
331 333
 						</div>
332 334
 
@@ -753,8 +755,11 @@  discard block
 block discarded – undo
753 755
 								<div class="col-6 name">
754 756
 									<?php if( $basket->getPrice()->getTaxFlag() ) : ?>
755 757
 										<?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?>
756
-									<?php else : ?>
757
-										<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?>
758
+									<?php else {
759
+	: ?>
760
+										<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) );
761
+}
762
+?>
758 763
 									<?php endif; ?>
759 764
 								</div>
760 765
 								<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/listsearch-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,11 @@
 block discarded – undo
52 52
 								</option>
53 53
 							<?php endforeach; ?>
54 54
 						</select>
55
-					<?php else : ?>
56
-						<input class="form-control" type="<?= $enc->attr( $type ); ?>" tabindex="<?= $this->get( 'tabindex' ); ?>"
55
+					<?php else {
56
+	: ?>
57
+						<input class="form-control" type="<?= $enc->attr( $type );
58
+}
59
+?>" tabindex="<?= $this->get( 'tabindex' ); ?>"
57 60
 							name="<?= $enc->attr( $this->formparam( array_merge( $group, ['filter', 'val', $idx] ) ) ); ?>"
58 61
 							value="<?= $enc->attr( $this->value( $filter, 'val/' . $idx ) ); ?>" />
59 62
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Physical/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				$propItem->setValue( $value );
292 292
 
293 293
 				$item->addPropertyItem( $propItem );
294
-			}
295
-			else
294
+			} else
296 295
 			{
297 296
 				$item->deletePropertyItems( $propItems );
298 297
 			}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Price/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['price.property.id']];
293 293
 					unset( $propItems[$entry['price.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Service/Price/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['price.property.id']];
293 293
 					unset( $propItems[$entry['price.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.