@@ -713,7 +713,7 @@ |
||
713 | 713 | |
714 | 714 | try { |
715 | 715 | $stmt->execute()->finish(); |
716 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
716 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
717 | 717 | } |
718 | 718 | } |
719 | 719 | } |
@@ -682,9 +682,13 @@ |
||
682 | 682 | $stmt->bind( 6, $date ); // mtime |
683 | 683 | $stmt->bind( 7, $siteid ); |
684 | 684 | |
685 | - try { |
|
685 | + try |
|
686 | + { |
|
686 | 687 | $stmt->execute()->finish(); |
687 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
688 | + } |
|
689 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
690 | + { |
|
691 | +; } // Ignore duplicates |
|
688 | 692 | } |
689 | 693 | } |
690 | 694 | } |
@@ -521,7 +521,7 @@ |
||
521 | 521 | |
522 | 522 | try { |
523 | 523 | $stmt->execute()->finish(); |
524 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
524 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
525 | 525 | } |
526 | 526 | } |
527 | 527 |
@@ -463,9 +463,13 @@ |
||
463 | 463 | $stmt->bind( 5, $date ); //mtime |
464 | 464 | $stmt->bind( 6, $siteid ); |
465 | 465 | |
466 | - try { |
|
466 | + try |
|
467 | + { |
|
467 | 468 | $stmt->execute()->finish(); |
468 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
469 | + } |
|
470 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
471 | + { |
|
472 | +; } // Ignore duplicates |
|
469 | 473 | } |
470 | 474 | } |
471 | 475 |
@@ -922,7 +922,7 @@ |
||
922 | 922 | |
923 | 923 | try { |
924 | 924 | $stmt->execute()->finish(); |
925 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
925 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
926 | 926 | } |
927 | 927 | |
928 | 928 |
@@ -778,9 +778,13 @@ |
||
778 | 778 | $stmt->bind( 6, $date ); //mtime |
779 | 779 | $stmt->bind( 7, $siteid ); |
780 | 780 | |
781 | - try { |
|
781 | + try |
|
782 | + { |
|
782 | 783 | $stmt->execute()->finish(); |
783 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
784 | + } |
|
785 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
786 | + { |
|
787 | +; } // Ignore duplicates |
|
784 | 788 | } |
785 | 789 | |
786 | 790 |
@@ -521,7 +521,7 @@ |
||
521 | 521 | |
522 | 522 | try { |
523 | 523 | $stmt->execute()->finish(); |
524 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
524 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
525 | 525 | } |
526 | 526 | } |
527 | 527 |
@@ -463,9 +463,13 @@ |
||
463 | 463 | $stmt->bind( 5, $date ); //mtime |
464 | 464 | $stmt->bind( 6, $siteid ); |
465 | 465 | |
466 | - try { |
|
466 | + try |
|
467 | + { |
|
467 | 468 | $stmt->execute()->finish(); |
468 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
469 | + } |
|
470 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
471 | + { |
|
472 | +; } // Ignore duplicates |
|
469 | 473 | } |
470 | 474 | } |
471 | 475 |
@@ -334,7 +334,8 @@ |
||
334 | 334 | { |
335 | 335 | $stockManager->decrease( [$item->getProductCode() => $how * -1 * $item->getQuantity()], $item->getStockType() ); |
336 | 336 | |
337 | - switch( $item->getType() ) { |
|
337 | + switch( $item->getType() ) |
|
338 | + { |
|
338 | 339 | case 'default': |
339 | 340 | $this->updateStockBundle( $item->getProductId(), $item->getStockType() ); break; |
340 | 341 | case 'select': |
@@ -78,8 +78,7 @@ |
||
78 | 78 | { |
79 | 79 | $this->executeList( $stmtList ); |
80 | 80 | $this->status( 'done' ); |
81 | - } |
|
82 | - else |
|
81 | + } else |
|
83 | 82 | { |
84 | 83 | $this->status( 'OK' ); |
85 | 84 | } |
@@ -100,8 +100,7 @@ discard block |
||
100 | 100 | $search->compare( '==', $prefix . '.lists.domain', $key ), |
101 | 101 | $search->compare( '==', $prefix . '.lists.type', $domain ), |
102 | 102 | ] ); |
103 | - } |
|
104 | - else |
|
103 | + } else |
|
105 | 104 | { |
106 | 105 | $list[] = $search->compare( '==', $prefix . '.lists.domain', $domain ); |
107 | 106 | } |
@@ -109,8 +108,7 @@ discard block |
||
109 | 108 | |
110 | 109 | $expr[] = $search->combine( '||', $list ); |
111 | 110 | $search->setConditions( $search->combine( '&&', $expr ) ); |
112 | - } |
|
113 | - else |
|
111 | + } else |
|
114 | 112 | { |
115 | 113 | $search->setConditions( $search->compare( '==', $prefix . '.lists.parentid', $ids ) ); |
116 | 114 | } |
@@ -167,8 +167,7 @@ discard block |
||
167 | 167 | |
168 | 168 | $this->executeList( $schemaDiff->toSaveSql( $platform ), $rname ); |
169 | 169 | $this->status( 'done' ); |
170 | - } |
|
171 | - else |
|
170 | + } else |
|
172 | 171 | { |
173 | 172 | $this->status( 'OK' ); |
174 | 173 | } |
@@ -207,8 +206,7 @@ discard block |
||
207 | 206 | |
208 | 207 | $this->executeList( $schemaDiff->toSaveSql( $platform ), $rname ); |
209 | 208 | $this->status( 'done' ); |
210 | - } |
|
211 | - else |
|
209 | + } else |
|
212 | 210 | { |
213 | 211 | $this->status( 'OK' ); |
214 | 212 | } |
@@ -229,8 +227,7 @@ discard block |
||
229 | 227 | if( $schema->columnExists( $table, 'typeid' ) ) { |
230 | 228 | $this->execute( $stmt, $rname ); |
231 | 229 | $this->status( 'done' ); |
232 | - } |
|
233 | - else |
|
230 | + } else |
|
234 | 231 | { |
235 | 232 | $this->status( 'OK' ); |
236 | 233 | } |
@@ -110,8 +110,7 @@ |
||
110 | 110 | \Aimeos\MW\Common\Base::checkClass( \Aimeos\MShop\Order\Item\Base\Product\Iface::class, $orderProduct ); |
111 | 111 | $list[] = $orderProduct->getProductId(); |
112 | 112 | } |
113 | - } |
|
114 | - else |
|
113 | + } else |
|
115 | 114 | { |
116 | 115 | \Aimeos\MW\Common\Base::checkClass( \Aimeos\MShop\Order\Item\Base\Product\Iface::class, $value ); |
117 | 116 | $list[] = $value->getProductId(); |