Passed
Push — master ( d672e3...08f879 )
by Aimeos
04:07
created
tests/Command/CacheCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 {
5 5
 	public function testSetupCommand()
6 6
 	{
7
-		$this->assertEquals(0, $this->artisan('aimeos:cache', array('site' => 'unittest')));
7
+		$this->assertEquals( 0, $this->artisan( 'aimeos:cache', array( 'site' => 'unittest' ) ) );
8 8
 	}
9 9
 }
Please login to merge, or discard this patch.
tests/Command/JobsCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 {
5 5
 	public function testJobsCommand()
6 6
 	{
7
-		$this->assertEquals(0, $this->artisan('aimeos:jobs', array('jobs' => 'customer/email/watch', 'site' => 'unittest')));
7
+		$this->assertEquals( 0, $this->artisan( 'aimeos:jobs', array( 'jobs' => 'customer/email/watch', 'site' => 'unittest' ) ) );
8 8
 	}
9 9
 }
Please login to merge, or discard this patch.
tests/Command/SetupCommandTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 {
5 5
 	public function testSetupCommand()
6 6
 	{
7
-		$args = array('site' => 'unittest', 'tplsite' => 'unittest', '--option' => 'setup/default/demo:0');
8
-		$this->assertEquals(0, $this->artisan('aimeos:setup', $args));
7
+		$args = array( 'site' => 'unittest', 'tplsite' => 'unittest', '--option' => 'setup/default/demo:0' );
8
+		$this->assertEquals( 0, $this->artisan( 'aimeos:setup', $args ) );
9 9
 	}
10 10
 }
Please login to merge, or discard this patch.
tests/Command/AccountCommandTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,28 +4,28 @@
 block discarded – undo
4 4
 {
5 5
 	public function testAccountCommandNew()
6 6
 	{
7
-		$args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test');
8
-		$this->assertEquals(0, $this->artisan('aimeos:account', $args));
7
+		$args = array( 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test' );
8
+		$this->assertEquals( 0, $this->artisan( 'aimeos:account', $args ) );
9 9
 	}
10 10
 
11 11
 
12 12
 	public function testAccountCommandAdmin()
13 13
 	{
14
-		$args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--admin' => true);
15
-		$this->assertEquals(0, $this->artisan('aimeos:account', $args));
14
+		$args = array( 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--admin' => true );
15
+		$this->assertEquals( 0, $this->artisan( 'aimeos:account', $args ) );
16 16
 	}
17 17
 
18 18
 
19 19
 	public function testAccountCommandApi()
20 20
 	{
21
-		$args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--api' => true);
22
-		$this->assertEquals(0, $this->artisan('aimeos:account', $args));
21
+		$args = array( 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--api' => true );
22
+		$this->assertEquals( 0, $this->artisan( 'aimeos:account', $args ) );
23 23
 	}
24 24
 
25 25
 
26 26
 	public function testAccountCommandEditor()
27 27
 	{
28
-		$args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--editor' => true);
29
-		$this->assertEquals(0, $this->artisan('aimeos:account', $args));
28
+		$args = array( 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--editor' => true );
29
+		$this->assertEquals( 0, $this->artisan( 'aimeos:account', $args ) );
30 30
 	}
31 31
 }
Please login to merge, or discard this patch.
src/Aimeos/Shop/Controller/JsonadmController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,8 +141,8 @@
 block discarded – undo
141 141
 		$templatePaths = $aimeos->getCustomPaths( 'admin/jsonadm/templates' );
142 142
 
143 143
 		$context = app( 'aimeos.context' )->get( false, 'backend' );
144
-		$context->setI18n( app('aimeos.i18n')->get( array( $lang, 'en' ) ) );
145
-		$context->setLocale( app('aimeos.locale')->getBackend( $context, $site ) );
144
+		$context->setI18n( app( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) );
145
+		$context->setLocale( app( 'aimeos.locale' )->getBackend( $context, $site ) );
146 146
 		$context->setView( app( 'aimeos.view' )->create( $context, $templatePaths, $lang ) );
147 147
 
148 148
 		return \Aimeos\Admin\JsonAdm::create( $context, $aimeos, $resource );
Please login to merge, or discard this patch.
src/Aimeos/Shop/Controller/CheckoutController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 			$params['aibody'][$name] = Shop::get( $name )->getBody();
37 37
 		}
38 38
 
39
-		return Response::view('shop::checkout.confirm', $params)->header('Cache-Control', 'no-store');
39
+		return Response::view( 'shop::checkout.confirm', $params )->header( 'Cache-Control', 'no-store' );
40 40
 	}
41 41
 
42 42
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 			$params['aibody'][$name] = Shop::get( $name )->getBody();
54 54
 		}
55 55
 
56
-		return Response::view('shop::checkout.index', $params)->header('Cache-Control', 'no-store');
56
+		return Response::view( 'shop::checkout.index', $params )->header( 'Cache-Control', 'no-store' );
57 57
 	}
