Completed
Push — master ( 96c623...f0d4b8 )
by Aimeos
03:45
created
admin/jqadm/templates/service/item-text-standard.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -140,9 +140,12 @@  discard block
 block discarded – undo
140 140
 										<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
141 141
 									</div>
142 142
 								</div>
143
-							<?php else : ?>
143
+							<?php else {
144
+	: ?>
144 145
 								<input class="text-langid" type="hidden"
145
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) ); ?>'.replace('_idx_', idx)"
146
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) );
147
+}
148
+?>'.replace('_idx_', idx)"
146 149
 									value="<?= $enc->attr( key( $languages ) ) ?>" />
147 150
 							<?php endif; ?>
148 151
 
@@ -162,9 +165,12 @@  discard block
 block discarded – undo
162 165
 										<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
163 166
 									</div>
164 167
 								</div>
165
-							<?php else : ?>
168
+							<?php else {
169
+	: ?>
166 170
 								<input class="item-type" type="hidden"
167
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) ); ?>'.replace('_idx_', idx)"
171
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) );
172
+}
173
+?>'.replace('_idx_', idx)"
168 174
 									value="<?= $enc->attr( key( $textTypes ) ) ?>" />
169 175
 							<?php endif; ?>
170 176
 
@@ -212,9 +218,12 @@  discard block
 block discarded – undo
212 218
 										<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
213 219
 									</div>
214 220
 								</div>
215
-							<?php else : ?>
221
+							<?php else {
222
+	: ?>
216 223
 								<input class="listitem-type" type="hidden"
217
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'service.lists.type' ) ) ); ?>'.replace('_idx_', idx)"
224
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'service.lists.type' ) ) );
225
+}
226
+?>'.replace('_idx_', idx)"
218 227
 									value="<?= $enc->attr( key( $listTypes ) ) ?>" />
219 228
 							<?php endif; ?>
220 229
 
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-text-standard.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -159,9 +159,12 @@  discard block
 block discarded – undo
159 159
 										<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
160 160
 									</div>
161 161
 								</div>
162
-							<?php else : ?>
162
+							<?php else {
163
+	: ?>
163 164
 								<input class="text-langid" type="hidden"
164
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) ); ?>'.replace('_idx_', idx)"
165
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) );
166
+}
167
+?>'.replace('_idx_', idx)"
165 168
 									value="<?= $enc->attr( key( $languages ) ) ?>" />
166 169
 							<?php endif; ?>
167 170
 
@@ -181,9 +184,12 @@  discard block
 block discarded – undo
181 184
 										<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
182 185
 									</div>
183 186
 								</div>
184
-							<?php else : ?>
187
+							<?php else {
188
+	: ?>
185 189
 								<input class="item-type" type="hidden"
186
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) ); ?>'.replace('_idx_', idx)"
190
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) );
191
+}
192
+?>'.replace('_idx_', idx)"
187 193
 									value="<?= $enc->attr( key( $textTypes ) ) ?>" />
188 194
 							<?php endif; ?>
189 195
 
@@ -231,9 +237,12 @@  discard block
 block discarded – undo
231 237
 										<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
232 238
 									</div>
233 239
 								</div>
234
-							<?php else : ?>
240
+							<?php else {
241
+	: ?>
235 242
 								<input class="listitem-type" type="hidden"
236
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'product.lists.type' ) ) ); ?>'.replace('_idx_', idx)"
243
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'product.lists.type' ) ) );
244
+}
245
+?>'.replace('_idx_', idx)"
237 246
 									value="<?= $enc->attr( key( $listTypes ) ) ?>" />
238 247
 							<?php endif; ?>
239 248
 
Please login to merge, or discard this patch.
admin/jqadm/templates/supplier/item-text-standard.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -140,9 +140,12 @@  discard block
 block discarded – undo
140 140
 										<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
141 141
 									</div>
142 142
 								</div>
