Passed
Branch master (d032f7)
by Aimeos
05:30
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/common/partials/pagination-standard.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 $first = ( $offset > 0 ? 0 : null );
43 43
 $prev = ( $offset - $limit >= 0 ? $offset - $limit : null );
44 44
 $next = ( $offset + $limit < $total ? $offset + $limit : null );
45
-$last = ( floor(($total - 1) / $limit) * $limit > $offset ? floor(($total - 1) / $limit) * $limit : null );
45
+$last = ( floor( ( $total - 1 ) / $limit ) * $limit > $offset ? floor( ( $total - 1 ) / $limit ) * $limit : null );
46 46
 
47 47
 $pageCurrent = floor( $offset / $limit ) + 1;
48 48
 $pageTotal = ( $total != 0 ? ceil( $total / $limit ) : 1 );
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.
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.
Braces   +18 added lines, -7 removed lines patch added patch discarded remove patch
@@ -243,7 +243,9 @@  discard block
 block discarded – undo
243 243
 						<ul class="tree-menu">
244 244
 							<li class="menu-header"><strong><?= $enc->html( $this->translate( 'admin', 'Site' ) ); ?></strong></li>
245 245
 
246
-							<?php $siteFcn = function( \Aimeos\MShop\Locale\Item\Site\Iface $site ) use ( &$siteFcn, $enc, $searchTarget, $cntl, $action, $params, $config ) { ?>
246
+							<?php $siteFcn = function( \Aimeos\MShop\Locale\Item\Site\Iface $site ) use ( &$siteFcn, $enc, $searchTarget, $cntl, $action, $params, $config )
247
+{
248
+?>
247 249
 
248 250
 								<li class="site-<?= $enc->attr( $site->getCode() ) ?>">
249 251
 									<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, array( 'site' => $site->getCode() ) + $params, [], $config ) ); ?>">
@@ -262,8 +264,11 @@  discard block
 block discarded – undo
262 264
 							<?php foreach( $this->pageSiteList as $siteItem ) : ?>
263 265
 								<?php if( $siteItem->getId() === $this->pageSiteTree->getId() ) : ?>
264 266
 									<?php $siteFcn( $this->pageSiteTree ); ?>
265
-								<?php else : ?>
266
-									<?php $siteFcn( $siteItem ); ?>
267
+								<?php else {
268
+	: ?>
269
+									<?php $siteFcn( $siteItem );
270
+}
271
+?>
267 272
 								<?php endif; ?>
268 273
 							<?php endforeach; ?>
269 274
 						</ul>
@@ -295,9 +300,12 @@  discard block
 block discarded – undo
295 300
 							</li>
296 301
 
297 302
 						<?php endif; ?>
298
-					<?php else : ?>
303
+					<?php else {
304
+	: ?>
299 305
 						<?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $navitem . '/groups', [] ) ) ) : ?>
300
-							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' ); ?>
306
+							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' );
307
+}
308
+?>
301 309
 
302 310
 							<li class="<?= $enc->attr( $navitem ); ?> <?= $this->param( 'resource', $navfirst ) === $navitem ? 'active' : '' ?>">
303 311
 								<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, array( 'resource' => $navitem ) + $params, [], $config ) ); ?>"
@@ -344,10 +352,13 @@  discard block
 block discarded – undo
344 352
 							</li>
345 353
 
346 354
 						<?php endif; ?>
347
-					<?php else : ?>
355
+					<?php else {
356
+	: ?>
348 357
 						<?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $navitem . '/groups', [] ) ) ) : ?>
349 358
 
350
-							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' ); ?>
359
+							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' );
360
+}
361
+?>
351 362
 							<li class="<?= $enc->attr( $navitem ); ?> <?= $this->param( 'resource', $navfirst ) === $navitem ? 'active' : '' ?>">
352 363
 								<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, array( 'resource' => $navitem ) + $params, [], $config ) ); ?>"
353 364
 									title="<?= $enc->attr( sprintf( $title, $this->translate( 'admin', $navitem ), $key ) ); ?>"
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.
admin/jqadm/templates/customer/item-address-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,9 +81,12 @@
 block discarded – undo
