Passed
Push — master ( b4400e...66c2ed )
by Aimeos
04:05
created
tests/Controller/CatalogControllerTest.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Fixtures/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 	/**
12 12
 	 * {@inheritdoc}
13 13
 	 */
14
-	public function registerBundles() : \Traversable|array
14
+	public function registerBundles() : \Traversable | array
15 15
 	{
16 16
 		return array(
17 17
 			new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
Please login to merge, or discard this patch.
src/Service/Locale.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,9 +75,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Composer/ScriptHandler.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -235,14 +235,15 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Command/JobsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Command/ClearCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
  * @package symfony
24 24
  * @subpackage Command
25 25
  */
26
-#[AsCommand(name: 'aimeos:clear', description: 'Clears the content cache')]
26
+#[AsCommand( name: 'aimeos:clear', description: 'Clears the content cache' )]
27 27
 class ClearCommand extends Command
28 28
 {
29 29
 	private $container;
Please login to merge, or discard this patch.
src/Command/SetupCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
  * @package symfony
25 25
  * @subpackage Command
26 26
  */
27
-#[AsCommand(name: 'aimeos:setup', description: 'Initialize or update the Aimeos database tables')]
27
+#[AsCommand( name: 'aimeos:setup', description: 'Initialize or update the Aimeos database tables' )]
28 28
 class SetupCommand extends Command
29 29
 {
30 30
 	private $container;
Please login to merge, or discard this patch.
src/Command/AccountCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
  * @package symfony
25 25
  * @subpackage Command
26 26
  */
27
-#[AsCommand(name: 'aimeos:account', description: 'Creates new (admin) accounts')]
27
+#[AsCommand( name: 'aimeos:account', description: 'Creates new (admin) accounts' )]
28 28
 class AccountCommand extends Command
29 29
 {
30 30
 	private $container;
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,9 +82,12 @@
 block discarded – undo
82 82
 
83 83
 		$manager = \Aimeos\MShop::create( $context, 'customer' );
84 84
 
85
-		try {
85
+		try
86
+		{
86 87
 			$item = $manager->find( $email, ['group'] );
87
-		} catch( \Aimeos\MShop\Exception $e ) {
88
+		}
89
+		catch( \Aimeos\MShop\Exception $e )
90
+		{
88 91
 			$item = $manager->create();
89 92
 		}
90 93
 
Please login to merge, or discard this patch.
src/Service/Context.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 	 */
95 95
 	protected function addCache( \Aimeos\MShop\ContextIface $context ) : \Aimeos\MShop\ContextIface
96 96
 	{
97
-		$cache = (new \Aimeos\MAdmin\Cache\Manager\Standard( $context ))->getCache();
97
+		$cache = ( new \Aimeos\MAdmin\Cache\Manager\Standard( $context ) )->getCache();
98 98
 
99 99
 		return $context->setCache( $cache );
100 100
 	}
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -289,10 +289,11 @@
 block discarded – undo
289 289
 						return $context->user()?->getGroups() ?? [];
290 290
 					} );
291 291
 				}
292
-				catch( \Exception $e ) {} // avoid errors if user is assigned to another site
292
+				catch( \Exception $e )
293
+				{
294
+} // avoid errors if user is assigned to another site
293 295
 			}
294
-		}
295
-		elseif( $this->container->has( 'request_stack' )
296
+		} elseif( $this->container->has( 'request_stack' )
296 297
 			&& ( $request = $this->container->get( 'request_stack' )->getCurrentRequest() ) !== null
297 298
 		) {
298 299
 			$username = $request->getClientIp();
Please login to merge, or discard this patch.