| @@ -129,8 +129,7 @@ | ||
| 129 | 129 | $remaining = $this->getObject()->process( $product, $data ); | 
| 130 | 130 | |
| 131 | 131 | $manager->commit(); | 
| 132 | - } | |
| 133 | - catch( \Exception $e ) | |
| 132 | + } catch( \Exception $e ) | |
| 134 | 133 |  		{ | 
| 135 | 134 | $manager->rollback(); | 
| 136 | 135 | throw $e; | 
| @@ -66,8 +66,7 @@ | ||
| 66 | 66 | try | 
| 67 | 67 |  				{ | 
| 68 | 68 | $serviceManager->getProvider( $serviceItem )->updateAsync(); | 
| 69 | - } | |
| 70 | - catch( \Exception $e ) | |
| 69 | + } catch( \Exception $e ) | |
| 71 | 70 |  				{ | 
| 72 | 71 | $msg = 'Executing updateAsyc() of "%1$s" failed: %2$s'; | 
| 73 | 72 | $context->getLogger()->log( sprintf( $msg, $serviceItem->getProvider(), $e->getMessage() ) ); | 
| @@ -120,8 +120,7 @@ discard block | ||
| 120 | 120 |  					{ | 
| 121 | 121 | $capdate = date( 'Y-m-d 00:00:00', time() - 86400 * $capDays ); | 
| 122 | 122 | $expr[] = $orderSearch->compare( '<=', 'order.datepayment', $capdate ); | 
| 123 | - } | |
| 124 | - else | |
| 123 | + } else | |
| 125 | 124 |  					{ | 
| 126 | 125 | $expr[] = $orderSearch->compare( '==', 'order.statusdelivery', $status ); | 
| 127 | 126 | } | 
| @@ -144,8 +143,7 @@ discard block | ||
| 144 | 143 | try | 
| 145 | 144 |  							{ | 
| 146 | 145 | $serviceProvider->capture( $orderItem ); | 
| 147 | - } | |
| 148 | - catch( \Exception $e ) | |
| 146 | + } catch( \Exception $e ) | |
| 149 | 147 |  							{ | 
| 150 | 148 | $str = 'Error while capturing payment for order with ID "%1$s": %2$s'; | 
| 151 | 149 | $context->getLogger()->log( sprintf( $str, $orderItem->getId(), $e->getMessage() ) ); | 
| @@ -157,8 +155,7 @@ discard block | ||
| 157 | 155 | $orderSearch->setSlice( $orderStart ); | 
| 158 | 156 | } | 
| 159 | 157 | while( $orderCount >= $orderSearch->getSliceSize() ); | 
| 160 | - } | |
| 161 | - catch( \Exception $e ) | |
| 158 | + } catch( \Exception $e ) | |
| 162 | 159 |  				{ | 
| 163 | 160 | $str = 'Error while capturing payments for service with ID "%1$s": %2$s'; | 
| 164 | 161 | $context->getLogger()->log( sprintf( $str, $serviceItem->getId(), $e->getMessage() ) ); | 
| @@ -112,8 +112,7 @@ discard block | ||
| 112 | 112 |  							{ | 
| 113 | 113 | $serviceProvider->process( $orderItem ); | 
| 114 | 114 | $orderManager->saveItem( $orderItem ); | 
| 115 | - } | |
| 116 | - catch( \Exception $e ) | |
| 115 | + } catch( \Exception $e ) | |
| 117 | 116 |  							{ | 
| 118 | 117 | $str = 'Error while processing order with ID "%1$s": %2$s'; | 
| 119 | 118 | $context->getLogger()->log( sprintf( $str, $orderItem->getId(), $e->getMessage() ) ); | 
| @@ -125,8 +124,7 @@ discard block | ||
| 125 | 124 | $orderSearch->setSlice( $orderStart ); | 
| 126 | 125 | } | 
| 127 | 126 | while( $orderCount >= $orderSearch->getSliceSize() ); | 
| 128 | - } | |
| 129 | - catch( \Exception $e ) | |
| 127 | + } catch( \Exception $e ) | |
| 130 | 128 |  				{ | 
| 131 | 129 | $str = 'Error while processing service with ID "%1$s": %2$s'; | 
| 132 | 130 | $context->getLogger()->log( sprintf( $str, $serviceItem->getId(), $e->getMessage() ) ); | 
| @@ -351,8 +351,7 @@ discard block | ||
| 351 | 351 | } | 
| 352 | 352 | |
| 353 | 353 | $container->close(); | 
| 354 | - } | |
| 355 | - catch( \Exception $e ) | |
| 354 | + } catch( \Exception $e ) | |
| 356 | 355 |  		{ | 
| 357 | 356 | $logger->log( 'Product import error: ' . $e->getMessage() ); | 
| 358 | 357 | $logger->log( $e->getTraceAsString() ); | 
| @@ -537,8 +536,7 @@ discard block | ||
| 537 | 536 | $remaining = $processor->process( $product, $list ); | 
| 538 | 537 | |
| 539 | 538 | $manager->commit(); | 
| 540 | - } | |
| 541 | - catch( \Exception $e ) | |
| 539 | + } catch( \Exception $e ) | |
| 542 | 540 |  			{ | 
| 543 | 541 | $manager->rollback(); | 
| 544 | 542 | |
| @@ -129,8 +129,7 @@ | ||
| 129 | 129 | $remaining = $this->getObject()->process( $product, $data ); | 
| 130 | 130 | |
| 131 | 131 | $manager->commit(); | 
| 132 | - } | |
| 133 | - catch( \Exception $e ) | |
| 132 | + } catch( \Exception $e ) | |
| 134 | 133 |  		{ | 
| 135 | 134 | $manager->rollback(); | 
| 136 | 135 | throw $e; | 
| @@ -129,8 +129,7 @@ | ||
| 129 | 129 | $remaining = $this->getObject()->process( $product, $data ); | 
| 130 | 130 | |
| 131 | 131 | $manager->commit(); | 
| 132 | - } | |
| 133 | - catch( \Exception $e ) | |
| 132 | + } catch( \Exception $e ) | |
| 134 | 133 |  		{ | 
| 135 | 134 | $manager->rollback(); | 
| 136 | 135 | throw $e; | 
| @@ -129,8 +129,7 @@ | ||
| 129 | 129 | $remaining = $this->getObject()->process( $product, $data ); | 
| 130 | 130 | |
| 131 | 131 | $manager->commit(); | 
| 132 | - } | |
| 133 | - catch( \Exception $e ) | |
| 132 | + } catch( \Exception $e ) | |
| 134 | 133 |  		{ | 
| 135 | 134 | $manager->rollback(); | 
| 136 | 135 | throw $e; | 
| @@ -129,8 +129,7 @@ | ||
| 129 | 129 | $remaining = $this->getObject()->process( $product, $data ); | 
| 130 | 130 | |
| 131 | 131 | $manager->commit(); | 
| 132 | - } | |
| 133 | - catch( \Exception $e ) | |
| 132 | + } catch( \Exception $e ) | |
| 134 | 133 |  		{ | 
| 135 | 134 | $manager->rollback(); | 
| 136 | 135 | throw $e; |