@@ -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 | $helper = new \Aimeos\Base\View\Helper\Access\Standard( $view, function() use ( $context ) { |
103 | 102 | return $context->groups(); |
@@ -135,9 +134,12 @@ discard block |
||
135 | 134 | */ |
136 | 135 | protected function addCsrf( \Aimeos\Base\View\Iface $view ) |
137 | 136 | { |
138 | - try { |
|
137 | + try |
|
138 | + { |
|
139 | 139 | $token = $this->tokenManager->getToken( '_token' )->getValue(); |
140 | - } catch( \Symfony\Component\HttpFoundation\Exception\SessionNotFoundException $e ) { |
|
140 | + } |
|
141 | + catch( \Symfony\Component\HttpFoundation\Exception\SessionNotFoundException $e ) |
|
142 | + { |
|
141 | 143 | $token = ''; |
142 | 144 | } |
143 | 145 | |
@@ -253,8 +255,7 @@ discard block |
||
253 | 255 | { |
254 | 256 | $i18n = $this->container->get( 'aimeos.i18n' )->get( array( $locale ) ); |
255 | 257 | $translation = $i18n[$locale]; |
256 | - } |
|
257 | - else |
|
258 | + } else |
|
258 | 259 | { |
259 | 260 | $translation = new \Aimeos\Base\Translation\None( 'en' ); |
260 | 261 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @package symfony |
24 | 24 | * @subpackage Command |
25 | 25 | */ |
26 | -#[AsCommand(name: 'aimeos:jobs', description: 'Executes the job controllers')] |
|
26 | +#[AsCommand( name: 'aimeos:jobs', description: 'Executes the job controllers' )] |
|
27 | 27 | class JobsCommand extends Command |
28 | 28 | { |
29 | 29 | private $container; |
@@ -135,8 +135,8 @@ discard block |
||
135 | 135 | $langids = $langManager->search( $langManager->filter( true ) )->keys()->toArray(); |
136 | 136 | $i18n = $this->container->get( 'aimeos.i18n' )->get( $langids ); |
137 | 137 | |
138 | - $context->setSession(new \Aimeos\Base\Session\None()); |
|
139 | - $context->setCache(new \Aimeos\Base\Cache\None()); |
|
138 | + $context->setSession( new \Aimeos\Base\Session\None() ); |
|
139 | + $context->setCache( new \Aimeos\Base\Cache\None() ); |
|
140 | 140 | |
141 | 141 | $context->setEditor( 'aimeos:jobs' ); |
142 | 142 | $context->setView( $view ); |