@@ -731,9 +731,12 @@ discard block |
||
731 | 731 | |
732 | 732 | foreach( $sitePath as $siteId ) |
733 | 733 | { |
734 | - try { |
|
734 | + try |
|
735 | + { |
|
735 | 736 | $path = $this->createTreeManager( $siteId )->getPath( $id ); |
736 | - } catch( \Exception $e ) { |
|
737 | + } |
|
738 | + catch( \Exception $e ) |
|
739 | + { |
|
737 | 740 | continue; |
738 | 741 | } |
739 | 742 | |
@@ -768,9 +771,12 @@ discard block |
||
768 | 771 | |
769 | 772 | foreach( $sitePath as $siteId ) |
770 | 773 | { |
771 | - try { |
|
774 | + try |
|
775 | + { |
|
772 | 776 | $node = $this->createTreeManager( $siteId )->getNode( $id, $level, $criteria ); |
773 | - } catch( \Exception $e ) { |
|
777 | + } |
|
778 | + catch( \Exception $e ) |
|
779 | + { |
|
774 | 780 | continue; |
775 | 781 | } |
776 | 782 | |
@@ -850,8 +856,7 @@ discard block |
||
850 | 856 | if( $child->getParentId() !== $item->getParentId() ) { |
851 | 857 | $this->moveItem( $child->getId(), $item->getParentId(), $child->getParentId() ); |
852 | 858 | } |
853 | - } |
|
854 | - else |
|
859 | + } else |
|
855 | 860 | { |
856 | 861 | $this->insertItem( $child, $item->getId() ); |
857 | 862 | } |
@@ -1009,8 +1014,7 @@ discard block |
||
1009 | 1014 | */ |
1010 | 1015 | $path = 'mshop/catalog/manager/standard/update-usage'; |
1011 | 1016 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ), false ); |
1012 | - } |
|
1013 | - else |
|
1017 | + } else |
|
1014 | 1018 | { |
1015 | 1019 | /** mshop/catalog/manager/standard/insert-usage/mysql |
1016 | 1020 | * Updates the config, editor, ctime and mtime value of an inserted record |
@@ -1073,8 +1077,7 @@ discard block |
||
1073 | 1077 | { |
1074 | 1078 | $stmt->bind( $idx++, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
1075 | 1079 | $stmt->bind( $idx++, $id, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
1076 | - } |
|
1077 | - else |
|
1080 | + } else |
|
1078 | 1081 | { |
1079 | 1082 | $stmt->bind( $idx++, $date ); // ctime |
1080 | 1083 | $stmt->bind( $idx++, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
@@ -412,8 +412,7 @@ |
||
412 | 412 | */ |
413 | 413 | $path = 'mshop/media/manager/standard/insert'; |
414 | 414 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
415 | - } |
|
416 | - else |
|
415 | + } else |
|
417 | 416 | { |
418 | 417 | /** mshop/media/manager/standard/update/mysql |
419 | 418 | * Updates an existing media record in the database |
@@ -619,8 +619,7 @@ |
||
619 | 619 | */ |
620 | 620 | $path = 'mshop/order/manager/base/standard/insert'; |
621 | 621 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
622 | - } |
|
623 | - else |
|
622 | + } else |
|
624 | 623 | { |
625 | 624 | /** mshop/order/manager/base/standard/update/mysql |
626 | 625 | * Updates an existing order record in the database |
@@ -657,8 +657,7 @@ |
||
657 | 657 | */ |
658 | 658 | $path = 'mshop/order/manager/base/address/standard/insert'; |
659 | 659 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
660 | - } |
|
661 | - else |
|
660 | + } else |
|
662 | 661 | { |
663 | 662 | /** mshop/order/manager/base/address/standard/update/mysql |
664 | 663 | * Updates an existing order record in the database |
@@ -710,8 +710,7 @@ |
||
710 | 710 | */ |
711 | 711 | $path = 'mshop/order/manager/base/product/standard/insert'; |
712 | 712 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
713 | - } |
|
714 | - else |
|
713 | + } else |
|
715 | 714 | { |
716 | 715 | /** mshop/order/manager/base/product/standard/update/mysql |
717 | 716 | * Updates an existing order record in the database |
@@ -533,8 +533,7 @@ |
||
533 | 533 | */ |
534 | 534 | $path = 'mshop/order/manager/base/product/attribute/standard/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/standard/update/mysql |
540 | 539 | * Updates an existing order record in the database |
@@ -628,8 +628,7 @@ |
||
628 | 628 | */ |
629 | 629 | $path = 'mshop/order/manager/base/service/standard/insert'; |
630 | 630 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
631 | - } |
|
632 | - else |
|
631 | + } else |
|
633 | 632 | { |
634 | 633 | /** mshop/order/manager/base/service/standard/update/mysql |
635 | 634 | * Updates an existing order record in the database |
@@ -533,8 +533,7 @@ |
||
533 | 533 | */ |
534 | 534 | $path = 'mshop/order/manager/base/service/attribute/standard/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/service/attribute/standard/update/mysql |
540 | 539 | * Updates an existing order record in the database |
@@ -505,8 +505,7 @@ |
||
505 | 505 | */ |
506 | 506 | $path = 'mshop/order/manager/base/coupon/standard/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/standard/update/mysql |
512 | 511 | * Updates an existing order record in the database |