Passed
Push — master ( b6edb6...7b9e7d )
by Aimeos
03:25
created
admin/jqadm/templates/plugin/item-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,9 +139,12 @@
 block discarded – undo
139 139
 										</select>
140 140
 									</div>
141 141
 								</div>
142
-							<?php else : ?>
142
+							<?php else {
143
+	: ?>
143 144
 								<input class="item-type" type="hidden"
144
-									name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.type' ) ) ); ?>"
145
+									name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.type' ) ) );
146
+}
147
+?>"
145 148
 									value="<?= $enc->attr( $types->getCode()->first() ) ?>" />
146 149
 							<?php endif; ?>
147 150
 							<div class="form-group row mandatory">
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -355,9 +355,12 @@
 block discarded – undo
355 355
 										</select>
356 356
 									</div>
357 357
 								</div>
358
-							<?php else : ?>
358
+							<?php else {
359
+	: ?>
359 360
 								<input class="item-type" type="hidden"
360
-									name="<?= $enc->attr( $this->formparam( array( 'item', 'product.type' ) ) ); ?>"
361
+									name="<?= $enc->attr( $this->formparam( array( 'item', 'product.type' ) ) );
362
+}
363
+?>"
361 364
 									value="<?= $enc->attr( $types->firstKey() ) ?>" />
362 365
 							<?php endif; ?>
363 366
 							<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
@@ -139,9 +139,12 @@
 block discarded – undo
139 139
 										</select>
140 140
 									</div>
141 141
 								</div>
142
-							<?php else : ?>
142
+							<?php else {
143
+	: ?>
143 144
 								<input class="item-type" type="hidden"
144
-									name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type' ) ) ); ?>"
145
+									name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type' ) ) );
146
+}
147
+?>"
145 148
 									value="<?= $enc->attr( $types->getCode()->first() ) ?>" />
146 149
 							<?php endif; ?>
147 150
 							<div class="form-group row mandatory">
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Common/Decorator/Page.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
 		if( $view->access( ['super'] ) )
41 41
 		{
42 42
 			$view->pageSiteItem = $siteManager->find( $view->param( 'site', 'default' ) );
43
-		}
44
-		else
43
+		} else
45 44
 		{
46 45
 			$siteid = $customerManager->get( $context->getUserId() )->getSiteId();
47 46
 			$search = $siteManager->filter();
Please login to merge, or discard this patch.
admin/jqadm/templates/common/page-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -173,7 +173,8 @@  discard block
 block discarded – undo
173 173
 						</div>
174 174
 					</li>
175 175
 
176
-				<?php else : ?>
176
+				<?php else {
177
+	: ?>
177 178
 
178 179
 					<li class="none <?= $before === null ? 'before' : '' ?>"></li>
179 180
 
@@ -185,7 +186,9 @@  discard block
 block discarded – undo
185 186
 						<li class="treeview menuitem-<?= $enc->attr( $nav ) ?> <?= $nav === $before ? 'before' : '' ?> <?= in_array( $resource, $navitem ) !== false ? 'active' : '' ?> <?= $nav === $after ? 'after' : '' ?>">
186 187
 							<span>
187 188
 								<i class="icon"></i>
188
-								<span class="title"><?= $enc->attr( $this->translate( 'admin', $nav ) ); ?></span>
189
+								<span class="title"><?= $enc->attr( $this->translate( 'admin', $nav ) );
190
+}
191
+?></span>
189 192
 							</span>
190 193
 							<div class="tree-menu-wrapper">
191 194
 								<div class="menu-header">
@@ -213,8 +216,11 @@  discard block
 block discarded – undo
213 216
 							</div>
214 217
 						</li>
215 218
 
216
-					<?php else : ?>
217
-						<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' ); ?>
219
+					<?php else {
220
+	: ?>
221
+						<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' );
222
+}
223
+?>
218 224
 
219 225
 						<li class="menuitem-<?= $enc->attr( $navitem ); ?> <?= $navitem === $before ? 'before' : '' ?> <?= !strncmp( $resource, $navitem, strlen( $navitem ) ) ? 'active' : '' ?> <?= $navitem === $after ? 'after' : '' ?>">
220 226
 							<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, array( 'resource' => $navitem ) + $params, [], $config ) ); ?>"
Please login to merge, or discard this patch.
admin/jqadm/templates/rule/item-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,9 +139,12 @@
 block discarded – undo
139 139
 										</select>
140 140
 									</div>
141 141
 								</div>
142
-							<?php else : ?>
142
+							<?php else {
143
+	: ?>
143 144
 								<input class="item-type" type="hidden"
144
-									name="<?= $enc->attr( $this->formparam( array( 'item', 'rule.type' ) ) ); ?>"
145
+									name="<?= $enc->attr( $this->formparam( array( 'item', 'rule.type' ) ) );
146
+}
147
+?>"
145 148
 									value="<?= $enc->attr( $types->getCode()->first() ) ?>" />
146 149
 							<?php endif; ?>
147 150
 							<div class="form-group row mandatory">
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Rule/Standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -368,9 +368,12 @@
 block discarded – undo
368 368
 	{
369 369
 		$manager = \Aimeos\MShop::create( $this->getContext(), 'rule' );
370 370
 
371
-		try {
371
+		try
372
+		{
372 373
 			return $manager->getProvider( $item, $item->getType() )->getConfigBE();
373
-		} catch( \Aimeos\MShop\Exception $e ) {
374
+		}
375
+		catch( \Aimeos\MShop\Exception $e )
376
+		{
374 377
 			return [];
375 378
 		}
376 379
 	}
Please login to merge, or discard this patch.