@@ -233,8 +233,7 @@ discard block |
||
| 233 | 233 | { |
| 234 | 234 | $this->setAddress( $type, $item->toArray() ); |
| 235 | 235 | $basket->deleteAddress( $type ); |
| 236 | - } |
|
| 237 | - catch( \Exception $e ) |
|
| 236 | + } catch( \Exception $e ) |
|
| 238 | 237 | { |
| 239 | 238 | $logger = $this->getContext()->getLogger(); |
| 240 | 239 | $errors['address'][$type] = $e->getMessage(); |
@@ -264,8 +263,7 @@ discard block |
||
| 264 | 263 | { |
| 265 | 264 | $this->addCoupon( $code ); |
| 266 | 265 | $basket->deleteCoupon( $code, true ); |
| 267 | - } |
|
| 268 | - catch( \Exception $e ) |
|
| 266 | + } catch( \Exception $e ) |
|
| 269 | 267 | { |
| 270 | 268 | $logger = $this->getContext()->getLogger(); |
| 271 | 269 | $errors['coupon'][$code] = $e->getMessage(); |
@@ -314,8 +312,7 @@ discard block |
||
| 314 | 312 | ); |
| 315 | 313 | |
| 316 | 314 | $basket->deleteProduct( $pos ); |
| 317 | - } |
|
| 318 | - catch( \Exception $e ) |
|
| 315 | + } catch( \Exception $e ) |
|
| 319 | 316 | { |
| 320 | 317 | $code = $product->getProductCode(); |
| 321 | 318 | $logger = $this->getContext()->getLogger(); |
@@ -353,8 +350,7 @@ discard block |
||
| 353 | 350 | |
| 354 | 351 | $this->addService( $type, $item->getServiceId(), $attributes ); |
| 355 | 352 | $basket->deleteService( $type ); |
| 356 | - } |
|
| 357 | - catch( \Exception $e ) { ; } // Don't notify the user as appropriate services can be added automatically |
|
| 353 | + } catch( \Exception $e ) { ; } // Don't notify the user as appropriate services can be added automatically |
|
| 358 | 354 | } |
| 359 | 355 | } |
| 360 | 356 | |