@@ -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 ); |
@@ -378,8 +378,7 @@ |
||
378 | 378 | */ |
379 | 379 | $path = 'mshop/rule/manager/insert'; |
380 | 380 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
381 | - } |
|
382 | - else |
|
381 | + } else |
|
383 | 382 | { |
384 | 383 | /** mshop/rule/manager/update/mysql |
385 | 384 | * Updates an existing rule 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 |
@@ -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 |
@@ -323,8 +323,7 @@ |
||
323 | 323 | */ |
324 | 324 | $path = 'mshop/review/manager/insert'; |
325 | 325 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
326 | - } |
|
327 | - else |
|
326 | + } else |
|
328 | 327 | { |
329 | 328 | /** mshop/review/manager/update/mysql |
330 | 329 | * Updates an existing review record in the database |