143
-							<?php else : ?>
143
+							<?php else {
144
+	: ?>
144 145
 								<input class="text-langid" type="hidden"
145
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) ); ?>'.replace('_idx_', idx)"
146
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) );
147
+}
148
+?>'.replace('_idx_', idx)"
146 149
 									value="<?= $enc->attr( key( $languages ) ) ?>" />
147 150
 							<?php endif; ?>
148 151
 
@@ -162,9 +165,12 @@  discard block
 block discarded – undo
162 165
 										<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
163 166
 									</div>
164 167
 								</div>
165
-							<?php else : ?>
168
+							<?php else {
169
+	: ?>
166 170
 								<input class="item-type" type="hidden"
167
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) ); ?>'.replace('_idx_', idx)"
171
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) );
172
+}
173
+?>'.replace('_idx_', idx)"
168 174
 									value="<?= $enc->attr( key( $textTypes ) ) ?>" />
169 175
 							<?php endif; ?>
170 176
 
@@ -212,9 +218,12 @@  discard block
 block discarded – undo
212 218
 										<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
213 219
 									</div>
214 220
 								</div>
215
-							<?php else : ?>
221
+							<?php else {
222
+	: ?>
216 223
 								<input class="listitem-type" type="hidden"
217
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'supplier.lists.type' ) ) ); ?>'.replace('_idx_', idx)"
224
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'supplier.lists.type' ) ) );
225
+}
226
+?>'.replace('_idx_', idx)"
218 227
 									value="<?= $enc->attr( key( $listTypes ) ) ?>" />
219 228
 							<?php endif; ?>
220 229
 
Please login to merge, or discard this patch.
admin/jqadm/templates/catalog/item-text-standard.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -140,9 +140,12 @@  discard block
 block discarded – undo
140 140
 										<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
141 141
 									</div>
142 142
 								</div>
143
-							<?php else : ?>
143
+							<?php else {
144
+	: ?>
144 145
 								<input class="text-langid" type="hidden"
145
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) ); ?>'.replace('_idx_', idx)"
146
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.languageid' ) ) );
147
+}
148
+?>'.replace('_idx_', idx)"
146 149
 									value="<?= $enc->attr( key( $languages ) ) ?>" />
147 150
 							<?php endif; ?>
148 151
 
@@ -162,9 +165,12 @@  discard block
 block discarded – undo
162 165
 										<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
163 166
 									</div>
164 167
 								</div>
165
-							<?php else : ?>
168
+							<?php else {
169
+	: ?>
166 170
 								<input class="item-type" type="hidden"
167
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) ); ?>'.replace('_idx_', idx)"
171
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'text.type' ) ) );
172
+}
173
+?>'.replace('_idx_', idx)"
168 174
 									value="<?= $enc->attr( key( $textTypes ) ) ?>" />
169 175
 							<?php endif; ?>
170 176
 
@@ -212,9 +218,12 @@  discard block
 block discarded – undo
212 218
 										<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
213 219
 									</div>
214 220
 								</div>
215
-							<?php else : ?>
221
+							<?php else {
222
+	: ?>
216 223
 								<input class="listitem-type" type="hidden"
217
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'catalog.lists.type' ) ) ); ?>'.replace('_idx_', idx)"
224
+									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', '_idx_', 'catalog.lists.type' ) ) );
225
+}
226
+?>'.replace('_idx_', idx)"
218 227
 									value="<?= $enc->attr( key( $listTypes ) ) ?>" />
219 228
 							<?php endif; ?>
220 229
 
Please login to merge, or discard this patch.
admin/jqadm/templates/order/item-standard.php 1 patch
Braces   +11 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@  discard block
 block discarded – undo
9 9
 	return ( $key == $code ? 'selected="selected"' : '' );
10 10
 };
11 11
 
12
-$sortItems = function( array $items )
13
-{
12
+$sortItems = function( array $items ) {
14 13
 	krsort( $items );
15 14
 	return $items;
16 15
 };
@@ -340,8 +339,11 @@  discard block
 block discarded – undo
340 339
 										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div>
341 340
 									</div>
342 341
 								<?php endforeach; ?>
343
-							<?php else : ?>
344
-								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?>
342
+							<?php else {
343
+	: ?>
344
+								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) );
345
+}
346
+?>
345 347
 							<?php endif; ?>
