Passed
Push — master ( 41373a...89c8ae )
by Aimeos
05:11
created
admin/jqadm/src/Admin/JQAdm/Common/Decorator/Base.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 * Creates a new resource
75 75
 	 *
76 76
 	 * @return string|null admin output to display or null for redirecting to the list
77
-	*/
77
+	 */
78 78
 	public function create()
79 79
 	{
80 80
 		return $this->client->create();
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 * Deletes a resource
86 86
 	 *
87 87
 	 * @return string|null admin output to display or null for redirecting to the list
88
-	*/
88
+	 */
89 89
 	public function delete()
90 90
 	{
91 91
 		return $this->client->delete();
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 * Returns a single resource
97 97
 	 *
98 98
 	 * @return string|null admin output to display or null for redirecting to the list
99
-	*/
99
+	 */
100 100
 	public function get()
101 101
 	{
102 102
 		return $this->client->get();
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 * Saves the data
108 108
 	 *
109 109
 	 * @return string|null admin output to display or null for redirecting to the list
110
-	*/
110
+	 */
111 111
 	public function save()
112 112
 	{
113 113
 		return $this->client->save();
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 * Returns a list of resource according to the conditions
119 119
 	 *
120 120
 	 * @return string admin output to display
121
-	*/
121
+	 */
122 122
 	public function search()
123 123
 	{
124 124
 		return $this->client->search();
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/item-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,11 @@
 block discarded – undo
35 35
 			<?= $enc->html( $this->get( 'itemData/locale.id' ) ); ?> -
36 36
 			<?php if( $this->get( 'itemData/locale.currencyid' ) ) : ?>
37 37
 				<?= $enc->html( $this->get( 'itemData/locale.languageid' ) . '/' . $this->get( 'itemData/locale.currencyid' ) ); ?>
38
-			<?php else : ?>
39
-				<?= $enc->html( $this->translate( 'admin', 'New' ) ); ?>
38
+			<?php else {
39
+	: ?>
40
+				<?= $enc->html( $this->translate( 'admin', 'New' ) );
41
+}
42
+?>
40 43
 			<?php endif; ?>
41 44
 			<span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/locale.siteid' ) ) ); ?>)</span>
42 45
 		</span>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
 				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
59 59
 					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
60
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
60
+						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
61 61
 							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
62 62
 						</a>
63 63
 					</li>
Please login to merge, or discard this patch.
admin/jqadm/templates/customer/item-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,8 +133,11 @@
 block discarded – undo
133 133
 										</option>
134 134
 									<?php endforeach; ?>
135 135
 								</select>
136
-							<?php else : ?>
137
-								<?php $language = ( ( $item = reset( $languages ) ) !== false ? $item->getId() : '' ); ?>
136
+							<?php else {
137
+	: ?>
138
+								<?php $language = ( ( $item = reset( $languages ) ) !== false ? $item->getId() : '' );
139
+}
140
+?>
138 141
 								<input class="item-languageid" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.languageid' ) ) ); ?>" value="<?= $enc->attr( $language ); ?>" />
139 142
 							<?php endif; ?>
140 143
 						</div>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
 				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
59 59
 					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
60
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
60
+						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
61 61
 							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
62 62
 						</a>
63 63
 					</li>
Please login to merge, or discard this patch.
admin/jqadm/templates/customer/item-product-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -374,8 +374,11 @@
 block discarded – undo
374 374
 									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
375 375
 									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
376 376
 								</a>
377
-							<?php else : ?>
378
-								<?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
377
+							<?php else {
378
+	: ?>
379
+								<?= $enc->html( $refId );
380
+}
381
+?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
379 382
 							<?php endif; ?>
380 383
 						</td>
381 384
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
 				<th class="actions">
86 86
 					<a class="btn fa act-add" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
87
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
87
+						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
88 88
 						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
89 89
 					</a>
90 90
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 										</th>
221 221
 										<th class="actions">
222 222
 											<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
223
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
223
+												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>">
224 224
 											</div>
225 225
 										</th>
226 226
 									</tr>
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 										</td>
238 238
 										<td class="actions">
239 239
 											<div class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
240
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
240
+												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
241 241
 											</div>
242 242
 										</td>
243 243
 									</tr>
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 				</td>
249 249
 				<td class="actions">
250 250
 					<a class="btn fa act-close" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
251
-						title="<?= $enc->attr( $this->translate( 'admin', 'Close') ); ?>"
251
+						title="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>"
252 252
 						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>">
253 253
 					</a>
254 254
 				</td>
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 									<tr class="config-map-row prototype-map">
320 320
 										<td class="config-map-actions">
321 321
 											<div class="btn act-delete fa" tabindex="1"
322
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
322
+												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
323 323
 											</div>
324 324
 										</td>
325 325
 										<td class="config-map-row-key">
@@ -332,12 +332,12 @@  discard block
 block discarded – undo
332 332
 									<tr class="config-map-actions">
333 333
 										<td class="config-map-action-add">
334 334
 											<div class="btn act-add fa" tabindex="1"
335
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry') ); ?>">
335
+												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry' ) ); ?>">
336 336
 											</div>
337 337
 										</td>
338 338
 										<td class="config-map-action-update" colspan="2">
339 339
 											<div class="btn btn-primary act-update" tabindex="1">
340
-												<?= $enc->attr( $this->translate( 'admin', 'OK') ); ?>
340
+												<?= $enc->attr( $this->translate( 'admin', 'OK' ) ); ?>
341 341
 											</div>
342 342
 										</td>
343 343
 									</tr>
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 							<?php if( $refItem ) : ?>
373 373
 								<a class="btn act-view fa item-refid" tabindex="<?= $this->get( 'tabindex' ); ?>" target="_blank"
374 374
 									href="<?= $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['resource' => 'product', 'id' => $refId] + $params, [], $getConfig ) ); ?>"
375
-									title="<?= $enc->attr( $this->translate( 'admin', 'Show entry') ); ?>"
375
+									title="<?= $enc->attr( $this->translate( 'admin', 'Show entry' ) ); ?>"
376 376
 									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
377 377
 									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
378 378
 								</a>
@@ -388,11 +388,11 @@  discard block
 block discarded – undo
388 388
 
389 389
 						<?php if( !$this->site()->readonly( $siteId ) ) : ?>
390 390
 							<a class="btn act-edit fa" tabindex="<?= $this->get( 'tabindex' ); ?>" href="#"
391
-								title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry') ); ?>"
391
+								title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry' ) ); ?>"
392 392
 								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Edit' ) ); ?>"></a>
393 393
 							<a class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
394 394
 								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['resource' => 'customer/lists', 'id' => $listId] + $params, [], $delConfig ) ); ?>"
395
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
395
+								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
396 396
 								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
397 397
 						<?php endif; ?>
398 398
 					</td>
Please login to merge, or discard this patch.
admin/jqadm/templates/catalog/item-product-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -374,8 +374,11 @@
 block discarded – undo
374 374
 									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
375 375
 									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
376 376
 								</a>
377
-							<?php else : ?>
378
-								<?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
377
+							<?php else {
378
+	: ?>
379
+								<?= $enc->html( $refId );
380
+}
381
+?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
379 382
 							<?php endif; ?>
380 383
 						</td>
381 384
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 	<?= $this->partial(
58 58
 			$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
59 59
 			['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'productTotal' ),
60
-			'group' => 'cp', 'action' => ( $this->param( 'id') ? 'get' : 'search' ), 'fragment' => 'product',
60
+			'group' => 'cp', 'action' => ( $this->param( 'id' ) ? 'get' : 'search' ), 'fragment' => 'product',
61 61
 			'page' => $this->session( 'aimeos/admin/jqadm/catalogproduct/page', [] )]
62 62
 		);
63 63
 	?>
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 				<?= $this->partial(
69 69
 					$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ), [
70 70
 						'fields' => $fields, 'params' => $params, 'tabindex' => $this->get( 'tabindex' ),
71
-						'group' => 'cp', 'action' => ( $this->param( 'id') ? 'get' : 'search' ), 'fragment' => 'product',
71
+						'group' => 'cp', 'action' => ( $this->param( 'id' ) ? 'get' : 'search' ), 'fragment' => 'product',
72 72
 						'sort' => $this->session( 'aimeos/admin/jqadm/catalogproduct/sort' ),
73 73
 						'data' => [
74 74
 							'catalog.lists.position' => $this->translate( 'admin', 'Position' ),
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
 				<th class="actions">
86 86
 					<a class="btn fa act-add" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
87
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
87
+						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
88 88
 						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
89 89
 					</a>
90 90
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 										</th>
219 219
 										<th class="actions">
220 220
 											<div class="btn act-add fa" tabindex="1"
221
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
221
+												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>">
222 222
 											</div>
223 223
 										</th>
224 224
 									</tr>
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 										</td>
236 236
 										<td class="actions">
237 237
 											<div class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
238
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
238
+												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
239 239
 											</div>
240 240
 										</td>
241 241
 									</tr>
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 				</td>
247 247
 				<td class="actions">
248 248
 					<a class="btn fa act-close" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
249
-						title="<?= $enc->attr( $this->translate( 'admin', 'Close') ); ?>"
249
+						title="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>"
250 250
 						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>">
251 251
 					</a>
252 252
 				</td>
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 									<tr class="config-map-row prototype-map">
318 318
 										<td class="config-map-actions">
319 319
 											<div class="btn act-delete fa" tabindex="1"
320
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
320
+												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
321 321
 											</div>
322 322
 										</td>
323 323
 										<td class="config-map-row-key">
@@ -330,12 +330,12 @@  discard block
 block discarded – undo
330 330
 									<tr class="config-map-actions">
331 331
 										<td class="config-map-action-add">
332 332
 											<div class="btn act-add fa" tabindex="1"
333
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry') ); ?>">
333
+												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry' ) ); ?>">
334 334
 											</div>
335 335
 										</td>
336 336
 										<td class="config-map-action-update" colspan="2">
337 337
 											<div class="btn btn-primary act-update" tabindex="1">
338
-												<?= $enc->attr( $this->translate( 'admin', 'OK') ); ?>
338
+												<?= $enc->attr( $this->translate( 'admin', 'OK' ) ); ?>
339 339
 											</div>
340 340
 										</td>
341 341
 									</tr>
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 							<?php if( $refItem ) : ?>
371 371
 								<a class="btn act-view fa item-refid" tabindex="<?= $this->get( 'tabindex' ); ?>" target="_blank"
372 372
 									href="<?= $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['resource' => 'product', 'id' => $refId] + $params, [], $getConfig ) ); ?>"
373
-									title="<?= $enc->attr( $this->translate( 'admin', 'Show entry') ); ?>"
373
+									title="<?= $enc->attr( $this->translate( 'admin', 'Show entry' ) ); ?>"
374 374
 									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
375 375
 									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
376 376
 								</a>
@@ -386,11 +386,11 @@  discard block
 block discarded – undo
386 386
 
387 387
 						<?php if( !$this->site()->readonly( $siteId ) ) : ?>
388 388
 							<a class="btn act-edit fa" tabindex="<?= $this->get( 'tabindex' ); ?>" href="#"
389
-								title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry') ); ?>"
389
+								title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry' ) ); ?>"
390 390
 								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Edit' ) ); ?>"></a>
391 391
 							<a class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
392 392
 								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['resource' => 'catalog/lists', 'id' => $listId] + $params, [], $delConfig ) ); ?>"
393
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
393
+								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
394 394
 								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
395 395
 						<?php endif; ?>
396 396
 					</td>
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
 	<?= $this->partial(
408 408
 			$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
409 409
 			['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'productTotal' ),
410
-			'group' => 'cp', 'action' => ( $this->param( 'id') ? 'get' : 'search' ), 'fragment' => 'product',
410
+			'group' => 'cp', 'action' => ( $this->param( 'id' ) ? 'get' : 'search' ), 'fragment' => 'product',
411 411
 			'page' => $this->session( 'aimeos/admin/jqadm/catalogproduct/page', [] )]
412 412
 		);
413 413
 	?>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/listhead-standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
 	$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
40 40
 	$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
41 41
 	$config = $this->config( 'admin/jqadm/url/get/config', [] );
42
-}
43
-else
42
+} else
44 43
 {
45 44
 	$target = $this->config( 'admin/jqadm/url/search/target' );
46 45
 	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
Please login to merge, or discard this patch.
admin/jqadm/templates/common/page-standard.php 3 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,6 @@
 block discarded – undo
161 161
  *
162 162
  * You can add, remove or reorder the links in the navigation bar by
163 163
  * setting a new list of client resource names.
164
-
165 164
  * In the configuration files of extensions, you should only add entries using
166 165
  * one of these lines:
167 166
  *
Please login to merge, or discard this patch.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -262,8 +262,11 @@  discard block
 block discarded – undo
262 262
 							<?php foreach( $this->pageSiteList as $siteItem ) : ?>
263 263
 								<?php if( $siteItem->getId() === $this->pageSiteTree->getId() ) : ?>
264 264
 									<?php $siteFcn( $this->pageSiteTree ); ?>
265
-								<?php else : ?>
266
-									<?php $siteFcn( $siteItem ); ?>
265
+								<?php else {
266
+	: ?>
267
+									<?php $siteFcn( $siteItem );
268
+}
269
+?>
267 270
 								<?php endif; ?>
268 271
 							<?php endforeach; ?>
269 272
 						</ul>
@@ -295,9 +298,12 @@  discard block
 block discarded – undo
295 298
 							</li>
296 299
 
297 300
 						<?php endif; ?>
298
-					<?php else : ?>
301
+					<?php else {
302
+	: ?>
299 303
 						<?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $navitem . '/groups', [] ) ) ) : ?>
