@@ -309,8 +309,7 @@ |
||
| 309 | 309 | */ |
| 310 | 310 | $path = 'mshop/tag/manager/insert'; |
| 311 | 311 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 312 | - } |
|
| 313 | - else |
|
| 312 | + } else |
|
| 314 | 313 | { |
| 315 | 314 | /** mshop/tag/manager/update/mysql |
| 316 | 315 | * Updates an existing tag tag 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->context()->locale()->getSiteId(); |
| 117 | - } catch( \Exception $e ) { |
|
| 118 | + } |
|
| 119 | + catch( \Exception $e ) |
|
| 120 | + { |
|
| 118 | 121 | $values['locale.currency.siteid'] = null; |
| 119 | 122 | } |
| 120 | 123 | |
@@ -176,8 +179,7 @@ discard block |
||
| 176 | 179 | */ |
| 177 | 180 | $path = 'mshop/locale/manager/currency/insert'; |
| 178 | 181 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 179 | - } |
|
| 180 | - else |
|
| 182 | + } else |
|
| 181 | 183 | { |
| 182 | 184 | /** mshop/locale/manager/currency/update/mysql |
| 183 | 185 | * Updates an existing currency 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->context()->locale()->getSiteId(); |
| 117 | - } catch( \Exception $ex ) { |
|
| 118 | + } |
|
| 119 | + catch( \Exception $ex ) |
|
| 120 | + { |
|
| 118 | 121 | $values['locale.language.siteid'] = null; |
| 119 | 122 | } |
| 120 | 123 | |
@@ -176,8 +179,7 @@ discard block |
||
| 176 | 179 | */ |
| 177 | 180 | $path = 'mshop/locale/manager/language/insert'; |
| 178 | 181 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 179 | - } |
|
| 180 | - else |
|
| 182 | + } else |
|
| 181 | 183 | { |
| 182 | 184 | /** mshop/locale/manager/language/update/mysql |
| 183 | 185 | * Updates an existing language record in the database |
@@ -435,8 +435,7 @@ |
||
| 435 | 435 | */ |
| 436 | 436 | $path = 'mshop/locale/manager/insert'; |
| 437 | 437 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 438 | - } |
|
| 439 | - else |
|
| 438 | + } else |
|
| 440 | 439 | { |
| 441 | 440 | /** mshop/locale/manager/update/mysql |
| 442 | 441 | * Updates an existing locale record in the database |
@@ -357,8 +357,7 @@ |
||
| 357 | 357 | */ |
| 358 | 358 | $path = 'mshop/text/manager/insert'; |
| 359 | 359 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 360 | - } |
|
| 361 | - else |
|
| 360 | + } else |
|
| 362 | 361 | { |
| 363 | 362 | /** mshop/text/manager/update/mysql |
| 364 | 363 | * Updates an existing text record in the database |
@@ -515,8 +515,7 @@ |
||
| 515 | 515 | */ |
| 516 | 516 | $path = 'mshop/media/manager/insert'; |
| 517 | 517 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 518 | - } |
|
| 519 | - else |
|
| 518 | + } else |
|
| 520 | 519 | { |
| 521 | 520 | /** mshop/media/manager/update/mysql |
| 522 | 521 | * Updates an existing media record in the database |
@@ -1208,7 +1208,7 @@ |
||
| 1208 | 1208 | $siteId = $context->locale()->getSiteId(); |
| 1209 | 1209 | |
| 1210 | 1210 | // the "d" after {siteid} is the required extension for Windows (no dots at the end allowed) |
| 1211 | - return "${siteId}d/${domain}/${filename[0]}/${filename[1]}/${filename}${ext}"; |
|
| 1211 | + return "${siteid}d/${domain}/${filename[0]}/${filename[1]}/${filename}${ext}"; |
|
| 1212 | 1212 | } |
| 1213 | 1213 | |
| 1214 | 1214 | |
@@ -619,8 +619,7 @@ |
||
| 619 | 619 | */ |
| 620 | 620 | $path = 'mshop/customer/manager/insert'; |
| 621 | 621 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 622 | - } |
|
| 623 | - else |
|
| 622 | + } else |
|
| 624 | 623 | { |
| 625 | 624 | /** mshop/customer/manager/update/mysql |
| 626 | 625 | * Updates an existing customer record in the database |
@@ -455,8 +455,7 @@ |
||
| 455 | 455 | */ |
| 456 | 456 | $path = 'mshop/supplier/manager/insert'; |
| 457 | 457 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 458 | - } |
|
| 459 | - else |
|
| 458 | + } else |
|
| 460 | 459 | { |
| 461 | 460 | /** mshop/supplier/manager/update/mysql |
| 462 | 461 | * Updates an existing supplier record in the database |
@@ -428,8 +428,7 @@ |
||
| 428 | 428 | */ |
| 429 | 429 | $path = 'mshop/review/manager/insert'; |
| 430 | 430 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 431 | - } |
|
| 432 | - else |
|
| 431 | + } else |
|
| 433 | 432 | { |
| 434 | 433 | /** mshop/review/manager/update/mysql |
| 435 | 434 | * Updates an existing review record in the database |