Passed
Push — master ( 8de0c9...32baf2 )
by Aimeos
03:44
created
admin/jqadm/templates/attribute/item-text-standard.php 2 patches
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -124,9 +124,12 @@  discard block
 block discarded – undo
124 124
 										<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
125 125
 									</div>
126 126
 								</div>
127
-							<?php else : ?>
127
+							<?php else {
128
+	: ?>
128 129
 								<input class="text-langid" type="hidden"
129
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
130
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) );
131
+}
132
+?>'.replace('idx', idx)"
130 133
 									value="<?= $enc->attr( key( $languages ) ); ?>" />
131 134
 							<?php endif; ?>
132 135
 
@@ -155,9 +158,12 @@  discard block
 block discarded – undo
155 158
 										<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
156 159
 									</div>
157 160
 								</div>
158
-							<?php else : ?>
161
+							<?php else {
162
+	: ?>
159 163
 								<input class="item-type" type="hidden"
160
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
164
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) );
165
+}
166
+?>'.replace('idx', idx)"
161 167
 									value="<?= $enc->attr( key( $textTypes ) ); ?>" />
162 168
 							<?php endif; ?>
163 169
 
@@ -213,9 +219,12 @@  discard block
 block discarded – undo
213 219
 										<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
214 220
 									</div>
215 221
 								</div>
216
-							<?php else : ?>
222
+							<?php else {
223
+	: ?>
217 224
 								<input class="listitem-type" type="hidden"
218
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)"
225
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) );
226
+}
227
+?>'.replace('idx', idx)"
219 228
 									value="<?= $enc->attr( key( $listTypes ) ); ?>"
220 229
 									v-model="items[idx]['attribute.lists.type']" />
221 230
 							<?php endif; ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 											<th class="config-row-value"><?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?></th>
296 296
 											<th class="actions">
297 297
 												<div v-if="!readonly" class="btn act-add fa" tabindex="1" v-on:click="add()"
298
-													title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"></div>
298
+													title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"></div>
299 299
 											</th>
300 300
 										</tr>
301 301
 									</thead>
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 											</td>
315 315
 											<td class="actions">
316 316
 												<div v-if="!readonly" class="btn act-delete fa" tabindex="1" v-on:click="remove(idx)"
317
-													title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"></div>
317
+													title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"></div>
318 318
 											</td>
319 319
 										</tr>
320 320
 									</tbody>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-related-suggest-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 				</th>
32 32
 				<th class="actions">
33 33
 					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
34
+						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
35 35
 						v-on:click="addItem()">
36 36
 					</div>
37 37
 				</th>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-characteristic-attribute-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 				</th>
32 32
 				<th class="actions">
33 33
 					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
34
+						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
35 35
 						v-on:click="addItem()">
36 36
 					</div>
37 37
 				</th>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-option-custom-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 				</th>
33 33
 				<th class="actions">
34 34
 					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
35
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
35
+						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
36 36
 						v-on:click="addItem('product.lists.')">
37 37
 				</th>
38 38
 			</tr>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-characteristic-variant-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 				</th>
32 32
 				<th class="actions">
33 33
 					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
34
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
34
+						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
35 35
 						v-on:click="addItem()">
36 36
 					</div>
37 37
 				</th>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-stock-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,9 +79,12 @@
 block discarded – undo
79 79
 								</option>
80 80
 							<?php endforeach; ?>
81 81
 						</select>
82
-					<?php else : ?>
82
+					<?php else {
83
+	: ?>
83 84
 						<input class="item-type" type="hidden"
84
-							v-bind:name="'<?= $enc->attr( $this->formparam( ['stock', 'idx', 'stock.type'] ) ); ?>'.replace( 'idx', idx )"
85
+							v-bind:name="'<?= $enc->attr( $this->formparam( ['stock', 'idx', 'stock.type'] ) );
86
+}
87
+?>'.replace( 'idx', idx )"
85 88
 							value="<?= $enc->attr( key( $stockTypes ) ); ?>" />
86 89
 					<?php endif; ?>
87 90
 				</td>
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Stock/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -334,8 +334,7 @@
 block discarded – undo
334 334
 			{
335 335
 				$stockItem = $stocks[$id];
336 336
 				unset( $stocks[$id] );
337
-			}
338
-			else
337
+			} else
339 338
 			{
340 339
 				$stockItem = $manager->createItem();
341 340
 			}
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/site/item-standard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 									<th class="config-row-value"><?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?></th>
157 157
 									<th class="actions">
158 158
 										<div v-if="!readonly" class="btn act-add fa" tabindex="1" v-on:click="add()"
159
-											title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"></div>
159
+											title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"></div>
160 160
 									</th>
161 161
 								</tr>
162 162
 							</thead>
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 									</td>
176 176
 									<td class="actions">
177 177
 										<div v-if="!readonly" class="btn act-delete fa" tabindex="1" v-on:click="remove(idx)"
178
-											title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"></div>
178
+											title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"></div>
179 179
 									</td>
180 180
 								</tr>
181 181
 							</tbody>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-standard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
 				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
241 241
 					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
242
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
242
+						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
243 243
 							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
244 244
 						</a>
245 245
 					</li>
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
 									<th class="config-row-value"><?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?></th>
429 429
 									<th class="actions">
430 430
 										<div v-if="!readonly" class="btn act-add fa" tabindex="1" v-on:click="add()"
431
-											title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"></div>
431
+											title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"></div>
432 432
 									</th>
433 433
 								</tr>
434 434
 							</thead>
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 									</td>
448 448
 									<td class="actions">
449 449
 										<div v-if="!readonly" class="btn act-delete fa" tabindex="1" v-on:click="remove(idx)"
450
-											title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"></div>
450
+											title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"></div>
451 451
 									</td>
452 452
 								</tr>
453 453
 							</tbody>
Please login to merge, or discard this patch.