300
-							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' ); ?>
304
+							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' );
305
+}
306
+?>
301 307
 
302 308
 							<li class="<?= $enc->attr( $navitem ); ?> <?= $this->param( 'resource', $navfirst ) === $navitem ? 'active' : '' ?>">
303 309
 								<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, array( 'resource' => $navitem ) + $params, [], $config ) ); ?>"
@@ -344,10 +350,13 @@  discard block
 block discarded – undo
344 350
 							</li>
345 351
 
346 352
 						<?php endif; ?>
347
-					<?php else : ?>
353
+					<?php else {
354
+	: ?>
348 355
 						<?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $navitem . '/groups', [] ) ) ) : ?>
349 356
 
350
-							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' ); ?>
357
+							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' );
358
+}
359
+?>
351 360
 							<li class="<?= $enc->attr( $navitem ); ?> <?= $this->param( 'resource', $navfirst ) === $navitem ? 'active' : '' ?>">
352 361
 								<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, array( 'resource' => $navitem ) + $params, [], $config ) ); ?>"
353 362
 									title="<?= $enc->attr( sprintf( $title, $this->translate( 'admin', $navitem ), $key ) ); ?>"
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 
285 285
 									<?php foreach( $navitem as $subresource ) : ?>
286 286
 										<?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $subresource . '/groups', [] ) ) ) : ?>
