@@ -258,8 +258,7 @@ |
||
258 | 258 | */ |
259 | 259 | $path = 'mshop/order/manager/status/insert'; |
260 | 260 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
261 | - } |
|
262 | - else |
|
261 | + } else |
|
263 | 262 | { |
264 | 263 | /** mshop/order/manager/status/update/mysql |
265 | 264 | * Updates an existing order record in the database |
@@ -373,8 +373,7 @@ |
||
373 | 373 | */ |
374 | 374 | $path = 'mshop/attribute/manager/insert'; |
375 | 375 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
376 | - } |
|
377 | - else |
|
376 | + } else |
|
378 | 377 | { |
379 | 378 | /** mshop/attribute/manager/update/mysql |
380 | 379 | * Updates an existing attribute record in the database |
@@ -208,8 +208,7 @@ |
||
208 | 208 | */ |
209 | 209 | $path = 'mshop/stock/manager/insert'; |
210 | 210 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
211 | - } |
|
212 | - else |
|
211 | + } else |
|
213 | 212 | { |
214 | 213 | /** mshop/stock/manager/update/mysql |
215 | 214 | * Updates an existing product stock record in the database |
@@ -333,8 +333,7 @@ |
||
333 | 333 | */ |
334 | 334 | $path = 'mshop/subscription/manager/insert'; |
335 | 335 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
336 | - } |
|
337 | - else |
|
336 | + } else |
|
338 | 337 | { |
339 | 338 | /** mshop/subscription/manager/update/mysql |
340 | 339 | * Updates an existing subscription record in the database |
@@ -598,8 +598,7 @@ |
||
598 | 598 | */ |
599 | 599 | $path = 'mshop/product/manager/insert'; |
600 | 600 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
601 | - } |
|
602 | - else |
|
601 | + } else |
|
603 | 602 | { |
604 | 603 | /** mshop/product/manager/update/mysql |
605 | 604 | * Updates an existing product record in the database |
@@ -402,8 +402,7 @@ |
||
402 | 402 | */ |
403 | 403 | $path = 'mshop/media/manager/insert'; |
404 | 404 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
405 | - } |
|
406 | - else |
|
405 | + } else |
|
407 | 406 | { |
408 | 407 | /** mshop/media/manager/update/mysql |
409 | 408 | * Updates an existing media 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.language.siteid'] = $this->getContext()->getLocale()->getSiteId(); |
117 | - } catch( \Exception $ex ) { |
|
118 | + } |
|
119 | + catch( \Exception $ex ) |
|
120 | + { |
|
118 | 121 | $values['locale.language.siteid'] = null; |
119 | 122 | } |
120 | 123 | |
@@ -181,8 +184,7 @@ discard block |
||
181 | 184 | */ |
182 | 185 | $path = 'mshop/locale/manager/language/insert'; |
183 | 186 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
184 | - } |
|
185 | - else |
|
187 | + } else |
|
186 | 188 | { |
187 | 189 | /** mshop/locale/manager/language/update/mysql |
188 | 190 | * Updates an existing language record in the database |
@@ -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 |