58 58
 
59 59
 
@@ -70,6 +70,6 @@  discard block
 block discarded – undo
70 70
 			$params['aibody'][$name] = Shop::get( $name )->getBody();
71 71
 		}
72 72
 
73
-		return Response::view('shop::checkout.update', $params)->header('Cache-Control', 'no-store');
73
+		return Response::view( 'shop::checkout.update', $params )->header( 'Cache-Control', 'no-store' );
74 74
 	}
75 75
 }
76 76
\ No newline at end of file
Please login to merge, or discard this patch.
src/Aimeos/Shop/Controller/JqadmController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,8 +234,8 @@
 block discarded – undo
234 234
 		$paths = $aimeos->getCustomPaths( 'admin/jqadm/templates' );
235 235
 
236 236
 		$context = app( 'aimeos.context' )->get( false, 'backend' );
237
-		$context->setI18n( app('aimeos.i18n')->get( array( $lang, 'en' ) ) );
238
-		$context->setLocale( app('aimeos.locale')->getBackend( $context, $site ) );
237
+		$context->setI18n( app( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) );
238
+		$context->setLocale( app( 'aimeos.locale' )->getBackend( $context, $site ) );
239 239
 
240 240
 		$view = app( 'aimeos.view' )->create( $context, $paths, $lang );
241 241
 
Please login to merge, or discard this patch.
src/Aimeos/Shop/Controller/PageController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public function privacyAction()
31 31
 	{
32
-		return View::make('shop::page.privacy');
32
+		return View::make( 'shop::page.privacy' );
33 33
 	}
34 34
 
35 35
 
@@ -40,6 +40,6 @@  discard block
 block discarded – undo
40 40
 	 */
41 41
 	public function termsAction()
42 42
 	{
43
-		return View::make('shop::page.terms');
43
+		return View::make( 'shop::page.terms' );
44 44
 	}
45 45
 }
46 46
\ No newline at end of file
Please login to merge, or discard this patch.
src/Aimeos/Shop/Base/Context.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@
 block discarded – undo
85 85
 			$this->addMessageQueueManager( $context );
86 86
 			$this->addLogger( $context );
87 87
 			$this->addCache( $context );
88
-			$this->addMailer( $context);
88
+			$this->addMailer( $context );
89 89
 			$this->addProcess( $context );
90 90
 			$this->addSession( $context );
91
-			$this->addUser( $context);
92
-			$this->addGroups( $context);
91
+			$this->addUser( $context );
92
+			$this->addGroups( $context );
93 93
 
94 94
 			$this->context = $context;
95 95
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,8 +260,7 @@
 block discarded – undo
260 260
 	{
261 261
 		if( ( $userid = Auth::id() ) !== null )
262 262
 		{
263
-			$context->setGroupIds( function() use ( $context, $userid )
264
-			{
263
+			$context->setGroupIds( function() use ( $context, $userid ) {
265 264
 				$manager = \Aimeos\MShop::create( $context, 'customer' );
266 265
 				return $manager->getItem( $userid, array( 'customer/group' ) )->getGroups();
267 266
 			} );
Please login to merge, or discard this patch.