@@ -140,8 +140,7 @@ |
||
140 | 140 | foreach( $cond->getExpressions() as $expr ) { |
141 | 141 | $list = array_merge( $list, $this->getProductIds( $expr ) ); |
142 | 142 | } |
143 | - } |
|
144 | - elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) |
|
143 | + } elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) |
|
145 | 144 | { |
146 | 145 | if( $cond->getName() === 'stock.productid' && $cond->getOperator() === '==' ) { |
147 | 146 | $list = array_merge( $list, (array) $cond->getValue() ); |
@@ -173,9 +173,13 @@ |
||
173 | 173 | |
174 | 174 | foreach( $testdata[$domain] as $entry ) |
175 | 175 | { |
176 | - try { |
|
176 | + try |
|
177 | + { |
|
177 | 178 | $manager->save( $manager->create()->fromArray( $entry ), false ); |
178 | - } catch( \Exception $e ) {} // Duplicate entry |
|
179 | + } |
|
180 | + catch( \Exception $e ) |
|
181 | + { |
|
182 | +} // Duplicate entry |
|
179 | 183 | } |
180 | 184 | } |
181 | 185 | } |
@@ -89,8 +89,7 @@ |
||
89 | 89 | |
90 | 90 | $attrManager->save( $item ); |
91 | 91 | $id = $item->getId(); |
92 | - } |
|
93 | - else |
|
92 | + } else |
|
94 | 93 | { |
95 | 94 | $id = $attrItem->getId(); |
96 | 95 | } |
@@ -139,8 +139,7 @@ |
||
139 | 139 | $list[] = $this->escape( '==', $this->getParamType( $item ), $item ); |
140 | 140 | } |
141 | 141 | $params[$i] = join( ',', $list ); |
142 | - } |
|
143 | - else |
|
142 | + } else |
|
144 | 143 | { |
145 | 144 | $params[$i] = $this->escape( '==', $this->getParamType( $params[$i] ), $params[$i] ); |
146 | 145 | } |
@@ -206,8 +206,7 @@ |
||
206 | 206 | */ |
207 | 207 | $path = 'madmin/job/manager/insert'; |
208 | 208 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
209 | - } |
|
210 | - else |
|
209 | + } else |
|
211 | 210 | { |
212 | 211 | /** madmin/job/manager/update/mysql |
213 | 212 | * Updates an existing job record in the database |
@@ -442,8 +442,7 @@ |
||
442 | 442 | */ |
443 | 443 | $path = 'mshop/price/manager/insert'; |
444 | 444 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
445 | - } |
|
446 | - else |
|
445 | + } else |
|
447 | 446 | { |
448 | 447 | /** mshop/price/manager/update/mysql |
449 | 448 | * Updates an existing price record in the database |
@@ -349,8 +349,7 @@ |
||
349 | 349 | */ |
350 | 350 | $path = 'mshop/plugin/manager/insert'; |
351 | 351 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
352 | - } |
|
353 | - else |
|
352 | + } else |
|
354 | 353 | { |
355 | 354 | /** mshop/plugin/manager/update/mysql |
356 | 355 | * Updates an existing plugin 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 |
@@ -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 |