@@ -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() ) ); |
@@ -116,8 +116,7 @@ discard block |
||
| 116 | 116 | $listItem = $listMap[$url][$type][$typecode]; |
| 117 | 117 | $refItem = $listItem->getRefItem(); |
| 118 | 118 | unset( $listItems[ $listItem->getId() ] ); |
| 119 | - } |
|
| 120 | - else |
|
| 119 | + } else |
|
| 121 | 120 | { |
| 122 | 121 | $listItem = $listManager->createItem(); |
| 123 | 122 | $refItem = $manager->createItem(); |
@@ -150,8 +149,7 @@ discard block |
||
| 150 | 149 | $data = $this->getObject()->process( $product, $data ); |
| 151 | 150 | |
| 152 | 151 | $manager->commit(); |
| 153 | - } |
|
| 154 | - catch( \Exception $e ) |
|
| 152 | + } catch( \Exception $e ) |
|
| 155 | 153 | { |
| 156 | 154 | $manager->rollback(); |
| 157 | 155 | throw $e; |
@@ -69,8 +69,7 @@ discard block |
||
| 69 | 69 | { |
| 70 | 70 | $item = $propMap[ $list['product.property.value'] ][$typecode]; |
| 71 | 71 | unset( $items[ $item->getId() ] ); |
| 72 | - } |
|
| 73 | - else |
|
| 72 | + } else |
|
| 74 | 73 | { |
| 75 | 74 | $item = $manager->createItem(); |
| 76 | 75 | } |
@@ -84,8 +83,7 @@ discard block |
||
| 84 | 83 | $data = $this->getObject()->process( $product, $data ); |
| 85 | 84 | |
| 86 | 85 | $manager->commit(); |
| 87 | - } |
|
| 88 | - catch( \Exception $e ) |
|
| 86 | + } catch( \Exception $e ) |
|
| 89 | 87 | { |
| 90 | 88 | $manager->rollback(); |
| 91 | 89 | throw $e; |
@@ -127,8 +127,7 @@ discard block |
||
| 127 | 127 | { |
| 128 | 128 | $listItem = $listMap[$code][$typecode]; |
| 129 | 129 | unset( $listItems[ $listItem->getId() ] ); |
| 130 | - } |
|
| 131 | - else |
|
| 130 | + } else |
|
| 132 | 131 | { |
| 133 | 132 | $listItem = $listManager->createItem(); |
| 134 | 133 | } |
@@ -143,8 +142,7 @@ discard block |
||
| 143 | 142 | $data = $this->getObject()->process( $product, $data ); |
| 144 | 143 | |
| 145 | 144 | $manager->commit(); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 145 | + } catch( \Exception $e ) |
|
| 148 | 146 | { |
| 149 | 147 | $manager->rollback(); |
| 150 | 148 | throw $e; |
@@ -145,8 +145,7 @@ discard block |
||
| 145 | 145 | { |
| 146 | 146 | $listItem = $listMap[$catid][$type]; |
| 147 | 147 | unset( $listItems[ $listItem->getId() ] ); |
| 148 | - } |
|
| 149 | - else |
|
| 148 | + } else |
|
| 150 | 149 | { |
| 151 | 150 | $listItem = $listManager->createItem(); |
| 152 | 151 | } |
@@ -160,8 +159,7 @@ discard block |
||
| 160 | 159 | $data = $this->getObject()->process( $product, $data ); |
| 161 | 160 | |
| 162 | 161 | $manager->commit(); |
| 163 | - } |
|
| 164 | - catch( \Exception $e ) |
|
| 162 | + } catch( \Exception $e ) |
|
| 165 | 163 | { |
| 166 | 164 | $manager->rollback(); |
| 167 | 165 | throw $e; |
@@ -110,8 +110,7 @@ discard block |
||
| 110 | 110 | $listItem = $listMap[ $list['text.content'] ][$type][$typecode]; |
| 111 | 111 | $refItem = $listItem->getRefItem(); |
| 112 | 112 | unset( $listItems[ $listItem->getId() ] ); |
| 113 | - } |
|
| 114 | - else |
|
| 113 | + } else |
|
| 115 | 114 | { |
| 116 | 115 | $listItem = $listManager->createItem(); |
| 117 | 116 | $refItem = $manager->createItem(); |
@@ -142,8 +141,7 @@ discard block |
||
| 142 | 141 | $data = $this->getObject()->process( $product, $data ); |
| 143 | 142 | |
| 144 | 143 | $manager->commit(); |
| 145 | - } |
|
| 146 | - catch( \Exception $e ) |
|
| 144 | + } catch( \Exception $e ) |
|
| 147 | 145 | { |
| 148 | 146 | $manager->rollback(); |
| 149 | 147 | throw $e; |
@@ -131,8 +131,7 @@ |
||
| 131 | 131 | $data = $this->getObject()->process( $product, $data ); |
| 132 | 132 | |
| 133 | 133 | $manager->commit(); |
| 134 | - } |
|
| 135 | - catch( \Exception $e ) |
|
| 134 | + } catch( \Exception $e ) |
|
| 136 | 135 | { |
| 137 | 136 | $manager->rollback(); |
| 138 | 137 | throw $e; |