@@ -505,8 +505,7 @@ |
||
| 505 | 505 | */ |
| 506 | 506 | $path = 'mshop/order/manager/base/coupon/insert'; |
| 507 | 507 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 508 | - } |
|
| 509 | - else |
|
| 508 | + } else |
|
| 510 | 509 | { |
| 511 | 510 | /** mshop/order/manager/base/coupon/update/mysql |
| 512 | 511 | * Updates an existing order record in the database |
@@ -719,8 +719,7 @@ |
||
| 719 | 719 | */ |
| 720 | 720 | $path = 'mshop/order/manager/base/product/insert'; |
| 721 | 721 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 722 | - } |
|
| 723 | - else |
|
| 722 | + } else |
|
| 724 | 723 | { |
| 725 | 724 | /** mshop/order/manager/base/product/update/mysql |
| 726 | 725 | * Updates an existing order record in the database |
@@ -533,8 +533,7 @@ |
||
| 533 | 533 | */ |
| 534 | 534 | $path = 'mshop/order/manager/base/product/attribute/insert'; |
| 535 | 535 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 536 | - } |
|
| 537 | - else |
|
| 536 | + } else |
|
| 538 | 537 | { |
| 539 | 538 | /** mshop/order/manager/base/product/attribute/update/mysql |
| 540 | 539 | * Updates an existing order record in the database |
@@ -665,8 +665,7 @@ |
||
| 665 | 665 | */ |
| 666 | 666 | $path = 'mshop/order/manager/base/address/insert'; |
| 667 | 667 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
| 668 | - } |
|
| 669 | - else |
|
| 668 | + } else |
|
| 670 | 669 | { |
| 671 | 670 | /** mshop/order/manager/base/address/update/mysql |
| 672 | 671 | * Updates an existing order record in the database |
@@ -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 |
@@ -815,7 +815,7 @@ discard block |
||
| 815 | 815 | |
| 816 | 816 | foreach( $price->getTaxrates() as $name => $taxrate ) |
| 817 | 817 | { |
| 818 | - $price = (clone $price)->setTaxRate( $taxrate ); |
|
| 818 | + $price = ( clone $price )->setTaxRate( $taxrate ); |
|
| 819 | 819 | |
| 820 | 820 | if( isset( $taxes[$name][$taxrate] ) ) { |
| 821 | 821 | $taxes[$name][$taxrate]->addItem( $price, $product->getQuantity() ); |
@@ -833,7 +833,7 @@ discard block |
||
| 833 | 833 | |
| 834 | 834 | foreach( $price->getTaxrates() as $name => $taxrate ) |
| 835 | 835 | { |
| 836 | - $price = (clone $price)->setTaxRate( $taxrate ); |
|
| 836 | + $price = ( clone $price )->setTaxRate( $taxrate ); |
|
| 837 | 837 | |
| 838 | 838 | if( isset( $taxes[$name][$taxrate] ) ) { |
| 839 | 839 | $taxes[$name][$taxrate]->addItem( $price ); |
@@ -306,8 +306,7 @@ |
||
| 306 | 306 | if( empty( $search->getSortations() ) && ( $attribute = reset( $attributes ) ) !== false ) |
| 307 | 307 | { |
| 308 | 308 | $search = ( clone $search )->setSortations( [$search->sort( '+', $attribute->getCode() )] ); |
| 309 | - } |
|
| 310 | - elseif( !empty( $search->getSortations() ) ) |
|
| 309 | + } elseif( !empty( $search->getSortations() ) ) |
|
| 311 | 310 | { |
| 312 | 311 | $names = $search->translate( $search->getSortations(), [], $funcs ); |
| 313 | 312 | $cols = $search->translate( $search->getSortations(), $translations, $funcs ); |
@@ -60,8 +60,7 @@ |
||
| 60 | 60 | $sort = 'mindte_ft.RANK'; |
| 61 | 61 | |
| 62 | 62 | $func = $this->getFunctionRelevance(); |
| 63 | - } |
|
| 64 | - else |
|
| 63 | + } else |
|
| 65 | 64 | { |
| 66 | 65 | $search = ':site AND mindte."langid" = $1 AND CHARINDEX( $2, content )'; |
| 67 | 66 | $sort = '-CHARINDEX( $2, content )'; |
@@ -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 |