81 81
 								</select>
82 82
 							</div>
83 83
 						</div>
84
-					<?php else : ?>
84
+					<?php else {
85
+	: ?>
85 86
 						<input class="item-languageid" type="hidden"
86
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'address', 'idx', 'customer.address.languageid' ) ) ); ?>'.replace('idx', idx)"
87
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'address', 'idx', 'customer.address.languageid' ) ) );
88
+}
89
+?>'.replace('idx', idx)"
87 90
 							value="<?= $enc->attr( key( $languages ) ); ?>" />
88 91
 					<?php endif; ?>
89 92
 					<div class="form-group row optional">
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,19 +31,19 @@  discard block
 block discarded – undo
31 31
 				v-bind:aria-controls="'item-address-group-data-' + idx" aria-expanded="false">
32 32
 				<div class="card-tools-left">
33 33
 					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
34
+						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry' ) ); ?>">
35 35
 					</div>
36 36
 				</div>
37 37
 				<span class="item-label header-label">{{ getLabel(idx, 'customer.address.') }}</span>
38 38
 				&nbsp;
39 39
 				<div class="card-tools-right">
40 40
 					<div class="btn btn-card-header act-copy fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
41
-						title="<?= $enc->attr( $this->translate( 'admin', 'Duplicate entry (Ctrl+D)') ); ?>"
41
+						title="<?= $enc->attr( $this->translate( 'admin', 'Duplicate entry (Ctrl+D)' ) ); ?>"
42 42
 						v-on:click.stop="duplicateItem(idx)">
43 43
 					</div>
44 44
 					<div v-if="!checkSite('customer.address.siteid', idx)"
45 45
 						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
46
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
46
+						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
47 47
 						v-on:click="removeItem(idx)">
48 48
 					</div>
49 49
 				</div>
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
 
338 338
 		<div class="card-tools-more">
339 339
 			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
340
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
340
+				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
341 341
 				v-on:click="addItem('customer.address.')" >
342 342
 			</div>
343 343
 		</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/supplier/item-address-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,9 +81,12 @@
 block discarded – undo
81 81
 								</select>
82 82
 							</div>
83 83
 						</div>
84
-					<?php else : ?>
84
+					<?php else {
85
+	: ?>
85 86
 						<input class="item-languageid" type="hidden"
86
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'address', 'idx', 'supplier.address.languageid' ) ) ); ?>'.replace('idx', idx)"
87
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'address', 'idx', 'supplier.address.languageid' ) ) );
88
+}
89
+?>'.replace('idx', idx)"
87 90
 							value="<?= $enc->attr( key( $languages ) ); ?>" />
88 91
 					<?php endif; ?>
89 92
 					<div class="form-group row optional">
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,19 +31,19 @@  discard block
 block discarded – undo
31 31
 				v-bind:aria-controls="'item-address-group-data-' + idx" aria-expanded="false">
32 32
 				<div class="card-tools-left">
33 33
 					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
34
+						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry' ) ); ?>">
35 35
 					</div>
36 36
 				</div>
37 37
 				<span class="item-label header-label">{{ getLabel(idx, 'supplier.address.') }}</span>
38 38
 				&nbsp;
39 39
 				<div class="card-tools-right">
40 40
 					<div class="btn btn-card-header act-copy fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
41
-						title="<?= $enc->attr( $this->translate( 'admin', 'Duplicate entry (Ctrl+D)') ); ?>"
41
+						title="<?= $enc->attr( $this->translate( 'admin', 'Duplicate entry (Ctrl+D)' ) ); ?>"
42 42
 						v-on:click.stop="duplicateItem(idx)">
43 43
 					</div>
44 44
 					<div v-if="!checkSite('supplier.address.siteid', idx)"
45 45
 						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
46
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
46
+						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
47 47
 						v-on:click="removeItem(idx)">
48 48
 					</div>
49 49
 				</div>
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
 
338 338
 		<div class="card-tools-more">
339 339
 			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
340
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
340
+				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
341 341
 				v-on:click="addItem('supplier.address.')" >
342 342
 			</div>
