Completed
Push — master ( 6e8b10...d2a4bf )
by Aimeos
04:17
created
admin/jqadm/src/Admin/JQAdm/Locale/Language/Standard.php 1 patch
Braces   +13 added lines, -26 removed lines patch added patch discarded remove patch
@@ -51,14 +51,12 @@  discard block
 block discarded – undo
51 51
 				$view->tabindex = ++$idx + 1;
52 52
 				$view->itemBody .= $client->copy();
53 53
 			}
54
-		}
55
-		catch( \Aimeos\MShop\Exception $e )
54
+		} catch( \Aimeos\MShop\Exception $e )
56 55
 		{
57 56
 			$error = array( 'locale-language-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
58 57
 			$view->errors = $view->get( 'errors', [] ) + $error;
59 58
 			$this->logException( $e );
60
-		}
61
-		catch( \Exception $e )
59
+		} catch( \Exception $e )
62 60
 		{
63 61
 			$error = array( 'locale-language-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
64 62
 			$view->errors = $view->get( 'errors', [] ) + $error;
@@ -96,14 +94,12 @@  discard block
 block discarded – undo
96 94
 				$view->tabindex = ++$idx + 1;
97 95
 				$view->itemBody .= $client->create();
98 96
 			}
99
-		}
100
-		catch( \Aimeos\MShop\Exception $e )
97
+		} catch( \Aimeos\MShop\Exception $e )
101 98
 		{
102 99
 			$error = array( 'locale-language-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
103 100
 			$view->errors = $view->get( 'errors', [] ) + $error;
104 101
 			$this->logException( $e );
105
-		}
106
-		catch( \Exception $e )
102
+		} catch( \Exception $e )
107 103
 		{
108 104
 			$error = array( 'locale-language-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
109 105
 			$view->errors = $view->get( 'errors', [] ) + $error;
@@ -144,14 +140,12 @@  discard block
 block discarded – undo
144 140
 
145 141
 			$this->nextAction( $view, 'search', 'locale/language', null, 'delete' );
146 142
 			return;
147
-		}
148
-		catch( \Aimeos\MShop\Exception $e )
143
+		} catch( \Aimeos\MShop\Exception $e )
149 144
 		{
150 145
 			$error = array( 'locale-language-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
151 146
 			$view->errors = $view->get( 'errors', [] ) + $error;
152 147
 			$this->logException( $e );
153
-		}
154
-		catch( \Exception $e )
148
+		} catch( \Exception $e )
155 149
 		{
156 150
 			$error = array( 'locale-language-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
157 151
 			$view->errors = $view->get( 'errors', [] ) + $error;
@@ -192,14 +186,12 @@  discard block
 block discarded – undo
192 186
 				$view->tabindex = ++$idx + 1;
193 187
 				$view->itemBody .= $client->get();
194 188
 			}
195
-		}
196
-		catch( \Aimeos\MShop\Exception $e )
189
+		} catch( \Aimeos\MShop\Exception $e )
197 190
 		{
198 191
 			$error = array( 'locale-language-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
199 192
 			$view->errors = $view->get( 'errors', [] ) + $error;
200 193
 			$this->logException( $e );
201
-		}
202
-		catch( \Exception $e )
194
+		} catch( \Exception $e )
203 195
 		{
204 196
 			$error = array( 'locale-language-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
205 197
 			$view->errors = $view->get( 'errors', [] ) + $error;
@@ -238,18 +230,15 @@  discard block
 block discarded – undo
238 230
 
239 231
 			$this->nextAction( $view, $view->param( 'next' ), 'locale/language', $view->item->getId(), 'save' );
240 232
 			return;
241
-		}
242
-		catch( \Aimeos\Admin\JQAdm\Exception $e )
233
+		} catch( \Aimeos\Admin\JQAdm\Exception $e )
243 234
 		{
244 235
 			// fall through to create
245
-		}
246
-		catch( \Aimeos\MShop\Exception $e )
236
+		} catch( \Aimeos\MShop\Exception $e )
247 237
 		{
248 238
 			$error = array( 'locale-language-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
249 239
 			$view->errors = $view->get( 'errors', [] ) + $error;
250 240
 			$this->logException( $e );
251
-		}
252
-		catch( \Exception $e )
241
+		} catch( \Exception $e )
253 242
 		{
254 243
 			$error = array( 'locale-language-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
255 244
 			$view->errors = $view->get( 'errors', [] ) + $error;
@@ -291,14 +280,12 @@  discard block
 block discarded – undo
291 280
 			foreach( $this->getSubClients() as $client ) {
292 281
 				$view->itemBody .= $client->search();
293 282
 			}
294
-		}
295
-		catch( \Aimeos\MShop\Exception $e )
283
+		} catch( \Aimeos\MShop\Exception $e )
296 284
 		{
297 285
 			$error = array( 'locale-language-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
298 286
 			$view->errors = $view->get( 'errors', [] ) + $error;
299 287
 			$this->logException( $e );
300
-		}
301
-		catch( \Exception $e )
288
+		} catch( \Exception $e )
302 289
 		{
303 290
 			$error = array( 'locale-language-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
304 291
 			$view->errors = $view->get( 'errors', [] ) + $error;
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
@@ -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.
admin/jqadm/templates/supplier/item-image-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,9 +121,12 @@  discard block
 block discarded – undo
121 121
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional images like icons' ) ); ?>
122 122
 							</div>
123 123
 						</div>
124
-					<?php else : ?>
124
+					<?php else {
125
+	: ?>
125 126
 						<input class="item-type" type="hidden"
126
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'media.type' ) ) ); ?>'.replace( 'idx', idx )"
127
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'media.type' ) ) );
128
+}
129
+?>'.replace( 'idx', idx )"
127 130
 							value="<?= $enc->attr( key( $mediaTypes ) ); ?>" />
