Passed
Push — master ( 4c168c...e25a54 )
by Aimeos
04:05
created
src/Service/View.php 1 patch
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@  discard block
 block discarded – undo
96 96
 			&& in_array( 'ROLE_SUPER_ADMIN', (array) $user->getRoles() )
97 97
 		) {
98 98
 			$helper = new \Aimeos\Base\View\Helper\Access\All( $view );
99
-		}
100
-		else
99
+		} else
101 100
 		{
102 101
 			$container = $this->container;
103 102
 
@@ -139,9 +138,12 @@  discard block
 block discarded – undo
139 138
 	 */
140 139
 	protected function addCsrf( \Aimeos\Base\View\Iface $view )
141 140
 	{
142
-		try {
141
+		try
142
+		{
143 143
 			$token = $this->tokenManager->getToken( '_token' )->getValue();
144
-		} catch( \Symfony\Component\HttpFoundation\Exception\SessionNotFoundException $e ) {
144
+		}
145
+		catch( \Symfony\Component\HttpFoundation\Exception\SessionNotFoundException $e )
146
+		{
145 147
 			$token = '';
146 148
 		}
147 149
 
@@ -257,8 +259,7 @@  discard block
 block discarded – undo
257 259
 		{
258 260
 			$i18n = $this->container->get( 'aimeos.i18n' )->get( array( $locale ) );
259 261
 			$translation = $i18n[$locale];
260
-		}
261
-		else
262
+		} else
262 263
 		{
263 264
 			$translation = new \Aimeos\Base\Translation\None( 'en' );
264 265
 		}
Please login to merge, or discard this patch.
src/Service/Context.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,8 +276,7 @@
 block discarded – undo
276 276
 			{
277 277
 				$userid = $user->getId();
278 278
 				$context->setUserId( $userid );
279
-				$context->setGroupIds( function() use ( $context, $userid )
280
-				{
279
+				$context->setGroupIds( function() use ( $context, $userid ) {
281 280
 					$manager = \Aimeos\MShop::create( $context, 'customer' );
282 281
 					return $manager->get( $userid, array( 'customer/group' ) )->getGroups();
283 282
 				} );
Please login to merge, or discard this patch.