Passed
Push — master ( 55b905...061b3a )
by Aimeos
16:33
created
src/Base/Context.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@  discard block
 block discarded – undo
103 103
 			$this->context->setI18n( $this->i18n->get( array( $localeItem->getLanguageId() ) ) );
104 104
 
105 105
 			$config->apply( $localeItem->getSiteItem()->getConfig() );
106
-		}
107
-		else
106
+		} else
108 107
 		{
109 108
 			$this->context->setI18n( $this->i18n->get( $this->languages( $this->context ) ) );
110 109
 		}
@@ -313,9 +312,12 @@  discard block
 block discarded – undo
313 312
 		if( $userid = Auth::guard( $guard )->id() )
314 313
 		{
315 314
 			$context->setGroupIds( function() use ( $context, $userid ) {
316
-				try {
315
+				try
316
+				{
317 317
 					return \Aimeos\MShop::create( $context, 'customer' )->get( $userid, ['customer/group'] )->getGroups();
318
-				} catch( \Exception $e ) {
318
+				}
319
+				catch( \Exception $e )
320
+				{
319 321
 					return [];
320 322
 				}
321 323
 			} );
Please login to merge, or discard this patch.