287
-											<li class="<?= str_replace( '/', '-', $subresource); ?>">
287
+											<li class="<?= str_replace( '/', '-', $subresource ); ?>">
288 288
 												<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, ['resource' => $subresource] + $params, [], $config ) ); ?>">
289 289
 													<span class="name"><?= $enc->html( $this->translate( 'admin', $subresource ) ); ?></span>
290 290
 												</a>
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 
333 333
 									<?php foreach( $navitem as $subresource ) : ?>
334 334
 										<?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $subresource . '/groups', [] ) ) ) : ?>
335
-											<li class="<?= str_replace( '/', '-', $subresource); ?>">
335
+											<li class="<?= str_replace( '/', '-', $subresource ); ?>">
336 336
 												<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, ['resource' => $subresource] + $params, [], $config ) ); ?>">
337 337
 													<span class="name"><?= $enc->html( $this->translate( 'admin', $subresource ) ); ?></span>
338 338
 												</a>
Please login to merge, or discard this patch.
admin/jqadm/templates/supplier/item-product-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -374,8 +374,11 @@
 block discarded – undo
374 374
 									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
375 375
 									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
376 376
 								</a>
377
-							<?php else : ?>
378
-								<?= $enc->html( $refId ); ?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
377
+							<?php else {
378
+	: ?>
379
+								<?= $enc->html( $refId );
380
+}
381
+?> (<?= $enc->html( $this->translate( 'admin', 'not available any more' ) ); ?>)
379 382
 							<?php endif; ?>
