Passed
Push — master ( 636ffb...ebb2a9 )
by Aimeos
11: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/templates/common/page-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -178,7 +178,8 @@  discard block
 block discarded – undo
178 178
 							</div>
179 179
 						</div>
180 180
 					</li>
181
-				<?php else : ?>
181
+				<?php else {
182
+	: ?>
182 183
 					<li class="none <?= $before === null ? 'before' : '' ?>"></li>
183 184
 				<?php endif ?>
184 185
 
@@ -188,7 +189,9 @@  discard block
 block discarded – undo
188 189
 							<li class="treeview <?= $enc->attr( $nav ) ?> <?= $navitem === $before ? 'before' : '' ?> <?= in_array( $resource, $navitem ) !== false ? 'active' : '' ?> <?= $navitem === $after ? 'after' : '' ?>">
189 190
 								<span>
190 191
 									<i class="icon"></i>
191
-									<span class="title"><?= $enc->attr( $this->translate( 'admin', $nav ) ); ?></span>
192
+									<span class="title"><?= $enc->attr( $this->translate( 'admin', $nav ) );
193
+}
194
+?></span>
192 195
 								</span>
193 196
 								<div class="tree-menu-wrapper">
194 197
 									<div class="menu-header">
@@ -211,9 +214,12 @@  discard block
 block discarded – undo
211 214
 							</li>
212 215
 
213 216
 						<?php endif; ?>
214
-					<?php else : ?>
217
+					<?php else {
218
+	: ?>
215 219
 						<?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $navitem . '/groups', [] ) ) ) : ?>
216
-							<?php $nav = $navitem; $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' ); ?>
220
+							<?php $nav = $navitem;
221
+}
222
+$key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' ); ?>
217 223
 
218 224
 							<li class="<?= $enc->attr( $navitem ); ?> <?= $nav === $before ? 'before' : '' ?> <?= !strncmp( $resource, $nav, strlen( $nav ) ) ? 'active' : '' ?> <?= $nav === $after ? 'after' : '' ?>">
219 225
 								<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, array( 'resource' => $navitem ) + $params, [], $config ) ); ?>"
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.