343 343
 		</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/supplier/item-text-standard.php 2 patches
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,9 +115,12 @@  discard block
 block discarded – undo
115 115
 								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
116 116
 							</div>
117 117
 						</div>
118
-					<?php else : ?>
118
+					<?php else {
119
+	: ?>
119 120
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) );
122
+}
123
+?>'.replace('idx', idx)"
121 124
 							value="<?= $enc->attr( key( $languages ) ); ?>" />
122 125
 					<?php endif; ?>
123 126
 
@@ -146,9 +149,12 @@  discard block
 block discarded – undo
146 149
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
147 150
 							</div>
148 151
 						</div>
149
-					<?php else : ?>
152
+					<?php else {
153
+	: ?>
150 154
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
155
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) );
156
+}
157
+?>'.replace('idx', idx)"
152 158
 							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
153 159
 					<?php endif; ?>
154 160
 
@@ -204,9 +210,12 @@  discard block
 block discarded – undo
204 210
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
205 211
 							</div>
206 212
 						</div>
207
-					<?php else : ?>
213
+					<?php else {
214
+	: ?>
208 215
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'supplier.lists.type' ) ) ); ?>'.replace('idx', idx)"
216
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'supplier.lists.type' ) ) );
217
+}
218
+?>'.replace('idx', idx)"
210 219
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
211 220
 							v-model="items[idx]['supplier.lists.type']" />
212 221
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 				v-bind:aria-controls="'item-text-group-data-' + idx" aria-expanded="false">
30 30
 				<div class="card-tools-left">
31 31
 					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
32
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
32
+						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry' ) ); ?>">
33 33
 					</div>
34 34
 				</div>
35 35
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 				<div class="card-tools-right">
38 38
 					<div v-if="!checkSite('supplier.lists.siteid', idx)"
39 39
 						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
40
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
40
+						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
41 41
 						v-on:click.stop="removeItem(idx)">
42 42
 					</div>
43 43
 				</div>
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
173 173
 					<div class="card-tools-left">
174 174
 						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
175
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
175
+							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data' ) ); ?>">
176 176
 						</div>
177 177
 					</div>
178 178
 					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 								</th>
255 255
 								<th class="actions">
256 256
 									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
257
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
257
+										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
258 258
 										v-bind:readonly="checkSite('supplier.lists.siteid', idx)"
259 259
 										v-on:click="addConfig(idx)" >
260 260
 									</div>
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 								<td class="actions">
282 282
 									<div v-if="!checkSite('supplier.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
283 283
 										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
284
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
284
+										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
285 285
 									</div>
286 286
 								</td>
287 287
 							</tr>
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 
298 298
 		<div class="card-tools-more">
299 299
 			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
300
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
300
+				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
301 301
 				v-on:click="addItem('supplier.lists.')" >
302 302
 			</div>
303 303
 		</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/catalog/item-text-standard.php 2 patches
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,9 +115,12 @@  discard block
 block discarded – undo
115 115
 								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
116 116
 							</div>
117 117
 						</div>
118
-					<?php else : ?>
118
+					<?php else {
119
+	: ?>
119 120
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) );
122
+}
123
+?>'.replace('idx', idx)"
121 124
 							value="<?= $enc->attr( key( $languages ) ); ?>" />
122 125
 					<?php endif; ?>
123 126
 
@@ -146,9 +149,12 @@  discard block
 block discarded – undo
146 149
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
147 150
 							</div>
148 151
 						</div>
149
-					<?php else : ?>
152
+					<?php else {
153
+	: ?>
150 154
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
155
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) );
156
+}
157
+?>'.replace('idx', idx)"
152 158
 							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
153 159
 					<?php endif; ?>
154 160
 
@@ -204,9 +210,12 @@  discard block
 block discarded – undo
204 210
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
205 211
 							</div>
206 212
 						</div>
207
-					<?php else : ?>
213
+					<?php else {
214
+	: ?>
208 215
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'catalog.lists.type' ) ) ); ?>'.replace('idx', idx)"
216
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'catalog.lists.type' ) ) );
217
+}
218
+?>'.replace('idx', idx)"
210 219
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
211 220
 							v-model="items[idx]['catalog.lists.type']" />
