Passed
Push — master ( dd4a5d...41fa6a )
by Aimeos
04:16
created
Service/View.php 1 patch
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -97,8 +97,7 @@  discard block
 block discarded – undo
97 97
 			&& in_array( 'ROLE_SUPER_ADMIN', (array) $token->getUser()->getRoles() ) )
98 98
 		{
99 99
 			$helper = new \Aimeos\Base\View\Helper\Access\All( $view );
100
-		}
101
-		else
100
+		} else
102 101
 		{
103 102
 			$container = $this->container;
104 103
 
@@ -140,9 +139,12 @@  discard block
 block discarded – undo
140 139
 	 */
141 140
 	protected function addCsrf( \Aimeos\Base\View\Iface $view )
142 141
 	{
143
-		try {
142
+		try
143
+		{
144 144
 			$token = $this->tokenManager->getToken( '_token' )->getValue();
145
-		} catch( \Symfony\Component\HttpFoundation\Exception\SessionNotFoundException $e ) {
145
+		}
146
+		catch( \Symfony\Component\HttpFoundation\Exception\SessionNotFoundException $e )
147
+		{
146 148
 			$token = '';
147 149
 		}
148 150
 
@@ -258,8 +260,7 @@  discard block
 block discarded – undo
258 260
 		{
259 261
 			$i18n = $this->container->get( 'aimeos.i18n' )->get( array( $locale ) );
260 262
 			$translation = $i18n[$locale];
261
-		}
262
-		else
263
+		} else
263 264
 		{
264 265
 			$translation = new \Aimeos\Base\Translation\None( 'en' );
265 266
 		}
Please login to merge, or discard this patch.