128 131
 					<?php endif; ?>
129 132
 
@@ -201,9 +204,12 @@  discard block
 block discarded – undo
201 204
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
202 205
 							</div>
203 206
 						</div>
204
-					<?php else : ?>
207
+					<?php else {
208
+	: ?>
205 209
 						<input class="listitem-type" type="hidden"
206
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'supplier.lists.type' ) ) ); ?>'.replace( 'idx', idx )"
210
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'supplier.lists.type' ) ) );
211
+}
212
+?>'.replace( 'idx', idx )"
207 213
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
208 214
 							v-model="items[idx]['supplier.lists.type']" />
209 215
 					<?php endif; ?>
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
@@ -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.
admin/jqadm/templates/catalog/item-image-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,9 +121,12 @@  discard block
 block discarded – undo
121 121
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional images like icons' ) ); ?>
122 122
 							</div>
123 123
 						</div>
124
-					<?php else : ?>
124
+					<?php else {
125
+	: ?>
125 126
 						<input class="item-type" type="hidden"
126
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'media.type' ) ) ); ?>'.replace( 'idx', idx )"
127
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'media.type' ) ) );
128
+}
129
+?>'.replace( 'idx', idx )"
127 130
 							value="<?= $enc->attr( key( $mediaTypes ) ); ?>" />
128 131
 					<?php endif; ?>
129 132
 
@@ -201,9 +204,12 @@  discard block
 block discarded – undo
201 204
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
202 205
 							</div>
203 206
 						</div>
204
-					<?php else : ?>
207
+					<?php else {
208
+	: ?>
205 209
 						<input class="listitem-type" type="hidden"
206
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'catalog.lists.type' ) ) ); ?>'.replace( 'idx', idx )"
210
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'catalog.lists.type' ) ) );
211
+}
212
+?>'.replace( 'idx', idx )"
207 213
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
208 214
 							v-model="items[idx]['catalog.lists.type']" />
209 215
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/attribute/item-text-standard.php 1 patch
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.
admin/jqadm/templates/attribute/item-image-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,9 +121,12 @@  discard block
 block discarded – undo
121 121
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional images like icons' ) ); ?>
122 122
 							</div>
123 123
 						</div>
124
-					<?php else : ?>
124
+					<?php else {
125
+	: ?>
125 126
 						<input class="item-type" type="hidden"
126
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'media.type' ) ) ); ?>'.replace( 'idx', idx )"
127
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'media.type' ) ) );
128
+}
129
+?>'.replace( 'idx', idx )"
127 130
 							value="<?= $enc->attr( key( $mediaTypes ) ); ?>" />
128 131
 					<?php endif; ?>
129 132
 
@@ -201,9 +204,12 @@  discard block
 block discarded – undo
201 204
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
202 205
 							</div>
203 206
 						</div>
204
-					<?php else : ?>
207
+					<?php else {
208
+	: ?>
205 209
 						<input class="listitem-type" type="hidden"
206
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace( 'idx', idx )"
210
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'image', 'idx', 'attribute.lists.type' ) ) );
211
+}
212
+?>'.replace( 'idx', idx )"
207 213
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
208 214
 							v-model="items[idx]['attribute.lists.type']" />
209 215
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/attribute/item-price-standard.php 1 patch
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.
admin/jqadm/templates/product/item-stock-standard.php 1 patch
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.