| @@ -316,7 +316,7 @@ | ||
| 316 | 316 | $this->object()->addService( $service, $attributes ); | 
| 317 | 317 | $basket->deleteService( $type ); | 
| 318 | 318 | } | 
| 319 | -				catch( \Exception $e ) { ; } // Don't notify the user as appropriate services can be added automatically | |
| 319 | +				catch( \Exception $e ) {; } // Don't notify the user as appropriate services can be added automatically | |
| 320 | 320 | } | 
| 321 | 321 | } | 
| 322 | 322 | |
| @@ -316,7 +316,9 @@ | ||
| 316 | 316 | $this->object()->addService( $service, $attributes ); | 
| 317 | 317 | $basket->deleteService( $type ); | 
| 318 | 318 | } | 
| 319 | -				catch( \Exception $e ) { ; } // Don't notify the user as appropriate services can be added automatically | |
| 319 | + catch( \Exception $e ) | |
| 320 | +				{ | |
| 321 | +; } // Don't notify the user as appropriate services can be added automatically | |
| 320 | 322 | } | 
| 321 | 323 | } | 
| 322 | 324 | |
| @@ -197,9 +197,11 @@ | ||
| 197 | 197 | throw new \Aimeos\Controller\Frontend\Basket\Exception( sprintf( $msg, $productItem->getId() ) ); | 
| 198 | 198 | } | 
| 199 | 199 | |
| 200 | - if( empty( $items ) && $requireVariant != false ) // count == 0 | |
| 200 | +		if( empty( $items ) && $requireVariant != false ) { | |
| 201 | + // count == 0 | |
| 201 | 202 |  		{ | 
| 202 | 203 | $msg = $context->translate( 'controller/frontend', 'No article found for selected attributes and product ID "%1$s"' ); | 
| 204 | + } | |
| 203 | 205 | throw new \Aimeos\Controller\Frontend\Basket\Exception( sprintf( $msg, $productItem->getId() ) ); | 
| 204 | 206 | } | 
| 205 | 207 | |
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 | interface Iface | 
| 21 | 21 |  { | 
| 22 | 22 | public const ONE = 1; | 
| 23 | - public const LIST = 2; | |
| 23 | + public const list = 2; | |
| 24 | 24 | public const TREE = 3; | 
| 25 | 25 | |
| 26 | 26 | /** | 
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 | interface Iface | 
| 21 | 21 |  { | 
| 22 | 22 | public const ONE = 1; | 
| 23 | - public const LIST = 2; | |
| 23 | + public const list = 2; | |
| 24 | 24 | public const TREE = 3; | 
| 25 | 25 | |
| 26 | 26 | /** | 
| @@ -53,8 +53,7 @@ | ||
| 53 | 53 | */ | 
| 54 | 54 | $groupIds = (array) $context->config()->get( 'controller/frontend/customer/groupids', [] ); | 
| 55 | 55 | $this->item = $this->manager->create()->setGroups( $groupIds ); | 
| 56 | - } | |
| 57 | - else | |
| 56 | + } else | |
| 58 | 57 |  		{ | 
| 59 | 58 | $this->item = $this->manager->get( $userid, [], true ); | 
| 60 | 59 | } |