@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | |
43 | 43 | public function testFilterTree() |
44 | - { |
|
44 | + { |
|
45 | 45 | $client = static::createClient(); |
46 | 46 | $crawler = $client->request( 'GET', '/unittest/de/EUR/shop/' ); |
47 | 47 |
@@ -235,14 +235,15 @@ |
||
235 | 235 | { |
236 | 236 | \Composer\Factory::createHttpDownloader( $event->getIO(), $config ) |
237 | 237 | ->get( 'https://api.github.com/graphql', $options ); |
238 | - } |
|
239 | - else |
|
238 | + } else |
|
240 | 239 | { |
241 | 240 | \Composer\Factory::createRemoteFilesystem( $event->getIO(), $config ) |
242 | 241 | ->getContents( 'github.com', 'https://api.github.com/graphql', false, $options ); |
243 | 242 | } |
244 | 243 | } |
245 | - catch( \Exception $e ) {} |
|
244 | + catch( \Exception $e ) |
|
245 | + { |
|
246 | +} |
|
246 | 247 | } |
247 | 248 | |
248 | 249 |
@@ -71,9 +71,12 @@ |
||
71 | 71 | |
72 | 72 | $manager = \Aimeos\MShop::create( $context, 'customer' ); |
73 | 73 | |
74 | - try { |
|
74 | + try |
|
75 | + { |
|
75 | 76 | $item = $manager->find( $email ); |
76 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
77 | + } |
|
78 | + catch( \Aimeos\MShop\Exception $e ) |
|
79 | + { |
|
77 | 80 | $item = $manager->create(); |
78 | 81 | } |
79 | 82 |
@@ -75,9 +75,12 @@ |
||
75 | 75 | { |
76 | 76 | $localeManager = \Aimeos\MShop::create( $context, 'locale' ); |
77 | 77 | |
78 | - try { |
|
78 | + try |
|
79 | + { |
|
79 | 80 | $localeItem = $localeManager->bootstrap( $site, '', '', false, null, true ); |
80 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
81 | + } |
|
82 | + catch( \Aimeos\MShop\Exception $e ) |
|
83 | + { |
|
81 | 84 | $localeItem = $localeManager->create(); |
82 | 85 | } |
83 | 86 |
@@ -93,7 +93,7 @@ |
||
93 | 93 | */ |
94 | 94 | protected function addCache( \Aimeos\MShop\ContextIface $context ) |
95 | 95 | { |
96 | - $cache = (new \Aimeos\MAdmin\Cache\Manager\Standard( $context ))->getCache(); |
|
96 | + $cache = ( new \Aimeos\MAdmin\Cache\Manager\Standard( $context ) )->getCache(); |
|
97 | 97 | |
98 | 98 | return $context->setCache( $cache ); |
99 | 99 | } |
@@ -248,8 +248,7 @@ |
||
248 | 248 | $username = $token->getUser()->getUserIdentifier(); |
249 | 249 | $userid = $token->getUser()->getId(); |
250 | 250 | $context->setUserId( $userid ); |
251 | - $context->setGroupIds( function() use ( $context, $userid ) |
|
252 | - { |
|
251 | + $context->setGroupIds( function() use ( $context, $userid ) { |
|
253 | 252 | $manager = \Aimeos\MShop::create( $context, 'customer' ); |
254 | 253 | return $manager->get( $userid, array( 'customer/group' ) )->getGroups(); |
255 | 254 | } ); |
@@ -89,8 +89,7 @@ discard block |
||
89 | 89 | && in_array( 'ROLE_SUPER_ADMIN', (array) $token->getUser()->getRoles() ) ) |
90 | 90 | { |
91 | 91 | $helper = new \Aimeos\Base\View\Helper\Access\All( $view ); |
92 | - } |
|
93 | - else |
|
92 | + } else |
|
94 | 93 | { |
95 | 94 | $fcn = function() use ( $container, $context ) { |
96 | 95 | return $container->get( 'aimeos.support' )->getGroups( $context ); |
@@ -243,8 +242,7 @@ discard block |
||
243 | 242 | { |
244 | 243 | $i18n = $this->container->get( 'aimeos.i18n' )->get( array( $locale ) ); |
245 | 244 | $translation = $i18n[$locale]; |
246 | - } |
|
247 | - else |
|
245 | + } else |
|
248 | 246 | { |
249 | 247 | $translation = new \Aimeos\Base\Translation\None( 'en' ); |
250 | 248 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * {@inheritdoc} |
12 | 12 | */ |
13 | - public function registerBundles() : Traversable|array |
|
13 | + public function registerBundles() : Traversable | array |
|
14 | 14 | { |
15 | 15 | return array( |
16 | 16 | new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), |