Passed
Push — master ( 48eef7...a2ffc3 )
by Aimeos
05:06
created
controller/jobs/src/Controller/Jobs/Subscription/Process/Renew/Standard.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -207,9 +207,12 @@  discard block
 block discarded – undo
207 207
 		{
208 208
 			foreach( $codes as $code )
209 209
 			{
210
-				try {
210
+				try
211
+				{
211 212
 					$basket->addCoupon( $code );
212
-				} catch( \Aimeos\MShop\Plugin\Provider\Exception | \Aimeos\MShop\Coupon\Exception $e ) {
213
+				}
214
+				catch( \Aimeos\MShop\Plugin\Provider\Exception | \Aimeos\MShop\Coupon\Exception $e )
215
+				{
213 216
 					$basket->deleteCoupon( $code );
214 217
 				}
215 218
 			}
@@ -328,7 +331,9 @@  discard block
 block discarded – undo
328 331
 			$context->setUserId( $baseItem->getCustomerId() );
329 332
 			$context->setGroupIds( $customerItem->getGroups() );
330 333
 		}
331
-		catch( \Exception $e ) {} // Subscription without account
334
+		catch( \Exception $e )
335
+		{
336
+} // Subscription without account
332 337
 
333 338
 		return $context;
334 339
 	}
Please login to merge, or discard this patch.