Passed
Pull Request — master (#49)
by Laurent
06:18
created
Service/View.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@  discard block
 block discarded – undo
89 89
 			&& in_array( 'ROLE_SUPER_ADMIN', (array) $token->getUser()->getRoles() ) )
90 90
 		{
91 91
 			$helper = new \Aimeos\MW\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 );
@@ -244,8 +243,7 @@  discard block
 block discarded – undo
244 243
 		{
245 244
 			$i18n = $this->container->get( 'aimeos.i18n' )->get( array( $locale ) );
246 245
 			$translation = $i18n[$locale];
247
-		}
248
-		else
246
+		} else
249 247
 		{
250 248
 			$translation = new \Aimeos\MW\Translation\None( 'en' );
251 249
 		}
Please login to merge, or discard this patch.
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->createItem();
82 85
 		}
83 86
 
Please login to merge, or discard this patch.
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.
Command/AccountCommand.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,9 +71,12 @@
 block discarded – undo
71 71
 
72 72
 		$manager = \Aimeos\MShop::create( $context, 'customer' );
73 73
 
74
-		try {
74
+		try
75
+		{
75 76
 			$item = $manager->findItem( $email );
76
-		} catch( \Aimeos\MShop\Exception $e ) {
77
+		}
78
+		catch( \Aimeos\MShop\Exception $e )
79
+		{
77 80
 			$item = $manager->createItem();
78 81
 		}
79 82
 
Please login to merge, or discard this patch.
Service/Context.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,8 +216,7 @@
 block discarded – undo
216 216
 			$username = $token->getUser()->getUsername();
217 217
 			$userid = $token->getUser()->getId();
218 218
 			$context->setUserId( $userid );
219
-			$context->setGroupIds( function() use ( $context, $userid )
220
-			{
219
+			$context->setGroupIds( function() use ( $context, $userid ) {
221 220
 				$manager = \Aimeos\MShop::create( $context, 'customer' );
222 221
 				return $manager->getItem( $userid, array( 'customer/group' ) )->getGroups();
223 222
 			} );
Please login to merge, or discard this patch.
Command/JobsCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -69,18 +69,18 @@
 block discarded – undo
69 69
 					\Aimeos\Controller\Jobs::create( $context, $aimeos, $jobname )->run();
70 70
 
71 71
 					$container = $this->getContainer();
72
-					$mailers = array_keys($container->getParameter('swiftmailer.mailers'));
73
-					foreach ($mailers as $name) {
74
-						if (method_exists($container, 'initialized') ? $container->initialized(sprintf('swiftmailer.mailer.%s', $name)) : true) {
75
-							if ($container->getParameter(sprintf('swiftmailer.mailer.%s.spool.enabled', $name))) {
76
-								$mailer = $container->get(sprintf('swiftmailer.mailer.%s', $name));
72
+					$mailers = array_keys( $container->getParameter( 'swiftmailer.mailers' ) );
73
+					foreach( $mailers as $name ) {
74
+						if( method_exists( $container, 'initialized' ) ? $container->initialized( sprintf( 'swiftmailer.mailer.%s', $name ) ) : true ) {
75
+							if( $container->getParameter( sprintf( 'swiftmailer.mailer.%s.spool.enabled', $name ) ) ) {
76
+								$mailer = $container->get( sprintf( 'swiftmailer.mailer.%s', $name ) );
77 77
 								$transport = $mailer->getTransport();
78
-								if ($transport instanceof \Swift_Transport_SpoolTransport) {
78
+								if( $transport instanceof \Swift_Transport_SpoolTransport ) {
79 79
 									$spool = $transport->getSpool();
80
-									if ($spool instanceof \Swift_MemorySpool) {
80
+									if( $spool instanceof \Swift_MemorySpool ) {
81 81
 										$output->writeln( sprintf( 'Flushing queue "<info>%s</info>"', $name ) );
82 82
 										// may throw
83
-										$spool->flushQueue($container->get(sprintf('swiftmailer.mailer.%s.transport.real', $name)));
83
+										$spool->flushQueue( $container->get( sprintf( 'swiftmailer.mailer.%s.transport.real', $name ) ) );
84 84
 									}
85 85
 								}
86 86
 							}
Please login to merge, or discard this patch.