212 221
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 				v-bind:aria-controls="'item-text-group-data-' + idx" aria-expanded="false">
30 30
 				<div class="card-tools-left">
31 31
 					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
32
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
32
+						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry' ) ); ?>">
33 33
 					</div>
34 34
 				</div>
35 35
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 				<div class="card-tools-right">
38 38
 					<div v-if="!checkSite('catalog.lists.siteid', idx)"
39 39
 						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
40
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
40
+						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
41 41
 						v-on:click.stop="removeItem(idx)">
42 42
 					</div>
43 43
 				</div>
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
173 173
 					<div class="card-tools-left">
174 174
 						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
175
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
175
+							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data' ) ); ?>">
176 176
 						</div>
177 177
 					</div>
178 178
 					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 								</th>
255 255
 								<th class="actions">
256 256
 									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
257
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
257
+										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
258 258
 										v-bind:readonly="checkSite('catalog.lists.siteid', idx)"
259 259
 										v-on:click="addConfig(idx)" >
260 260
 									</div>
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 								<td class="actions">
282 282
 									<div v-if="!checkSite('catalog.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
283 283
 										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
284
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
284
+										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
285 285
 									</div>
286 286
 								</td>
287 287
 							</tr>
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 
298 298
 		<div class="card-tools-more">
299 299
 			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
300
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
300
+				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
301 301
 				v-on:click="addItem('catalog.lists.')" >
302 302
 			</div>
303 303
 		</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/attribute/item-text-standard.php 2 patches
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,9 +115,12 @@  discard block
 block discarded – undo
115 115
 								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
116 116
 							</div>
117 117
 						</div>
118
-					<?php else : ?>
118
+					<?php else {
119
+	: ?>
119 120
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) );
122
+}
123
+?>'.replace('idx', idx)"
121 124
 							value="<?= $enc->attr( key( $languages ) ); ?>" />
122 125
 					<?php endif; ?>
123 126
 
@@ -146,9 +149,12 @@  discard block
 block discarded – undo
146 149
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
147 150
 							</div>
148 151
 						</div>
149
-					<?php else : ?>
152
+					<?php else {
153
+	: ?>
150 154
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
155
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) );
156
+}
157
+?>'.replace('idx', idx)"
152 158
 							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
153 159
 					<?php endif; ?>
154 160
 
@@ -204,9 +210,12 @@  discard block
 block discarded – undo
204 210
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
205 211
 							</div>
206 212
 						</div>
207
-					<?php else : ?>
213
+					<?php else {
214
+	: ?>
208 215
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)"
216
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) );
217
+}
218
+?>'.replace('idx', idx)"
210 219
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
211 220
 							v-model="items[idx]['attribute.lists.type']" />
212 221
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 				v-bind:aria-controls="'item-text-group-data-' + idx" aria-expanded="false">
30 30
 				<div class="card-tools-left">
31 31
 					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
32
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
32
+						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry' ) ); ?>">
33 33
 					</div>
34 34
 				</div>
35 35
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 				<div class="card-tools-right">
38 38
 					<div v-if="!checkSite('attribute.lists.siteid', idx)"
39 39
 						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
40
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
40
+						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
41 41
 						v-on:click.stop="removeItem(idx)">
42 42
 					</div>
43 43
 				</div>
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
173 173
 					<div class="card-tools-left">
174 174
 						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
175
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
175
+							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data' ) ); ?>">
176 176
 						</div>
177 177
 					</div>
178 178
 					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 								</th>
255 255
 								<th class="actions">
256 256
 									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
257
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
257
+										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
258 258
 										v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
259 259
 										v-on:click="addConfig(idx)" >
260 260
 									</div>
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 								<td class="actions">
282 282
 									<div v-if="!checkSite('attribute.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
283 283
 										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
284
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
284
+										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
285 285
 									</div>
286 286
 								</td>
287 287
 							</tr>
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 
298 298
 		<div class="card-tools-more">
299 299
 			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
300
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
300
+				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
301 301
 				v-on:click="addItem('attribute.lists.')" >
302 302
 			</div>
303 303
 		</div>
Please login to merge, or discard this patch.