380 383
 						</td>
381 384
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
 				<th class="actions">
86 86
 					<a class="btn fa act-add" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
87
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
87
+						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
88 88
 						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
89 89
 					</a>
90 90
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 										</th>
221 221
 										<th class="actions">
222 222
 											<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
223
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
223
+												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>">
224 224
 											</div>
225 225
 										</th>
226 226
 									</tr>
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 										</td>
238 238
 										<td class="actions">
239 239
 											<div class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
240
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
240
+												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
241 241
 											</div>
242 242
 										</td>
243 243
 									</tr>
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 				</td>
249 249
 				<td class="actions">
250 250
 					<a class="btn fa act-close" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
251
-						title="<?= $enc->attr( $this->translate( 'admin', 'Close') ); ?>"
251
+						title="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>"
252 252
 						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>">
253 253
 					</a>
254 254
 				</td>
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 									<tr class="config-map-row prototype-map">
320 320
 										<td class="config-map-actions">
321 321
 											<div class="btn act-delete fa" tabindex="1"
322
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
322
+												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
323 323
 											</div>
324 324
 										</td>
325 325
 										<td class="config-map-row-key">
@@ -332,12 +332,12 @@  discard block
 block discarded – undo
332 332
 									<tr class="config-map-actions">
333 333
 										<td class="config-map-action-add">
