@@ -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 ); |
@@ -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 |
@@ -305,8 +305,7 @@ discard block |
||
305 | 305 | foreach( $columns as $name ) { |
306 | 306 | $names .= '"' . $name . '", '; $values .= '?, '; |
307 | 307 | } |
308 | - } |
|
309 | - else |
|
308 | + } else |
|
310 | 309 | { |
311 | 310 | foreach( $columns as $name ) { |
312 | 311 | $names .= '"' . $name . '" = ?, '; |
@@ -691,11 +690,9 @@ discard block |
||
691 | 690 | |
692 | 691 | if( isset( $attributes[$prefix] ) && $attributes[$prefix] instanceof $iface ) { |
693 | 692 | return $attributes[$prefix]->getInternalDeps(); |
694 | - } |
|
695 | - elseif( isset( $attributes[$name] ) && $attributes[$name] instanceof $iface ) { |
|
693 | + } elseif( isset( $attributes[$name] ) && $attributes[$name] instanceof $iface ) { |
|
696 | 694 | return $attributes[$name]->getInternalDeps(); |
697 | - } |
|
698 | - else if( isset( $attributes['id'] ) && $attributes['id'] instanceof $iface ) { |
|
695 | + } else if( isset( $attributes['id'] ) && $attributes['id'] instanceof $iface ) { |
|
699 | 696 | return $attributes['id']->getInternalDeps(); |
700 | 697 | } |
701 | 698 |
@@ -178,8 +178,7 @@ discard block |
||
178 | 178 | $search->compare( '==', $prefix . '.lists.domain', $key ), |
179 | 179 | $search->compare( '==', $prefix . '.lists.type', $domain ), |
180 | 180 | ] ); |
181 | - } |
|
182 | - else |
|
181 | + } else |
|
183 | 182 | { |
184 | 183 | $list[] = $search->compare( '==', $prefix . '.lists.domain', $domain ); |
185 | 184 | } |
@@ -187,8 +186,7 @@ discard block |
||
187 | 186 | |
188 | 187 | $expr[] = $search->or( $list ); |
189 | 188 | $search->setConditions( $search->and( $expr ) ); |
190 | - } |
|
191 | - else |
|
189 | + } else |
|
192 | 190 | { |
193 | 191 | $search->setConditions( $search->compare( '==', $prefix . '.lists.parentid', $ids ) ); |
194 | 192 | } |