Passed
Push — master ( 7df72a...d92fa9 )
by Aimeos
03:17
created
admin/jqadm/templates/catalog/item-text-standard.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -140,9 +140,12 @@  discard block
 block discarded – undo
140 140
 										<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
141 141
 									</div>
142 142
 								</div>
143
-							<?php else : ?>
143
+							<?php else {
144
+	: ?>
144 145
 								<input class="text-langid" type="hidden"
145
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) ); ?>'.replace('_idx_', idx)"
146
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) );
147
+}
148
+?>'.replace('_idx_', idx)"
146 149
 									value="<?= $enc->attr( key( $languages ) ) ?>" />
147 150
 							<?php endif; ?>
148 151
 
@@ -162,9 +165,12 @@  discard block
 block discarded – undo
162 165
 										<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
163 166
 									</div>
164 167
 								</div>
165
-							<?php else : ?>
168
+							<?php else {
169
+	: ?>
166 170
 								<input class="item-type" type="hidden"
167
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) ); ?>'.replace('_idx_', idx)"
171
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) );
172
+}
173
+?>'.replace('_idx_', idx)"
168 174
 									value="<?= $enc->attr( key( $textTypes ) ) ?>" />
169 175
 							<?php endif; ?>
170 176
 
@@ -212,9 +218,12 @@  discard block
 block discarded – undo
212 218
 										<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
213 219
 									</div>
214 220
 								</div>
215
-							<?php else : ?>
221
+							<?php else {
222
+	: ?>
216 223
 								<input class="listitem-type" type="hidden"
217
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'catalog.lists.type' ) ) ); ?>'.replace('_idx_', idx)"
224
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'catalog.lists.type' ) ) );
225
+}
226
+?>'.replace('_idx_', idx)"
218 227
 									value="<?= $enc->attr( key( $listTypes ) ) ?>" />
219 228
 							<?php endif; ?>
220 229
 
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Common/Decorator/Page.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,9 @@  discard block
 block discarded – undo
49 49
 				$id = current( array_keys( $siteManager->searchItems( $search ) ) ) ?: $siteItem->getId();
50 50
 			}
51 51
 		}
52
-		catch( \Exception $e ) { ; }
52
+		catch( \Exception $e )
53
+		{
54
+; }
53 55
 
54 56
 		if( $view->access( ['admin', 'super'] ) ) {
55 57
 			$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE;
@@ -76,8 +78,7 @@  discard block
 block discarded – undo
76 78
 			if( ( $rootItem = reset( $sitePath ) ) !== false ) {
77 79
 				$view->pageSiteTree = $siteManager->getTree( $rootItem->getId(), [], $level );
78 80
 			}
79
-		}
80
-		else
81
+		} else
81 82
 		{
82 83
 			$view->pageSiteList = [$view->pageSiteTree];
83 84
 		}
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
 };
@@ -340,8 +339,11 @@  discard block
 block discarded – undo
340 339
 										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div>
341 340
 									</div>
342 341
 								<?php endforeach; ?>
343
-							<?php else : ?>
344
-								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?>
342
+							<?php else {
343
+	: ?>
344
+								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) );
345
+}
346
+?>
345 347
 							<?php endif; ?>
346 348
 						</div>
347 349
 
@@ -768,8 +770,11 @@  discard block
 block discarded – undo
768 770
 									<div class="col-6 name">
769 771
 										<?php if( $basket->getPrice()->getTaxFlag() ) : ?>
770 772
 											<?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?>
771
-										<?php else : ?>
772
-											<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?>
773
+										<?php else {
774
+	: ?>
775
+											<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) );
776
+}
777
+?>
773 778
 										<?php endif; ?>
774 779
 									</div>
775 780
 									<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/listhead-standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,16 +56,14 @@
 block discarded – undo
56 56
 		$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
57 57
 		$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
58 58
 		$config = $this->config( 'admin/jqadm/url/get/config', [] );
59
-	}
60
-	else
59
+	} else
61 60
 	{
62 61
 		$target = $this->config( 'admin/jqadm/url/create/target' );
63 62
 		$controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
64 63
 		$action = $this->config( 'admin/jqadm/url/create/action', 'create' );
65 64
 		$config = $this->config( 'admin/jqadm/url/create/config', [] );
66 65
 	}
67
-}
68
-else
66
+} else
69 67
 {
70 68
 	$target = $this->config( 'admin/jqadm/url/search/target' );
71 69
 	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
Please login to merge, or discard this patch.