334 334
 											<div class="btn act-add fa" tabindex="1"
335
-												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry') ); ?>">
335
+												title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry' ) ); ?>">
336 336
 											</div>
337 337
 										</td>
338 338
 										<td class="config-map-action-update" colspan="2">
339 339
 											<div class="btn btn-primary act-update" tabindex="1">
340
-												<?= $enc->attr( $this->translate( 'admin', 'OK') ); ?>
340
+												<?= $enc->attr( $this->translate( 'admin', 'OK' ) ); ?>
341 341
 											</div>
342 342
 										</td>
343 343
 									</tr>
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 							<?php if( $refItem ) : ?>
373 373
 								<a class="btn act-view fa item-refid" tabindex="<?= $this->get( 'tabindex' ); ?>" target="_blank"
374 374
 									href="<?= $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['resource' => 'product', 'id' => $refId] + $params, [], $getConfig ) ); ?>"
375
-									title="<?= $enc->attr( $this->translate( 'admin', 'Show entry') ); ?>"
375
+									title="<?= $enc->attr( $this->translate( 'admin', 'Show entry' ) ); ?>"
376 376
 									aria-label="<?= $enc->attr( $this->translate( 'admin', 'Show' ) ); ?>">
377 377
 									<?= $enc->html( $refId ); ?> - <?= $enc->html( $refItem->getLabel() . ' (' . $refItem->getCode() . ')' ); ?>
378 378
 								</a>
@@ -388,11 +388,11 @@  discard block
 block discarded – undo
388 388
 
389 389
 						<?php if( !$this->site()->readonly( $siteId ) ) : ?>
390 390
 							<a class="btn act-edit fa" tabindex="<?= $this->get( 'tabindex' ); ?>" href="#"
391
-								title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry') ); ?>"
391
+								title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry' ) ); ?>"
392 392
 								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Edit' ) ); ?>"></a>
393 393
 							<a class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
394 394
 								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['resource' => 'supplier/lists', 'id' => $listId] + $params, [], $delConfig ) ); ?>"
395
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
395
+								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
396 396
 								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
397 397
 						<?php endif; ?>
398 398
 					</td>
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Characteristic/Property/Standard.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -305,8 +305,7 @@
 block discarded – undo
305 305
 			{
306 306
 				$propItem = $propItems[$entry['product.property.id']];
307 307
 				unset( $propItems[$entry['product.property.id']] );
308
-			}
309
-			else
308
+			} else
310 309
 			{
311 310
 				$propItem = $manager->createItem();
312 311
 			}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
281 281
 
282 282
 		$search = $manager->createSearch( true )->setSlice( 0, 10000 );
283 283
 		$search->setConditions( $search->compare( '!=', 'product.property.type.code', $excludes ) );
284
-		$search->setSortations( [$search->sort( '+', 'product.property.type.position')] );
284
+		$search->setSortations( [$search->sort( '+', 'product.property.type.position' )] );
285 285
 
286 286
 		return $this->map( $manager->searchItems( $search ) );
287 287
 	}
Please login to merge, or discard this patch.