Passed
Push — master ( 28fdf3...246e92 )
by Aimeos
03:39
created
admin/jqadm/templates/product/item-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -360,9 +360,12 @@
 block discarded – undo
360 360
 								</select>
361 361
 							</div>
362 362
 						</div>
363
-					<?php else : ?>
363
+					<?php else {
364
+	: ?>
364 365
 						<input class="item-type" type="hidden"
365
-							name="<?= $enc->attr( $this->formparam( array( 'item', 'product.type' ) ) ); ?>"
366
+							name="<?= $enc->attr( $this->formparam( array( 'item', 'product.type' ) ) );
367
+}
368
+?>"
366 369
 							value="<?= $enc->attr( $types->firstKey() ) ?>" />
367 370
 					<?php endif; ?>
368 371
 					<div class="form-group row mandatory">
Please login to merge, or discard this patch.
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.