Passed
Branch master (f75e0d)
by Aimeos
06:21
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/list' );
47 47
 
Please login to merge, or discard this patch.
Service/View.php 1 patch
Braces   +10 added lines, -8 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@  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
-			$fcn = function() use ( $container, $context ) {
94
+			$fcn = function() use ( $container, $context )
95
+			{
96 96
 				return $container->get( 'aimeos.support' )->getGroups( $context );
97 97
 			};
98 98
 
@@ -244,8 +244,7 @@  discard block
 block discarded – undo
244 244
 		{
245 245
 			$i18n = $this->container->get( 'aimeos.i18n' )->get( array( $locale ) );
246 246
 			$translation = $i18n[$locale];
247
-		}
248
-		else
247
+		} else
249 248
 		{
250 249
 			$translation = new \Aimeos\MW\Translation\None( 'en' );
251 250
 		}
@@ -300,17 +299,20 @@  discard block
 block discarded – undo
300 299
 	 */
301 300
 	protected function initTwig( \Aimeos\MW\View\Iface $view, \Twig_Environment $twig )
302 301
 	{
303
-		$fcn = function( $key, $default = null ) use ( $view ) {
302
+		$fcn = function( $key, $default = null ) use ( $view )
303
+		{
304 304
 			return $view->config( $key, $default );
305 305
 		};
306 306
 		$twig->addFunction( new \Twig_SimpleFunction( 'aiconfig', $fcn ) );
307 307
 
308
-		$fcn = function( $singular, array $values = array(), $domain = 'client' ) use ( $view ) {
308
+		$fcn = function( $singular, array $values = array(), $domain = 'client' ) use ( $view )
309
+		{
309 310
 			return vsprintf( $view->translate( $domain, $singular ), $values );
310 311
 		};
311 312
 		$twig->addFunction( new \Twig_SimpleFunction( 'aitrans', $fcn ) );
312 313
 
313
-		$fcn = function( $singular, $plural, $number, array $values = array(), $domain = 'client' ) use ( $view ) {
314
+		$fcn = function( $singular, $plural, $number, array $values = array(), $domain = 'client' ) use ( $view )
315
+		{
314 316
 			return vsprintf( $view->translate( $domain, $singular, $plural, $number ), $values );
315 317
 		};
316 318
 		$twig->addFunction( new \Twig_SimpleFunction( 'aitransplural', $fcn ) );
Please login to merge, or discard this patch.
Service/Context.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,9 @@
 block discarded – undo
147 147
 	protected function addMailer( \Aimeos\MShop\Context\Item\Iface $context )
148 148
 	{
149 149
 		$container = $this->container;
150
-		$mail = new \Aimeos\MW\Mail\Swift( function() use ( $container) { return $container->get( 'mailer' ); } );
150
+		$mail = new \Aimeos\MW\Mail\Swift( function() use ( $container)
151
+		{
152
+return $container->get( 'mailer' ); } );
151 153
 
152 154
 		return $context->setMail( $mail );
153 155
 	}
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.
Composer/ScriptHandler.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,8 @@
 block discarded – undo
134 134
 
135 135
 		$process = new Process( $php . ' ' . $console . ' ' . $cmd . ' ' . implode( ' ', $options ), null, null, null, 3600 );
136 136
 
137
-		$process->run( function( $type, $buffer ) use ( $event ) {
137
+		$process->run( function( $type, $buffer ) use ( $event )
138
+		{
138 139
 			$event->getIO()->write( $buffer, false );
139 140
 		} );
140 141
 
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
@@ -181,9 +181,12 @@
 block discarded – undo
181 181
 	{
182 182
 		$manager = \Aimeos\MShop::create( $context, 'customer' );
183 183
 
184
-		try {
184
+		try
185
+		{
185 186
 			$item = $manager->findItem( $email );
186
-		} catch( \Aimeos\MShop\Exception $e ) {
187
+		}
188
+		catch( \Aimeos\MShop\Exception $e )
189
+		{
187 190
 			$item = $manager->createItem();
188 191
 		}
189 192
 
Please login to merge, or discard this patch.
Command/JobsCommand.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,8 @@
 block discarded – undo
75 75
 
76 76
 			foreach( $jobs as $jobname )
77 77
 			{
78
-				$fcn = function( $context, $aimeos, $jobname ) {
78
+				$fcn = function( $context, $aimeos, $jobname )
79
+				{
79 80
 					\Aimeos\Controller\Jobs::create( $context, $aimeos, $jobname )->run();
80 81
 				};
81 82
 
Please login to merge, or discard this patch.