@@ -683,8 +683,7 @@ |
||
| 683 | 683 | { |
| 684 | 684 | $view->errors = array_merge( $view->get( 'errors', [] ), [$e->getMessage()] ); |
| 685 | 685 | return $this->log( $e ); |
| 686 | - } |
|
| 687 | - elseif( $e instanceof \Aimeos\MShop\Exception ) |
|
| 686 | + } elseif( $e instanceof \Aimeos\MShop\Exception ) |
|
| 688 | 687 | { |
| 689 | 688 | $view->errors = array_merge( $view->get( 'errors', [] ), [$i18n->dt( 'mshop', $e->getMessage() )] ); |
| 690 | 689 | return $this->log( $e ); |
@@ -278,8 +278,7 @@ |
||
| 278 | 278 | { |
| 279 | 279 | $propItem = $propItems[$entry['media.property.id']]; |
| 280 | 280 | unset( $propItems[$entry['media.property.id']] ); |
| 281 | - } |
|
| 282 | - else |
|
| 281 | + } else |
|
| 283 | 282 | { |
| 284 | 283 | $propItem = $propManager->create(); |
| 285 | 284 | } |
@@ -278,8 +278,7 @@ |
||
| 278 | 278 | { |
| 279 | 279 | $propItem = $propItems[$entry['price.property.id']]; |
| 280 | 280 | unset( $propItems[$entry['price.property.id']] ); |
| 281 | - } |
|
| 282 | - else |
|
| 281 | + } else |
|
| 283 | 282 | { |
| 284 | 283 | $propItem = $propManager->create(); |
| 285 | 284 | } |
@@ -271,8 +271,7 @@ |
||
| 271 | 271 | { |
| 272 | 272 | $propItem = $propItems[$entry['attribute.property.id']]; |
| 273 | 273 | unset( $propItems[$entry['attribute.property.id']] ); |
| 274 | - } |
|
| 275 | - else |
|
| 274 | + } else |
|
| 276 | 275 | { |
| 277 | 276 | $propItem = $manager->create(); |
| 278 | 277 | } |
@@ -48,8 +48,7 @@ |
||
| 48 | 48 | ] ) )->slice( 0, 1 ); |
| 49 | 49 | |
| 50 | 50 | $siteItem = $siteManager->search( $search )->first(); |
| 51 | - } |
|
| 52 | - else |
|
| 51 | + } else |
|
| 53 | 52 | { |
| 54 | 53 | $siteItem = $siteManager->find( $view->param( 'site', 'default' ) ); |
| 55 | 54 | } |
@@ -278,8 +278,7 @@ |
||
| 278 | 278 | { |
| 279 | 279 | $propItem = $propItems[$entry['media.property.id']]; |
| 280 | 280 | unset( $propItems[$entry['media.property.id']] ); |
| 281 | - } |
|
| 282 | - else |
|
| 281 | + } else |
|
| 283 | 282 | { |
| 284 | 283 | $propItem = $propManager->create(); |
| 285 | 284 | } |
@@ -278,8 +278,7 @@ |
||
| 278 | 278 | { |
| 279 | 279 | $propItem = $propItems[$entry['price.property.id']]; |
| 280 | 280 | unset( $propItems[$entry['price.property.id']] ); |
| 281 | - } |
|
| 282 | - else |
|
| 281 | + } else |
|
| 283 | 282 | { |
| 284 | 283 | $propItem = $propManager->create(); |
| 285 | 284 | } |
@@ -445,8 +445,7 @@ |
||
| 445 | 445 | $listItem = \Aimeos\MShop::create( $context, 'product' )->createListItem(); |
| 446 | 446 | $item = $item->addListItem( 'attribute', $listItem->setType( 'custom' ), $attrItem ); |
| 447 | 447 | } |
| 448 | - } |
|
| 449 | - else |
|
| 448 | + } else |
|
| 450 | 449 | { |
| 451 | 450 | if( ( $litem = $item->getListItem( 'attribute', 'custom', $attrItem->getId(), false ) ) !== null ) { |
| 452 | 451 | $item = $item->deleteListItem( 'attribute', $litem ); |
@@ -407,7 +407,7 @@ |
||
| 407 | 407 | $data['time'] = $fs->time( $data['attribute.code'] ); |
| 408 | 408 | $data['size'] = $fs->size( $data['attribute.code'] ); |
| 409 | 409 | } |
| 410 | - catch( \Exception $e ) { ; } // Show product even if file isn't available any more |
|
| 410 | + catch( \Exception $e ) {; } // Show product even if file isn't available any more |
|
| 411 | 411 | } |
| 412 | 412 | |
| 413 | 413 | return $data; |
@@ -407,7 +407,9 @@ |
||
| 407 | 407 | $data['time'] = $fs->time( $data['attribute.code'] ); |
| 408 | 408 | $data['size'] = $fs->size( $data['attribute.code'] ); |
| 409 | 409 | } |
| 410 | - catch( \Exception $e ) { ; } // Show product even if file isn't available any more |
|
| 410 | + catch( \Exception $e ) |
|
| 411 | + { |
|
| 412 | +; } // Show product even if file isn't available any more |
|
| 411 | 413 | } |
| 412 | 414 | |
| 413 | 415 | return $data; |