346 348
 						</div>
347 349
 
@@ -768,8 +770,11 @@  discard block
 block discarded – undo
768 770
 									<div class="col-6 name">
769 771
 										<?php if( $basket->getPrice()->getTaxFlag() ) : ?>
770 772
 											<?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?>
771
-										<?php else : ?>
772
-											<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?>
773
+										<?php else {
774
+	: ?>
775
+											<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) );
776
+}
777
+?>
773 778
 										<?php endif; ?>
774 779
 									</div>
775 780
 									<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getTaxValue() ), $currency ) ); ?></div>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/listhead-standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,16 +56,14 @@
 block discarded – undo
56 56
 		$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
57 57
 		$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
58 58
 		$config = $this->config( 'admin/jqadm/url/get/config', [] );
59
-	}
60
-	else
59
+	} else
61 60
 	{
62 61
 		$target = $this->config( 'admin/jqadm/url/create/target' );
63 62
 		$controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
64 63
 		$action = $this->config( 'admin/jqadm/url/create/action', 'create' );
65 64
 		$config = $this->config( 'admin/jqadm/url/create/config', [] );
66 65
 	}
67
-}
68
-else
66
+} else
69 67
 {
70 68
 	$target = $this->config( 'admin/jqadm/url/search/target' );
71 69
 	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Common/Decorator/Page.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 				$id = $siteManager->searchItems( $search )->keys()->first() ?: $siteItem->getId();
51 51
 			}
52 52
 		}
53
-		catch( \Exception $e ) { ; }
53
+		catch( \Exception $e ) {; }
54 54
 
55 55
 		if( $view->access( ['admin', 'super'] ) ) {
56 56
 			$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE;
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,9 @@  discard block
 block discarded – undo
50 50
 				$id = $siteManager->searchItems( $search )->keys()->first() ?: $siteItem->getId();
51 51
 			}
52 52
 		}
53
-		catch( \Exception $e ) { ; }
53
+		catch( \Exception $e )
54
+		{
55
+; }
54 56
 
55 57
 		if( $view->access( ['admin', 'super'] ) ) {
56 58
 			$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE;
@@ -77,8 +79,7 @@  discard block
 block discarded – undo
77 79
 			if( ( $rootItem = $sitePath->first() ) !== null ) {
78 80
 				$view->pageSiteTree = $siteManager->getTree( $rootItem->getId(), [], $level );
79 81
 			}
80
-		}
81
-		else
82
+		} else
82 83
 		{
83 84
 			$view->pageSiteList = [$view->pageSiteTree];
84 85
 		}
Please login to merge, or discard this patch.
admin/jqadm/templates/customer/item-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,8 +174,11 @@
 block discarded – undo
174 174
 										</option>
175 175
 									<?php endforeach; ?>
176 176
 								</select>
177
-							<?php else : ?>
178
-								<?php $language = ( ( $item = $languages->first() ) !== null ? $item->getId() : '' ); ?>
177
+							<?php else {
178
+	: ?>
179
+								<?php $language = ( ( $item = $languages->first() ) !== null ? $item->getId() : '' );
180
+}
181
+?>
179 182
 								<input class="item-languageid" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'customer.languageid' ) ) ); ?>" value="<?= $enc->attr( $language ); ?>" />
180 183
 							<?php endif; ?>
181 184
 						</div>
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Physical/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -294,8 +294,7 @@
 block discarded – undo
294 294
 				$propItem->setValue( $value );
295 295
 
296 296
 				$item->addPropertyItem( $propItem );
297
-			}
298
-			else
297
+			} else
299 298
 			{
300 299
 				$item->deletePropertyItems( $propItems->toArray() );
301 300
 			}
Please login to merge, or discard this patch.