@@ -338,8 +338,7 @@ |
||
338 | 338 | */ |
339 | 339 | $path = 'mshop/locale/manager/insert'; |
340 | 340 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
341 | - } |
|
342 | - else |
|
341 | + } else |
|
343 | 342 | { |
344 | 343 | /** mshop/locale/manager/update/mysql |
345 | 344 | * Updates an existing locale record in the database |
@@ -112,9 +112,12 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function create( array $values = [] ) : \Aimeos\MShop\Common\Item\Iface |
114 | 114 | { |
115 | - try { |
|
115 | + try |
|
116 | + { |
|
116 | 117 | $values['locale.currency.siteid'] = $this->getContext()->getLocale()->getSiteId(); |
117 | - } catch( \Exception $e ) { |
|
118 | + } |
|
119 | + catch( \Exception $e ) |
|
120 | + { |
|
118 | 121 | $values['locale.currency.siteid'] = null; |
119 | 122 | } |
120 | 123 | |
@@ -181,8 +184,7 @@ discard block |
||
181 | 184 | */ |
182 | 185 | $path = 'mshop/locale/manager/currency/insert'; |
183 | 186 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
184 | - } |
|
185 | - else |
|
187 | + } else |
|
186 | 188 | { |
187 | 189 | /** mshop/locale/manager/currency/update/mysql |
188 | 190 | * Updates an existing currency record in the database |
@@ -252,8 +252,7 @@ |
||
252 | 252 | */ |
253 | 253 | $path = 'mshop/text/manager/insert'; |
254 | 254 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
255 | - } |
|
256 | - else |
|
255 | + } else |
|
257 | 256 | { |
258 | 257 | /** mshop/text/manager/update/mysql |
259 | 258 | * Updates an existing text record in the database |
@@ -421,8 +421,7 @@ |
||
421 | 421 | */ |
422 | 422 | $path = 'mshop/coupon/manager/code/insert'; |
423 | 423 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
424 | - } |
|
425 | - else |
|
424 | + } else |
|
426 | 425 | { |
427 | 426 | /** mshop/coupon/manager/code/update/mysql |
428 | 427 | * Updates an existing coupon code record in the database |
@@ -279,8 +279,7 @@ |
||
279 | 279 | */ |
280 | 280 | $path = 'mshop/coupon/manager/insert'; |
281 | 281 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
282 | - } |
|
283 | - else |
|
282 | + } else |
|
284 | 283 | { |
285 | 284 | /** mshop/coupon/manager/update/mysql |
286 | 285 | * Updates an existing coupon record in the database |
@@ -349,8 +349,7 @@ |
||
349 | 349 | */ |
350 | 350 | $path = 'mshop/supplier/manager/insert'; |
351 | 351 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
352 | - } |
|
353 | - else |
|
352 | + } else |
|
354 | 353 | { |
355 | 354 | /** mshop/supplier/manager/update/mysql |
356 | 355 | * Updates an existing supplier record in the database |
@@ -203,8 +203,7 @@ |
||
203 | 203 | */ |
204 | 204 | $path = 'mshop/tag/manager/insert'; |
205 | 205 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
206 | - } |
|
207 | - else |
|
206 | + } else |
|
208 | 207 | { |
209 | 208 | /** mshop/tag/manager/update/mysql |
210 | 209 | * Updates an existing tag tag record in the database |
@@ -390,8 +390,7 @@ |
||
390 | 390 | */ |
391 | 391 | $path = 'mshop/service/manager/insert'; |
392 | 392 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
393 | - } |
|
394 | - else |
|
393 | + } else |
|
395 | 394 | { |
396 | 395 | /** mshop/service/manager/update/mysql |
397 | 396 | * Updates an existing service record in the database |
@@ -305,8 +305,7 @@ |
||
305 | 305 | */ |
306 | 306 | $path = 'mshop/customer/manager/group/insert'; |
307 | 307 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
308 | - } |
|
309 | - else |
|
308 | + } else |
|
310 | 309 | { |
311 | 310 | /** mshop/customer/manager/group/update/mysql |
312 | 311 | * Updates an existing customer group record in the database |