@@ -97,8 +97,7 @@ discard block |
||
| 97 | 97 | $item->setDateNext( date_create( $item->getTimeCreated() )->add( $interval )->format( 'Y-m-d' ) ); |
| 98 | 98 | |
| 99 | 99 | $manager->saveItem( $item ); |
| 100 | - } |
|
| 101 | - catch( \Exception $e ) |
|
| 100 | + } catch( \Exception $e ) |
|
| 102 | 101 | { |
| 103 | 102 | $msg = 'Unable to process subscription with ID "%1$S": %2$s'; |
| 104 | 103 | $logger->log( sprintf( $msg, $item->getId(), $e->getMessage() ) ); |
@@ -141,8 +140,7 @@ discard block |
||
| 141 | 140 | |
| 142 | 141 | $context->setUserId( $baseItem->getCustomerId() ); |
| 143 | 142 | $context->setGroupIds( $customerItem->getGroups() ); |
| 144 | - } |
|
| 145 | - catch( \Exception $e ) {} // Subscription without account |
|
| 143 | + } catch( \Exception $e ) {} // Subscription without account |
|
| 146 | 144 | |
| 147 | 145 | return $context; |
| 148 | 146 | } |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | { |
| 76 | 76 | $cntl->scale( $item, 'fs-media' ); |
| 77 | 77 | $manager->saveItem( $item ); |
| 78 | - } |
|
| 79 | - catch( \Exception $e ) |
|
| 78 | + } catch( \Exception $e ) |
|
| 80 | 79 | { |
| 81 | 80 | $msg = sprintf( 'Scaling media item "%1$s" failed: %2$s', $item->getId(), $e->getMessage() ); |
| 82 | 81 | $context->getLogger()->log( $msg ); |