Passed
Branch master (d032f7)
by Aimeos
05:30
created
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/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.
admin/jqadm/templates/attribute/item-price-standard.php 2 patches
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -154,9 +154,12 @@  discard block
 block discarded – undo
154 154
 								</select>
155 155
 							</div>
156 156
 						</div>
157
-					<?php else : ?>
157
+					<?php else {
158
+	: ?>
158 159
 						<input class="item-currencyid" type="hidden"
159
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) ); ?>'.replace('idx', idx)"
160
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.currencyid' ) ) );
161
+}
162
+?>'.replace('idx', idx)"
160 163
 							value="<?= $enc->attr( key( $currencies ) ); ?>" />
161 164
 					<?php endif; ?>
162 165
 
@@ -184,9 +187,12 @@  discard block
 block discarded – undo
184 187
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional prices like per one lb/kg or per month' ) ); ?>
185 188
 							</div>
186 189
 						</div>
187
-					<?php else : ?>
190
+					<?php else {
191
+	: ?>
188 192
 						<input class="item-type" type="hidden"
189
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.type' ) ) ); ?>'.replace('idx', idx)"
193
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'price.type' ) ) );
194
+}
195
+?>'.replace('idx', idx)"
190 196
 							value="<?= $enc->attr( key( $priceTypes ) ); ?>" />
191 197
 					<?php endif; ?>
192 198
 
@@ -242,9 +248,12 @@  discard block
 block discarded – undo
242 248
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
243 249
 							</div>
244 250
 						</div>
245
-					<?php else : ?>
251
+					<?php else {
252
+	: ?>
246 253
 						<input class="listitem-type" type="hidden"
247
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)"
254
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'price', 'idx', 'attribute.lists.type' ) ) );
255
+}
256
+?>'.replace('idx', idx)"
248 257
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
249 258
 							v-model="items[idx]['attribute.lists.type']" />
250 259
 					<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 				v-bind:aria-controls="'item-price-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" v-html="getLabel(idx)"></span>
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 				<div class="card-tools-right">
40 40
 					<div v-if="!checkSite('attribute.lists.siteid', idx)"
41 41
 						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
42
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
42
+						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
43 43
 						v-on:click.stop="removeItem(idx)">
44 44
 					</div>
45 45
 				</div>
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
211 211
 					<div class="card-tools-left">
212 212
 						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
213
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
213
+							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data' ) ); ?>">
214 214
 						</div>
215 215
 					</div>
216 216
 					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 								</th>
293 293
 								<th class="actions">
294 294
 									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
295
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
295
+										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
296 296
 										v-bind:readonly="checkSite('attribute.lists.siteid', idx)"
297 297
 										v-on:click="addConfig(idx)" >
298 298
 									</div>
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 								<td class="actions">
320 320
 									<div v-if="!checkSite('attribute.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
321 321
 										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
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
 							</tr>
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 
336 336
 		<div class="card-tools-more">
337 337
 			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
338
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
338
+				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
339 339
 				v-on:click="addItem('attribute.lists.')" >
340 340
 			</div>
341 341
 		</div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-stock-standard.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,9 +73,12 @@
 block discarded – undo
73 73
 							<?php endforeach; ?>
74 74
 						</select>
75 75
 					</td>
76
-				<?php else : ?>
76
+				<?php else {
77
+	: ?>
77 78
 					<input class="item-type" type="hidden"
78
-						name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.type', '' ) ) ); ?>"
79
+						name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.type', '' ) ) );
80
+}
81
+?>"
79 82
 						value="<?= $enc->attr( key( $stockTypes ) ); ?>" />
80 83
 				<?php endif; ?>
81 84
 				<td class="stock-stocklevel optional">
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 				</th>
47 47
 				<th class="actions">
48 48
 					<div v-if="(items['stock.id'] || []).length < numtypes" class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
49
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
49
+						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
50 50
 						v-on:click="addItem()">
51 51
 					</div>
52 52
 				</th>
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 						name="<?= $enc->attr( $this->formparam( array( 'stock', 'stock.id', '' ) ) ); ?>" />
97 97
 
98 98
 					<div v-if="!checkSite('stock.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
99
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
99
+						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
100 100
 						v-on:click.stop="removeItem(idx)">
101 101
 					</div>
102 102
 				</td>
Please login to merge, or discard this patch.