@@ -60,8 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | $this->execute( $this->sql ); |
62 | 62 | $this->status( 'done' ); |
63 | - } |
|
64 | - else |
|
63 | + } else |
|
65 | 64 | { |
66 | 65 | $this->status( 'OK' ); |
67 | 66 | } |
@@ -62,8 +62,7 @@ |
||
62 | 62 | { |
63 | 63 | $this->executeList( $stmts ); |
64 | 64 | $this->status( 'done' ); |
65 | - } |
|
66 | - else |
|
65 | + } else |
|
67 | 66 | { |
68 | 67 | $this->status( 'OK' ); |
69 | 68 | } |
@@ -86,10 +86,14 @@ |
||
86 | 86 | $type->setStatus( $dataset['status'] ); |
87 | 87 | } |
88 | 88 | |
89 | - try { |
|
89 | + try |
|
90 | + { |
|
90 | 91 | $domainManager->saveItem( $type ); |
91 | 92 | $num++; |
92 | - } catch( \Exception $e ) {; } // if type was already available |
|
93 | + } |
|
94 | + catch( \Exception $e ) |
|
95 | + { |
|
96 | +; } // if type was already available |
|
93 | 97 | } |
94 | 98 | |
95 | 99 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -52,8 +52,7 @@ |
||
52 | 52 | { |
53 | 53 | $this->execute( $this->stmt, 'db-product' ); |
54 | 54 | $this->status( 'done' ); |
55 | - } |
|
56 | - else |
|
55 | + } else |
|
57 | 56 | { |
58 | 57 | $this->status( 'OK' ); |
59 | 58 | } |
@@ -81,8 +81,7 @@ |
||
81 | 81 | } else { |
82 | 82 | $this->status( 'OK' ); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->status( 'OK' ); |
88 | 87 | } |
@@ -66,7 +66,9 @@ discard block |
||
66 | 66 | $this->removeItems( $item->getId(), 'catalog/lists', 'catalog', 'text' ); |
67 | 67 | $this->removeListItems( $item->getId(), 'catalog/lists', 'product' ); |
68 | 68 | } |
69 | - catch( \Exception $e ) {; } // If no root node was already inserted into the database |
|
69 | + catch( \Exception $e ) |
|
70 | + { |
|
71 | +; } // If no root node was already inserted into the database |
|
70 | 72 | |
71 | 73 | |
72 | 74 | if( $value === '1' ) |
@@ -103,8 +105,7 @@ discard block |
||
103 | 105 | } |
104 | 106 | |
105 | 107 | $this->status( 'added' ); |
106 | - } |
|
107 | - else |
|
108 | + } else |
|
108 | 109 | { |
109 | 110 | $this->status( 'removed' ); |
110 | 111 | } |
@@ -89,8 +89,7 @@ |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | $this->status( 'added' ); |
92 | - } |
|
93 | - else |
|
92 | + } else |
|
94 | 93 | { |
95 | 94 | $this->status( 'removed' ); |
96 | 95 | } |
@@ -165,7 +165,7 @@ |
||
165 | 165 | foreach( $bundleItems as $bundleItem ) |
166 | 166 | { |
167 | 167 | foreach( $bundleItem->getRefItems( 'product', null, 'default' ) as $item ) { |
168 | - $bundleMap[ $item->getCode() ][] = $bundleItem->getCode(); |
|
168 | + $bundleMap[$item->getCode()][] = $bundleItem->getCode(); |
|
169 | 169 | } |
170 | 170 | } |
171 | 171 |
@@ -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': |
@@ -335,7 +335,7 @@ |
||
335 | 335 | |
336 | 336 | public function testSearchItemsDefault() |
337 | 337 | { |
338 | - $search = $this->object->createSearch( true ); |
|
338 | + $search = $this->object->createSearch( true ); |
|
339 | 339 | $items = $this->object->searchItems( $search ); |
340 | 340 | |
341 | 341 | $this->assertEquals( 0, count( $items ) ); |