@@ -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 | } |
@@ -239,9 +239,13 @@ |
||
239 | 239 | $localeItem->setPosition( $dataset['pos'] ); |
240 | 240 | $localeItem->setStatus( $dataset['status'] ); |
241 | 241 | |
242 | - try { |
|
242 | + try |
|
243 | + { |
|
243 | 244 | $localeItemManager->save( $localeItem ); |
244 | - } catch( \Aimeos\MW\DB\Exception $e ) {; } // if locale combination was already available |
|
245 | + } |
|
246 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
247 | + { |
|
248 | +; } // if locale combination was already available |
|
245 | 249 | } |
246 | 250 | |
247 | 251 | $this->status( 'done' ); |
@@ -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 | } |
@@ -156,9 +156,12 @@ discard block |
||
156 | 156 | */ |
157 | 157 | public function create( array $values = [] ) : \Aimeos\MShop\Common\Item\Iface |
158 | 158 | { |
159 | - try { |
|
159 | + try |
|
160 | + { |
|
160 | 161 | $values['log.siteid'] = $this->getContext()->getLocale()->getSiteId(); |
161 | - } catch( \Exception $e ) { |
|
162 | + } |
|
163 | + catch( \Exception $e ) |
|
164 | + { |
|
162 | 165 | $values['log.siteid'] = null; |
163 | 166 | } |
164 | 167 | |
@@ -181,9 +184,12 @@ discard block |
||
181 | 184 | |
182 | 185 | $context = $this->getContext(); |
183 | 186 | |
184 | - try { |
|
187 | + try |
|
188 | + { |
|
185 | 189 | $siteid = $context->getLocale()->getSiteId(); |
186 | - } catch( \Exception $e ) { |
|
190 | + } |
|
191 | + catch( \Exception $e ) |
|
192 | + { |
|
187 | 193 | $siteid = ''; |
188 | 194 | } |
189 | 195 | |
@@ -235,8 +241,7 @@ discard block |
||
235 | 241 | */ |
236 | 242 | $path = 'madmin/log/manager/insert'; |
237 | 243 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
238 | - } |
|
239 | - else |
|
244 | + } else |
|
240 | 245 | { |
241 | 246 | /** madmin/log/manager/update/mysql |
242 | 247 | * Updates an existing log record in the database |
@@ -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 |