@@ -385,8 +385,7 @@ |
||
385 | 385 | */ |
386 | 386 | $path = 'mshop/coupon/manager/insert'; |
387 | 387 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
388 | - } |
|
389 | - else |
|
388 | + } else |
|
390 | 389 | { |
391 | 390 | /** mshop/coupon/manager/update/mysql |
392 | 391 | * Updates an existing coupon record in the database |
@@ -519,8 +519,7 @@ |
||
519 | 519 | */ |
520 | 520 | $path = 'mshop/order/manager/insert'; |
521 | 521 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
522 | - } |
|
523 | - else |
|
522 | + } else |
|
524 | 523 | { |
525 | 524 | /** mshop/order/manager/update/mysql |
526 | 525 | * Updates an existing order record in the database |
@@ -478,8 +478,7 @@ |
||
478 | 478 | */ |
479 | 479 | $path = 'mshop/attribute/manager/insert'; |
480 | 480 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
481 | - } |
|
482 | - else |
|
481 | + } else |
|
483 | 482 | { |
484 | 483 | /** mshop/attribute/manager/update/mysql |
485 | 484 | * Updates an existing attribute record in the database |
@@ -799,9 +799,12 @@ discard block |
||
799 | 799 | |
800 | 800 | foreach( $sitePath as $siteId ) |
801 | 801 | { |
802 | - try { |
|
802 | + try |
|
803 | + { |
|
803 | 804 | $path = $this->createTreeManager( $siteId )->getPath( $id ); |
804 | - } catch( \Exception $e ) { |
|
805 | + } |
|
806 | + catch( \Exception $e ) |
|
807 | + { |
|
805 | 808 | continue; |
806 | 809 | } |
807 | 810 | |
@@ -845,9 +848,12 @@ discard block |
||
845 | 848 | |
846 | 849 | foreach( $sitePath as $siteId ) |
847 | 850 | { |
848 | - try { |
|
851 | + try |
|
852 | + { |
|
849 | 853 | $node = $this->createTreeManager( $siteId )->getNode( $id, $level, $criteria ); |
850 | - } catch( \Aimeos\MW\Tree\Exception $e ) { |
|
854 | + } |
|
855 | + catch( \Aimeos\MW\Tree\Exception $e ) |
|
856 | + { |
|
851 | 857 | continue; |
852 | 858 | } |
853 | 859 | |
@@ -929,8 +935,7 @@ discard block |
||
929 | 935 | if( $child->getParentId() !== $item->getParentId() ) { |
930 | 936 | $this->move( $child->getId(), $item->getParentId(), $child->getParentId() ); |
931 | 937 | } |
932 | - } |
|
933 | - else |
|
938 | + } else |
|
934 | 939 | { |
935 | 940 | $this->insert( $child, $item->getId() ); |
936 | 941 | } |
@@ -1076,8 +1081,7 @@ discard block |
||
1076 | 1081 | */ |
1077 | 1082 | $path = 'mshop/catalog/manager/update-usage'; |
1078 | 1083 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ), false ); |
1079 | - } |
|
1080 | - else |
|
1084 | + } else |
|
1081 | 1085 | { |
1082 | 1086 | /** mshop/catalog/manager/insert-usage/mysql |
1083 | 1087 | * Updates the config, editor, ctime and mtime value of an inserted record |
@@ -1141,8 +1145,7 @@ discard block |
||
1141 | 1145 | { |
1142 | 1146 | $stmt->bind( $idx++, $siteid ); |
1143 | 1147 | $stmt->bind( $idx++, $id, \Aimeos\Base\DB\Statement\Base::PARAM_INT ); |
1144 | - } |
|
1145 | - else |
|
1148 | + } else |
|
1146 | 1149 | { |
1147 | 1150 | $stmt->bind( $idx++, $date ); // ctime |
1148 | 1151 | $stmt->bind( $idx++, $siteid ); |
@@ -759,8 +759,7 @@ |
||
759 | 759 | */ |
760 | 760 | $path = 'mshop/product/manager/insert'; |
761 | 761 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
762 | - } |
|
763 | - else |
|
762 | + } else |
|
764 | 763 | { |
765 | 764 | /** mshop/product/manager/update/mysql |
766 | 765 | * Updates an existing product record in the database |
@@ -416,8 +416,7 @@ |
||
416 | 416 | */ |
417 | 417 | $path = 'mshop/coupon/manager/code/insert'; |
418 | 418 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
419 | - } |
|
420 | - else |
|
419 | + } else |
|
421 | 420 | { |
422 | 421 | /** mshop/coupon/manager/code/update/mysql |
423 | 422 | * Updates an existing coupon code record in the database |