Passed
Push — master ( 631dfe...eaed7b )
by Aimeos
09:53
created
admin/jqadm/templates/service/item-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,9 +133,12 @@
 block discarded – undo
133 133
 								</select>
134 134
 							</div>
135 135
 						</div>
136
-					<?php else : ?>
136
+					<?php else {
137
+	: ?>
137 138
 						<input class="item-type" type="hidden"
138
-							name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type' ) ) ); ?>"
139
+							name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type' ) ) );
140
+}
141
+?>"
139 142
 							value="<?= $enc->attr( $types->getCode()->first() ) ?>" />
140 143
 					<?php endif; ?>
141 144
 					<div class="form-group row mandatory">
Please login to merge, or discard this patch.
admin/jqadm/templates/plugin/item-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,9 +133,12 @@
 block discarded – undo
133 133
 								</select>
134 134
 							</div>
135 135
 						</div>
136
-					<?php else : ?>
136
+					<?php else {
137
+	: ?>
137 138
 						<input class="item-type" type="hidden"
138
-							name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.type' ) ) ); ?>"
139
+							name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.type' ) ) );
140
+}
141
+?>"
139 142
 							value="<?= $enc->attr( $types->getCode()->first() ) ?>" />
140 143
 					<?php endif; ?>
141 144
 					<div class="form-group row mandatory">
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Price/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -445,8 +445,7 @@
 block discarded – undo
445 445
 				$listItem = \Aimeos\MShop::create( $context, 'product' )->createListItem();
446 446
 				$item = $item->addListItem( 'attribute', $listItem->setType( 'custom' ), $attrItem );
447 447
 			}
448
-		}
449
-		else
448
+		} else
450 449
 		{
451 450
 			if( ( $litem = $item->getListItem( 'attribute', 'custom', $attrItem->getId(), false ) ) !== null ) {
452 451
 				$item = $item->deleteListItem( 'attribute', $litem );
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-2020
6 6
  */
7 7
 
8
-$price = function( \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( \Aimeos\MShop\Order\Item\Iface $item, $priceFormat ) {
10 9
 	if( $order = $item->getBaseItem() )
11 10
 	{
12 11
 		$price = 0;
@@ -20,8 +19,7 @@  discard block
 block discarded – undo
20 19
 };
21 20
 
22 21
 
23
-$name = function( \Aimeos\MShop\Order\Item\Iface $item )
24
-{
22
+$name = function( \Aimeos\MShop\Order\Item\Iface $item ) {
25 23
 	if( $order = $item->getBaseItem() )
26 24
 	{
27 25
 		$type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT;
@@ -39,8 +37,7 @@  discard block
 block discarded – undo
39 37
 };
40 38
 
41 39
 
42
-$payment = function( \Aimeos\MShop\Order\Item\Iface $item )
43
-{
40
+$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) {
44 41
 	if( $order = $item->getBaseItem() )
45 42
 	{
46 43
 		$type = \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT;
@@ -56,8 +53,7 @@  discard block
 block discarded – undo
56 53
 };
57 54
 
58 55
 
59
-$status = function( array $list, $key )
60
-{
56
+$status = function( array $list, $key ) {
61 57
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
62 58
 };
63 59
 
Please login to merge, or discard this patch.