@@ -96,8 +96,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -276,8 +276,7 @@ |
||
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 | } ); |