Completed
Push — master ( 7f4be2...b5e3a0 )
by Aimeos
15:53
created
Controller/CatalogController.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	public function countAction()
30 30
 	{
31
-		$params = $this->get( 'aimeos_page' )->getSections( 'catalog-count' );
32
-		$response = $this->render( 'AimeosShopBundle:Catalog:count.html.twig', $params )->setMaxAge( 43200 );
33
-		$response->headers->set( 'Content-Type', 'application/javascript' );
31
+		$params = $this->get('aimeos_page')->getSections('catalog-count');
32
+		$response = $this->render('AimeosShopBundle:Catalog:count.html.twig', $params)->setMaxAge(43200);
33
+		$response->headers->set('Content-Type', 'application/javascript');
34 34
 		return $response;
35 35
 	}
36 36
 
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function detailAction()
44 44
 	{
45
-		$params = $this->get( 'aimeos_page' )->getSections( 'catalog-detail' );
46
-		return $this->render( 'AimeosShopBundle:Catalog:detail.html.twig', $params )->setMaxAge( 43200 );
45
+		$params = $this->get('aimeos_page')->getSections('catalog-detail');
46
+		return $this->render('AimeosShopBundle:Catalog:detail.html.twig', $params)->setMaxAge(43200);
47 47
 	}
48 48
 
49 49
 
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	public function listAction()
56 56
 	{
57
-		$params = $this->get( 'aimeos_page' )->getSections( 'catalog-list' );
58
-		return $this->render( 'AimeosShopBundle:Catalog:list.html.twig', $params )->setMaxAge( 43200 );
57
+		$params = $this->get('aimeos_page')->getSections('catalog-list');
58
+		return $this->render('AimeosShopBundle:Catalog:list.html.twig', $params)->setMaxAge(43200);
59 59
 	}
60 60
 
61 61
 
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
 	 */
67 67
 	public function stockAction()
68 68
 	{
69
-		$params = $this->get( 'aimeos_page' )->getSections( 'catalog-stock' );
70
-		$response = $this->render( 'AimeosShopBundle:Catalog:stock.html.twig', $params )->setMaxAge( 30 );
71
-		$response->headers->set( 'Content-Type', 'application/javascript' );
69
+		$params = $this->get('aimeos_page')->getSections('catalog-stock');
70
+		$response = $this->render('AimeosShopBundle:Catalog:stock.html.twig', $params)->setMaxAge(30);
71
+		$response->headers->set('Content-Type', 'application/javascript');
72 72
 		return $response;
73 73
 	}
74 74
 
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 	 */
81 81
 	public function suggestAction()
82 82
 	{
83
-		$params = $this->get( 'aimeos_page' )->getSections( 'catalog-suggest' );
84
-		$response = $this->render( 'AimeosShopBundle:Catalog:suggest.html.twig', $params )->setMaxAge( 43200 );
85
-		$response->headers->set( 'Content-Type', 'application/json' );
83
+		$params = $this->get('aimeos_page')->getSections('catalog-suggest');
84
+		$response = $this->render('AimeosShopBundle:Catalog:suggest.html.twig', $params)->setMaxAge(43200);
85
+		$response->headers->set('Content-Type', 'application/json');
86 86
 		return $response;
87 87
 	}
88 88
 
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
 	 */
95 95
 	public function countComponentAction()
96 96
 	{
97
-		$response = $this->getOutput( 'catalog/count' )->setMaxAge( 43200 );
98
-		$response->headers->set( 'Content-Type', 'application/javascript' );
97
+		$response = $this->getOutput('catalog/count')->setMaxAge(43200);
98
+		$response->headers->set('Content-Type', 'application/javascript');
99 99
 		return $response;
100 100
 	}
101 101
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 */
108 108
 	public function detailComponentAction()
109 109
 	{
110
-		return $this->getOutput( 'catalog/detail' )->setMaxAge( 43200 );
110
+		return $this->getOutput('catalog/detail')->setMaxAge(43200);
111 111
 	}
112 112
 
113 113
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 */
119 119
 	public function filterComponentAction()
120 120
 	{
121
-		return $this->getOutput( 'catalog/filter' )->setMaxAge( 43200 );
121
+		return $this->getOutput('catalog/filter')->setMaxAge(43200);
122 122
 	}
123 123
 
124 124
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	 */
130 130
 	public function listComponentAction()
131 131
 	{
132
-		return $this->getOutput( 'catalog/lists' )->setMaxAge( 43200 );
132
+		return $this->getOutput('catalog/lists')->setMaxAge(43200);
133 133
 	}
134 134
 
135 135
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	 */
141 141
 	public function sessionComponentAction()
142 142
 	{
143
-		return $this->getOutput( 'catalog/session' )->setMaxAge( 43200 );
143
+		return $this->getOutput('catalog/session')->setMaxAge(43200);
144 144
 	}
145 145
 
146 146
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	 */
152 152
 	public function stageComponentAction()
153 153
 	{
154
-		return $this->getOutput( 'catalog/stage' )->setMaxAge( 43200 );
154
+		return $this->getOutput('catalog/stage')->setMaxAge(43200);
155 155
 	}
156 156
 
157 157
 
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
 	 */
163 163
 	public function stockComponentAction()
164 164
 	{
165
-		$response = $this->getOutput( 'catalog/stock' )->setMaxAge( 30 );
166
-		$response->headers->set( 'Content-Type', 'application/javascript' );
165
+		$response = $this->getOutput('catalog/stock')->setMaxAge(30);
166
+		$response->headers->set('Content-Type', 'application/javascript');
167 167
 		return $response;
168 168
 	}
169 169
 
@@ -175,8 +175,8 @@  discard block
 block discarded – undo
175 175
 	 */
176 176
 	public function suggestComponentAction()
177 177
 	{
178
-		$response = $this->getOutput( 'catalog/suggest' )->setMaxAge( 43200 );
179
-		$response->headers->set( 'Content-Type', 'application/json' );
178
+		$response = $this->getOutput('catalog/suggest')->setMaxAge(43200);
179
+		$response->headers->set('Content-Type', 'application/json');
180 180
 		return $response;
181 181
 	}
182 182
 }
Please login to merge, or discard this patch.
Controller/LocaleController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
 	 */
29 29
 	public function selectComponentAction()
30 30
 	{
31
-		return $this->getOutput( 'locale/select' )->setMaxAge( 43200 );
31
+		return $this->getOutput('locale/select')->setMaxAge(43200);
32 32
 	}
33 33
 }
Please login to merge, or discard this patch.
Controller/BasketController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	public function indexAction()
30 30
 	{
31
-		$params = $this->get( 'aimeos_page' )->getSections( 'basket-index' );
32
-		$response =  $this->render( 'AimeosShopBundle:Basket:index.html.twig', $params );
31
+		$params = $this->get('aimeos_page')->getSections('basket-index');
32
+		$response = $this->render('AimeosShopBundle:Basket:index.html.twig', $params);
33 33
 		$response->headers->set('Cache-Control', 'no-store');
34 34
 		return $response;
35 35
 	}
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 */
42 42
 	public function miniComponentAction()
43 43
 	{
44
-		$response = $this->getOutput( 'basket/mini' );
44
+		$response = $this->getOutput('basket/mini');
45 45
 		$response->headers->set('Cache-Control', 'no-store');
46 46
 		return $response;
47 47
 	}
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	public function relatedComponentAction()
56 56
 	{
57
-		$response = $this->getOutput( 'basket/related' );
57
+		$response = $this->getOutput('basket/related');
58 58
 		$response->headers->set('Cache-Control', 'no-store');
59 59
 		return $response;
60 60
 	}
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 */
68 68
 	public function standardComponentAction()
69 69
 	{
70
-		$response = $this->getOutput( 'basket/standard' );
70
+		$response = $this->getOutput('basket/standard');
71 71
 		$response->headers->set('Cache-Control', 'no-store');
72 72
 		return $response;
73 73
 	}
Please login to merge, or discard this patch.
Controller/CheckoutController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	public function confirmAction()
30 30
 	{
31
-		$params = $this->get( 'aimeos_page' )->getSections( 'checkout-confirm' );
32
-		$response = $this->render( 'AimeosShopBundle:Checkout:confirm.html.twig', $params );
31
+		$params = $this->get('aimeos_page')->getSections('checkout-confirm');
32
+		$response = $this->render('AimeosShopBundle:Checkout:confirm.html.twig', $params);
33 33
 		$response->headers->set('Cache-Control', 'no-store');
34 34
 		return $response;
35 35
 	}
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function indexAction()
44 44
 	{
45
-		$params = $this->get( 'aimeos_page' )->getSections( 'checkout-index' );
46
-		$response = $this->render( 'AimeosShopBundle:Checkout:index.html.twig', $params );
45
+		$params = $this->get('aimeos_page')->getSections('checkout-index');
46
+		$response = $this->render('AimeosShopBundle:Checkout:index.html.twig', $params);
47 47
 		$response->headers->set('Cache-Control', 'no-store');
48 48
 		return $response;
49 49
 	}
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 	 */
57 57
 	public function updateAction()
58 58
 	{
59
-		$params = $this->get( 'aimeos_page' )->getSections( 'checkout-update' );
60
-		$response = $this->render( 'AimeosShopBundle:Checkout:update.html.twig', $params );
59
+		$params = $this->get('aimeos_page')->getSections('checkout-update');
60
+		$response = $this->render('AimeosShopBundle:Checkout:update.html.twig', $params);
61 61
 		$response->headers->set('Cache-Control', 'no-store');
62 62
 		return $response;
63 63
 	}
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 */
71 71
 	public function confirmComponentAction()
72 72
 	{
73
-		$response = $this->getOutput( 'checkout/confirm' );
73
+		$response = $this->getOutput('checkout/confirm');
74 74
 		$response->headers->set('Cache-Control', 'no-store');
75 75
 		return $response;
76 76
 	}
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	 */
84 84
 	public function standardComponentAction()
85 85
 	{
86
-		$response = $this->getOutput( 'checkout/standard' );
86
+		$response = $this->getOutput('checkout/standard');
87 87
 		$response->headers->set('Cache-Control', 'no-store');
88 88
 		return $response;
89 89
 	}
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 */
97 97
 	public function updateComponentAction()
98 98
 	{
99
-		$response = $this->getOutput( 'checkout/update' );
99
+		$response = $this->getOutput('checkout/update');
100 100
 		$response->headers->set('Cache-Control', 'no-store');
101 101
 		return $response;
102 102
 	}
Please login to merge, or discard this patch.
Controller/AccountController.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	public function indexAction()
30 30
 	{
31
-		$params = $this->get( 'aimeos_page' )->getSections( 'account-index' );
32
-		return $this->render( 'AimeosShopBundle:Account:index.html.twig', $params )->setPrivate()->setMaxAge( 300 );
31
+		$params = $this->get('aimeos_page')->getSections('account-index');
32
+		return $this->render('AimeosShopBundle:Account:index.html.twig', $params)->setPrivate()->setMaxAge(300);
33 33
 	}
34 34
 
35 35
 
@@ -43,16 +43,16 @@  discard block
 block discarded – undo
43 43
 		$context = $this->container->get('aimeos_context')->get();
44 44
 		$langid = $context->getLocale()->getLanguageId();
45 45
 
46
-		$view = $this->container->get('aimeos_view')->create( $context, array(), $langid );
47
-		$context->setView( $view );
46
+		$view = $this->container->get('aimeos_view')->create($context, array(), $langid);
47
+		$context->setView($view);
48 48
 
49
-		$client = \Aimeos\Client\Html\Factory::createClient( $context, array(), 'account/download' );
50
-		$client->setView( $view );
49
+		$client = \Aimeos\Client\Html\Factory::createClient($context, array(), 'account/download');
50
+		$client->setView($view);
51 51
 		$client->process();
52 52
 
53 53
 		$response = $view->response();
54
-		return Response::create( (string) $response->getBody(), $response->getStatusCode(), $response->getHeaders() )
55
-			->setPrivate()->setMaxAge( 300 );
54
+		return Response::create((string) $response->getBody(), $response->getStatusCode(), $response->getHeaders())
55
+			->setPrivate()->setMaxAge(300);
56 56
 	}
57 57
 
58 58
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 */
64 64
 	public function favoriteComponentAction()
65 65
 	{
66
-		return $this->getOutput( 'account/favorite' )->setPrivate()->setMaxAge( 300 );
66
+		return $this->getOutput('account/favorite')->setPrivate()->setMaxAge(300);
67 67
 	}
68 68
 
69 69
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 */
75 75
 	public function historyComponentAction()
76 76
 	{
77
-		return $this->getOutput( 'account/history' )->setPrivate()->setMaxAge( 300 );
77
+		return $this->getOutput('account/history')->setPrivate()->setMaxAge(300);
78 78
 	}
79 79
 
80 80
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 */
86 86
 	public function profileComponentAction()
87 87
 	{
88
-		return $this->getOutput( 'account/profile' )->setPrivate()->setMaxAge( 300 );
88
+		return $this->getOutput('account/profile')->setPrivate()->setMaxAge(300);
89 89
 	}
90 90
 
91 91
 
@@ -96,6 +96,6 @@  discard block
 block discarded – undo
96 96
 	 */
97 97
 	public function watchComponentAction()
98 98
 	{
99
-		return $this->getOutput( 'account/watch' )->setPrivate()->setMaxAge( 300 );
99
+		return $this->getOutput('account/watch')->setPrivate()->setMaxAge(300);
100 100
 	}
101 101
 }
Please login to merge, or discard this patch.
Service/Context.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	 *
32 32
 	 * @param Container $container Container object to access parameters
33 33
 	 */
34
-	public function __construct( Container $container )
34
+	public function __construct(Container $container)
35 35
 	{
36 36
 		$this->container = $container;
37 37
 	}
@@ -44,37 +44,37 @@  discard block
 block discarded – undo
44 44
 	 * @param string $type Configuration type ("frontend" or "backend")
45 45
 	 * @return \Aimeos\MShop\Context\Item\Iface Context object
46 46
 	 */
47
-	public function get( $locale = true, $type = 'frontend' )
47
+	public function get($locale = true, $type = 'frontend')
48 48
 	{
49
-		$config = $this->container->get( 'aimeos_config' )->get( $type );
49
+		$config = $this->container->get('aimeos_config')->get($type);
50 50
 
51
-		if( self::$context === null )
51
+		if (self::$context === null)
52 52
 		{
53 53
 			$context = new \Aimeos\MShop\Context\Item\Standard();
54
-			$context->setConfig( $config );
54
+			$context->setConfig($config);
55 55
 
56
-			$this->addDataBaseManager( $context );
57
-			$this->addFilesystemManager( $context );
58
-			$this->addMessageQueueManager( $context );
59
-			$this->addLogger( $context );
60
-			$this->addCache( $context );
61
-			$this->addMailer( $context);
56
+			$this->addDataBaseManager($context);
57
+			$this->addFilesystemManager($context);
58
+			$this->addMessageQueueManager($context);
59
+			$this->addLogger($context);
60
+			$this->addCache($context);
61
+			$this->addMailer($context);
62 62
 
63 63
 			self::$context = $context;
64 64
 		}
65 65
 
66 66
 		$context = self::$context;
67
-		$context->setConfig( $config );
67
+		$context->setConfig($config);
68 68
 
69
-		if( $locale === true )
69
+		if ($locale === true)
70 70
 		{
71
-			$localeItem = $this->container->get('aimeos_locale')->get( $context );
72
-			$context->setI18n( $this->container->get('aimeos_i18n')->get( array( $localeItem->getLanguageId() ) ) );
73
-			$context->setLocale( $localeItem );
71
+			$localeItem = $this->container->get('aimeos_locale')->get($context);
72
+			$context->setI18n($this->container->get('aimeos_i18n')->get(array($localeItem->getLanguageId())));
73
+			$context->setLocale($localeItem);
74 74
 		}
75 75
 
76
-		$this->addSession( $context );
77
-		$this->addUserGroups( $context);
76
+		$this->addSession($context);
77
+		$this->addUserGroups($context);
78 78
 
79 79
 		return $context;
80 80
 	}
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object including config
87 87
 	 * @return \Aimeos\MShop\Context\Item\Iface Modified context object
88 88
 	 */
89
-	protected function addCache( \Aimeos\MShop\Context\Item\Iface $context )
89
+	protected function addCache(\Aimeos\MShop\Context\Item\Iface $context)
90 90
 	{
91
-		$cache = new \Aimeos\MAdmin\Cache\Proxy\Standard( $context );
92
-		$context->setCache( $cache );
91
+		$cache = new \Aimeos\MAdmin\Cache\Proxy\Standard($context);
92
+		$context->setCache($cache);
93 93
 
94 94
 		return $context;
95 95
 	}
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
102 102
 	 * @return \Aimeos\MShop\Context\Item\Iface Modified context object
103 103
 	 */
104
-	protected function addDatabaseManager( \Aimeos\MShop\Context\Item\Iface $context )
104
+	protected function addDatabaseManager(\Aimeos\MShop\Context\Item\Iface $context)
105 105
 	{
106
-		$dbm = new \Aimeos\MW\DB\Manager\DBAL( $context->getConfig() );
107
-		$context->setDatabaseManager( $dbm );
106
+		$dbm = new \Aimeos\MW\DB\Manager\DBAL($context->getConfig());
107
+		$context->setDatabaseManager($dbm);
108 108
 
109 109
 		return $context;
110 110
 	}
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
117 117
 	 * @return \Aimeos\MShop\Context\Item\Iface Modified context object
118 118
 	 */
119
-	protected function addFilesystemManager( \Aimeos\MShop\Context\Item\Iface $context )
119
+	protected function addFilesystemManager(\Aimeos\MShop\Context\Item\Iface $context)
120 120
 	{
121
-		$fs = new \Aimeos\MW\Filesystem\Manager\Standard( $context->getConfig() );
122
-		$context->setFilesystemManager( $fs );
121
+		$fs = new \Aimeos\MW\Filesystem\Manager\Standard($context->getConfig());
122
+		$context->setFilesystemManager($fs);
123 123
 
124 124
 		return $context;
125 125
 	}
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
132 132
 	 * @return \Aimeos\MShop\Context\Item\Iface Modified context object
133 133
 	 */
134
-	protected function addLogger( \Aimeos\MShop\Context\Item\Iface $context )
134
+	protected function addLogger(\Aimeos\MShop\Context\Item\Iface $context)
135 135
 	{
136
-		$logger = \Aimeos\MAdmin\Log\Manager\Factory::createManager( $context );
137
-		$context->setLogger( $logger );
136
+		$logger = \Aimeos\MAdmin\Log\Manager\Factory::createManager($context);
137
+		$context->setLogger($logger);
138 138
 
139 139
 		return $context;
140 140
 	}
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
148 148
 	 * @return \Aimeos\MShop\Context\Item\Iface Modified context object
149 149
 	 */
150
-	protected function addMailer( \Aimeos\MShop\Context\Item\Iface $context )
150
+	protected function addMailer(\Aimeos\MShop\Context\Item\Iface $context)
151 151
 	{
152 152
 		$container = $this->container;
153
-		$mail = new \Aimeos\MW\Mail\Swift( function() use ( $container) { return $container->get( 'mailer' ); } );
154
-		$context->setMail( $mail );
153
+		$mail = new \Aimeos\MW\Mail\Swift(function() use ($container) { return $container->get('mailer'); } );
154
+		$context->setMail($mail);
155 155
 
156 156
 		return $context;
157 157
 	}
@@ -163,10 +163,10 @@  discard block
 block discarded – undo
163 163
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
164 164
 	 * @return \Aimeos\MShop\Context\Item\Iface Modified context object
165 165
 	 */
166
-	protected function addMessageQueueManager( \Aimeos\MShop\Context\Item\Iface $context )
166
+	protected function addMessageQueueManager(\Aimeos\MShop\Context\Item\Iface $context)
167 167
 	{
168
-		$mq = new \Aimeos\MW\MQueue\Manager\Standard( $context->getConfig() );
169
-		$context->setMessageQueueManager( $mq );
168
+		$mq = new \Aimeos\MW\MQueue\Manager\Standard($context->getConfig());
169
+		$context->setMessageQueueManager($mq);
170 170
 
171 171
 		return $context;
172 172
 	}
@@ -178,10 +178,10 @@  discard block
 block discarded – undo
178 178
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
179 179
 	 * @return \Aimeos\MShop\Context\Item\Iface Modified context object
180 180
 	 */
181
-	protected function addSession( \Aimeos\MShop\Context\Item\Iface $context )
181
+	protected function addSession(\Aimeos\MShop\Context\Item\Iface $context)
182 182
 	{
183
-		$session = new \Aimeos\MW\Session\Symfony2( $this->container->get( 'session' ) );
184
-		$context->setSession( $session );
183
+		$session = new \Aimeos\MW\Session\Symfony2($this->container->get('session'));
184
+		$context->setSession($session);
185 185
 
186 186
 		return $context;
187 187
 	}
@@ -192,29 +192,29 @@  discard block
 block discarded – undo
192 192
 	 *
193 193
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
194 194
 	 */
195
-	protected function addUserGroups( \Aimeos\MShop\Context\Item\Iface $context )
195
+	protected function addUserGroups(\Aimeos\MShop\Context\Item\Iface $context)
196 196
 	{
197 197
 		$username = '';
198
-		$token = $this->container->get( 'security.token_storage' )->getToken();
198
+		$token = $this->container->get('security.token_storage')->getToken();
199 199
 
200
-		if( is_object( $token ) && is_object( $token->getUser() ) && method_exists( $token->getUser(), 'getId' ) )
200
+		if (is_object($token) && is_object($token->getUser()) && method_exists($token->getUser(), 'getId'))
201 201
 		{
202
-			$username =  $token->getUser()->getUsername();
202
+			$username = $token->getUser()->getUsername();
203 203
 			$userid = $token->getUser()->getId();
204
-			$context->setUserId( $userid );
205
-			$context->setGroupIds( function() use ( $context, $userid )
204
+			$context->setUserId($userid);
205
+			$context->setGroupIds(function() use ($context, $userid)
206 206
 			{
207
-				$manager = \Aimeos\MShop\Factory::createManager( $context, 'customer' );
208
-				return $manager->getItem( $userid, array( 'customer/group' ) )->getGroups();
207
+				$manager = \Aimeos\MShop\Factory::createManager($context, 'customer');
208
+				return $manager->getItem($userid, array('customer/group'))->getGroups();
209 209
 			} );
210 210
 		}
211 211
 
212
-		if( $username === '' && $this->container->has( 'request_stack' )
213
-			&& ( $request = $this->container->get('request_stack')->getMasterRequest() ) !== null
212
+		if ($username === '' && $this->container->has('request_stack')
213
+			&& ($request = $this->container->get('request_stack')->getMasterRequest()) !== null
214 214
 		) {
215 215
 			$username = $request->getClientIp();
216 216
 		}
217 217
 
218
-		$context->setEditor( $username );
218
+		$context->setEditor($username);
219 219
 	}
220 220
 }
Please login to merge, or discard this patch.
Tests/Controller/LocaleControllerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
 {
11 11
 	public function testSelectComponent()
12 12
 	{
13
-		$mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\LocaleController' )
14
-			->setMethods( array( 'getOutput' ) )
13
+		$mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\LocaleController')
14
+			->setMethods(array('getOutput'))
15 15
 			->disableOriginalConstructor()
16 16
 			->getMock();
17 17
 
18
-		$response = Response::create( 'test' );
19
-		$mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( $response ) );
18
+		$response = Response::create('test');
19
+		$mock->expects($this->once())->method('getOutput')->will($this->returnValue($response));
20 20
 
21
-		$this->assertSame( $response, $mock->selectComponentAction() );
21
+		$this->assertSame($response, $mock->selectComponentAction());
22 22
 	}
23 23
 }
Please login to merge, or discard this patch.
Tests/Controller/AccountControllerTest.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -11,72 +11,72 @@
 block discarded – undo
11 11
 	public function testAccount()
12 12
 	{
13 13
 		$client = static::createClient();
14
-		$client->request( 'GET', '/unittest/de/EUR/myaccount' );
14
+		$client->request('GET', '/unittest/de/EUR/myaccount');
15 15
 
16
-		$this->assertContains( 'aimeos account-profile', $client->getResponse()->getContent() );
17
-		$this->assertContains( 'aimeos account-history', $client->getResponse()->getContent() );
18
-		$this->assertContains( 'aimeos account-favorite', $client->getResponse()->getContent() );
19
-		$this->assertContains( 'aimeos account-watch', $client->getResponse()->getContent() );
16
+		$this->assertContains('aimeos account-profile', $client->getResponse()->getContent());
17
+		$this->assertContains('aimeos account-history', $client->getResponse()->getContent());
18
+		$this->assertContains('aimeos account-favorite', $client->getResponse()->getContent());
19
+		$this->assertContains('aimeos account-watch', $client->getResponse()->getContent());
20 20
 	}
21 21
 
22 22
 
23 23
 	public function testDownload()
24 24
 	{
25 25
 		$client = static::createClient();
26
-		$client->request( 'GET', '/unittest/de/EUR/myaccount/download/0' );
26
+		$client->request('GET', '/unittest/de/EUR/myaccount/download/0');
27 27
 
28
-		$this->assertEquals( 401, $client->getResponse()->getStatusCode() );
28
+		$this->assertEquals(401, $client->getResponse()->getStatusCode());
29 29
 	}
30 30
 
31 31
 
32 32
 	public function testFavoriteComponent()
33 33
 	{
34 34
 		$client = static::createClient();
35
-		$client->request( 'GET', '/unittest/de/EUR/test/favoritecomponent' );
35
+		$client->request('GET', '/unittest/de/EUR/test/favoritecomponent');
36 36
 
37
-		$this->assertEquals( 200, $client->getResponse()->getStatusCode() );
38
-		$this->assertContains( 'aimeos account-favorite', $client->getResponse()->getContent() );
37
+		$this->assertEquals(200, $client->getResponse()->getStatusCode());
38
+		$this->assertContains('aimeos account-favorite', $client->getResponse()->getContent());
39 39
 	}
40 40
 
41 41
 
42 42
 	public function testHistoryComponent()
43 43
 	{
44
-		$mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\AccountController' )
45
-			->setMethods( array( 'getOutput' ) )
44
+		$mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\AccountController')
45
+			->setMethods(array('getOutput'))
46 46
 			->disableOriginalConstructor()
47 47
 			->getMock();
48 48
 
49
-		$response = Response::create( 'test' );
50
-		$mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( $response ) );
49
+		$response = Response::create('test');
50
+		$mock->expects($this->once())->method('getOutput')->will($this->returnValue($response));
51 51
 
52
-		$this->assertSame( $response, $mock->historyComponentAction() );
52
+		$this->assertSame($response, $mock->historyComponentAction());
53 53
 	}
54 54
 
55 55
 
56 56
 	public function testProfileComponent()
57 57
 	{
58
-		$mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\AccountController' )
59
-			->setMethods( array( 'getOutput' ) )
58
+		$mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\AccountController')
59
+			->setMethods(array('getOutput'))
60 60
 			->disableOriginalConstructor()
61 61
 			->getMock();
62 62
 
63
-		$response = Response::create( 'test' );
64
-		$mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( $response ) );
63
+		$response = Response::create('test');
64
+		$mock->expects($this->once())->method('getOutput')->will($this->returnValue($response));
65 65
 
66
-		$this->assertSame( $response, $mock->profileComponentAction() );
66
+		$this->assertSame($response, $mock->profileComponentAction());
67 67
 	}
68 68
 
69 69
 
70 70
 	public function testWatchComponent()
71 71
 	{
72
-		$mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\AccountController' )
73
-			->setMethods( array( 'getOutput' ) )
72
+		$mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\AccountController')
73
+			->setMethods(array('getOutput'))
74 74
 			->disableOriginalConstructor()
75 75
 			->getMock();
76 76
 
77
-		$response = Response::create( 'test' );
78
-		$mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( $response ) );
77
+		$response = Response::create('test');
78
+		$mock->expects($this->once())->method('getOutput')->will($this->returnValue($response));
79 79
 
80
-		$this->assertSame( $response, $mock->watchComponentAction() );
80
+		$this->assertSame($response, $mock->watchComponentAction());
81 81
 	}
82 82
 }
Please login to merge, or discard this patch.
Tests/Controller/BasketControllerTest.php 1 patch
Spacing   +96 added lines, -96 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@  discard block
 block discarded – undo
12 12
 	{
13 13
 		$client = static::createClient();
14 14
 
15
-		$crawler = $client->request( 'GET', '/unittest/de/EUR/list' );
15
+		$crawler = $client->request('GET', '/unittest/de/EUR/list');
16 16
 
17
-		$link = $crawler->filter( '.catalog-list-items .product a:contains("Unittest: Bundle")' )->link();
18
-		$crawler = $client->click( $link );
17
+		$link = $crawler->filter('.catalog-list-items .product a:contains("Unittest: Bundle")')->link();
18
+		$crawler = $client->click($link);
19 19
 
20
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
21
-		$crawler = $client->submit( $form );
20
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
21
+		$crawler = $client->submit($form);
22 22
 
23
-		$this->assertEquals( 1, $crawler->filter( '.basket-standard' )->count() );
24
-		$this->assertEquals( 1, $crawler->filter( '.basket:contains("Unittest: Bundle")' )->count() );
25
-		$this->assertEquals( 1, $crawler->filter( '.basket .product .quantity .value' )->attr('value') );
23
+		$this->assertEquals(1, $crawler->filter('.basket-standard')->count());
24
+		$this->assertEquals(1, $crawler->filter('.basket:contains("Unittest: Bundle")')->count());
25
+		$this->assertEquals(1, $crawler->filter('.basket .product .quantity .value')->attr('value'));
26 26
 	}
27 27
 
28 28
 
@@ -30,18 +30,18 @@  discard block
 block discarded – undo
30 30
 	{
31 31
 		$client = static::createClient();
32 32
 
33
-		$crawler = $client->request( 'GET', '/unittest/de/EUR/list' );
33
+		$crawler = $client->request('GET', '/unittest/de/EUR/list');
34 34
 
35
-		$link = $crawler->filter( '.catalog-list-items .product a:contains("Unittest: Bundle")' )->link();
36
-		$crawler = $client->click( $link );
35
+		$link = $crawler->filter('.catalog-list-items .product a:contains("Unittest: Bundle")')->link();
36
+		$crawler = $client->click($link);
37 37
 
38
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
38
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
39 39
 		$form['b_prod[0][quantity]'] = 2;
40
-		$crawler = $client->submit( $form );
40
+		$crawler = $client->submit($form);
41 41
 
42
-		$this->assertEquals( 1, $crawler->filter( '.basket-standard' )->count() );
43
-		$this->assertEquals( 1, $crawler->filter( '.basket:contains("Unittest: Bundle")' )->count() );
44
-		$this->assertEquals( 2, $crawler->filter( '.basket .product .quantity .value' )->attr('value') );
42
+		$this->assertEquals(1, $crawler->filter('.basket-standard')->count());
43
+		$this->assertEquals(1, $crawler->filter('.basket:contains("Unittest: Bundle")')->count());
44
+		$this->assertEquals(2, $crawler->filter('.basket .product .quantity .value')->attr('value'));
45 45
 	}
46 46
 
47 47
 
@@ -49,26 +49,26 @@  discard block
 block discarded – undo
49 49
 	{
50 50
 		$client = static::createClient();
51 51
 
52
-		$crawler = $client->request( 'GET', '/unittest/de/EUR/list' );
52
+		$crawler = $client->request('GET', '/unittest/de/EUR/list');
53 53
 
54
-		$link = $crawler->filter( '.catalog-list-items .product a:contains("Unittest: Bundle")' )->link();
55
-		$crawler = $client->click( $link );
54
+		$link = $crawler->filter('.catalog-list-items .product a:contains("Unittest: Bundle")')->link();
55
+		$crawler = $client->click($link);
56 56
 
57
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
58
-		$crawler = $client->submit( $form );
57
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
58
+		$crawler = $client->submit($form);
59 59
 
60
-		$this->assertEquals( 1, $crawler->filter( '.basket:contains("Unittest: Bundle")' )->count() );
61
-		$this->assertEquals( 1, $crawler->filter( '.basket .product .quantity .value' )->attr('value') );
60
+		$this->assertEquals(1, $crawler->filter('.basket:contains("Unittest: Bundle")')->count());
61
+		$this->assertEquals(1, $crawler->filter('.basket .product .quantity .value')->attr('value'));
62 62
 
63 63
 
64
-		$link = $crawler->filter( '.basket-standard .btn-back' )->link();
65
-		$crawler = $client->click( $link );
64
+		$link = $crawler->filter('.basket-standard .btn-back')->link();
65
+		$crawler = $client->click($link);
66 66
 
67
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
68
-		$crawler = $client->submit( $form );
67
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
68
+		$crawler = $client->submit($form);
69 69
 
70
-		$this->assertEquals( 1, $crawler->filter( '.basket:contains("Unittest: Bundle")' )->count() );
71
-		$this->assertEquals( 2, $crawler->filter( '.basket .product .quantity .value' )->attr('value') );
70
+		$this->assertEquals(1, $crawler->filter('.basket:contains("Unittest: Bundle")')->count());
71
+		$this->assertEquals(2, $crawler->filter('.basket .product .quantity .value')->attr('value'));
72 72
 	}
73 73
 
74 74
 
@@ -76,19 +76,19 @@  discard block
 block discarded – undo
76 76
 	{
77 77
 		$client = static::createClient();
78 78
 
79
-		$crawler = $client->request( 'GET', '/unittest/de/EUR/list' );
79
+		$crawler = $client->request('GET', '/unittest/de/EUR/list');
80 80
 
81
-		$link = $crawler->filter( '.catalog-list-items .product a:contains("Unittest: Bundle")' )->link();
82
-		$crawler = $client->click( $link );
81
+		$link = $crawler->filter('.catalog-list-items .product a:contains("Unittest: Bundle")')->link();
82
+		$crawler = $client->click($link);
83 83
 
84
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
85
-		$crawler = $client->submit( $form );
84
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
85
+		$crawler = $client->submit($form);
86 86
 
87 87
 
88
-		$link = $crawler->filter( '.basket-standard .product .action .delete' )->link();
89
-		$crawler = $client->click( $link );
88
+		$link = $crawler->filter('.basket-standard .product .action .delete')->link();
89
+		$crawler = $client->click($link);
90 90
 
91
-		$this->assertEquals( 0, $crawler->filter( '.basket-standard .product' )->count() );
91
+		$this->assertEquals(0, $crawler->filter('.basket-standard .product')->count());
92 92
 	}
93 93
 
94 94
 
@@ -96,25 +96,25 @@  discard block
 block discarded – undo
96 96
 	{
97 97
 		$client = static::createClient();
98 98
 
99
-		$crawler = $client->request( 'GET', '/unittest/de/EUR/list' );
99
+		$crawler = $client->request('GET', '/unittest/de/EUR/list');
100 100
 
101
-		$link = $crawler->filter( '.catalog-list-items .product a:contains("Unittest: Bundle")' )->link();
102
-		$crawler = $client->click( $link );
101
+		$link = $crawler->filter('.catalog-list-items .product a:contains("Unittest: Bundle")')->link();
102
+		$crawler = $client->click($link);
103 103
 
104
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
105
-		$crawler = $client->submit( $form );
104
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
105
+		$crawler = $client->submit($form);
106 106
 
107 107
 
108
-		$link = $crawler->filter( '.basket-standard .product .quantity .change' )->link();
109
-		$crawler = $client->click( $link );
108
+		$link = $crawler->filter('.basket-standard .product .quantity .change')->link();
109
+		$crawler = $client->click($link);
110 110
 
111
-		$this->assertEquals( 2, $crawler->filter( '.basket-standard .product .quantity .value' )->attr( 'value' ) );
111
+		$this->assertEquals(2, $crawler->filter('.basket-standard .product .quantity .value')->attr('value'));
112 112
 
113 113
 
114
-		$link = $crawler->filter( '.basket-standard .product .quantity .change' )->eq( 0 )->link();
115
-		$crawler = $client->click( $link );
114
+		$link = $crawler->filter('.basket-standard .product .quantity .change')->eq(0)->link();
115
+		$crawler = $client->click($link);
116 116
 
117
-		$this->assertEquals( 1, $crawler->filter( '.basket-standard .product .quantity .value' )->attr( 'value' ) );
117
+		$this->assertEquals(1, $crawler->filter('.basket-standard .product .quantity .value')->attr('value'));
118 118
 	}
119 119
 
120 120
 
@@ -122,20 +122,20 @@  discard block
 block discarded – undo
122 122
 	{
123 123
 		$client = static::createClient();
124 124
 
125
-		$crawler = $client->request( 'GET', '/unittest/de/EUR/list' );
125
+		$crawler = $client->request('GET', '/unittest/de/EUR/list');
126 126
 
127
-		$link = $crawler->filter( '.catalog-list-items .product a:contains("Unittest: Bundle")' )->link();
128
-		$crawler = $client->click( $link );
127
+		$link = $crawler->filter('.catalog-list-items .product a:contains("Unittest: Bundle")')->link();
128
+		$crawler = $client->click($link);
129 129
 
130
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
131
-		$crawler = $client->submit( $form );
130
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
131
+		$crawler = $client->submit($form);
132 132
 
133 133
 
134
-		$form = $crawler->filter( '.basket-standard .btn-update' )->form();
134
+		$form = $crawler->filter('.basket-standard .btn-update')->form();
135 135
 		$form['b_prod[0][quantity]'] = 3;
136
-		$crawler = $client->submit( $form );
136
+		$crawler = $client->submit($form);
137 137
 
138
-		$this->assertEquals( 3, $crawler->filter( '.basket-standard .product .quantity .value' )->attr( 'value' ) );
138
+		$this->assertEquals(3, $crawler->filter('.basket-standard .product .quantity .value')->attr('value'));
139 139
 	}
140 140
 
141 141
 
@@ -143,26 +143,26 @@  discard block
 block discarded – undo
143 143
 	{
144 144
 		$client = static::createClient();
145 145
 
146
-		$crawler = $client->request( 'GET', '/unittest/de/EUR/list' );
146
+		$crawler = $client->request('GET', '/unittest/de/EUR/list');
147 147
 
148
-		$link = $crawler->filter( '.catalog-list-items .product a:contains("Unittest: Bundle")' )->link();
149
-		$crawler = $client->click( $link );
148
+		$link = $crawler->filter('.catalog-list-items .product a:contains("Unittest: Bundle")')->link();
149
+		$crawler = $client->click($link);
150 150
 
151
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
152
-		$crawler = $client->submit( $form );
151
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
152
+		$crawler = $client->submit($form);
153 153
 
154 154
 
155
-		$form = $crawler->filter( '.basket-standard-coupon .coupon-new button' )->form();
155
+		$form = $crawler->filter('.basket-standard-coupon .coupon-new button')->form();
156 156
 		$form['b_coupon'] = '90AB';
157
-		$crawler = $client->submit( $form );
157
+		$crawler = $client->submit($form);
158 158
 
159
-		$this->assertEquals( 1, $crawler->filter( '.basket-standard .product:contains("Geldwerter Nachlass")' )->count() );
159
+		$this->assertEquals(1, $crawler->filter('.basket-standard .product:contains("Geldwerter Nachlass")')->count());
160 160
 
161 161
 
162
-		$link = $crawler->filter( '.basket-standard-coupon .change' )->link();
163
-		$crawler = $client->click( $link );
162
+		$link = $crawler->filter('.basket-standard-coupon .change')->link();
163
+		$crawler = $client->click($link);
164 164
 
165
-		$this->assertEquals( 1, $crawler->filter( '.basket-standard .product' )->count() );
165
+		$this->assertEquals(1, $crawler->filter('.basket-standard .product')->count());
166 166
 	}
167 167
 
168 168
 
@@ -170,15 +170,15 @@  discard block
 block discarded – undo
170 170
 	{
171 171
 		$client = static::createClient();
172 172
 
173
-		$crawler = $client->request( 'GET', '/unittest/de/EUR/list' );
173
+		$crawler = $client->request('GET', '/unittest/de/EUR/list');
174 174
 
175
-		$link = $crawler->filter( '.catalog-list-items .product a:contains("Cafe Noire Expresso")' )->link();
176
-		$crawler = $client->click( $link );
175
+		$link = $crawler->filter('.catalog-list-items .product a:contains("Cafe Noire Expresso")')->link();
176
+		$crawler = $client->click($link);
177 177
 
178
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
179
-		$crawler = $client->submit( $form );
178
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
179
+		$crawler = $client->submit($form);
180 180
 
181
-		$this->assertEquals( 1, $crawler->filter( '.basket-related-bought .product' )->count() );
181
+		$this->assertEquals(1, $crawler->filter('.basket-related-bought .product')->count());
182 182
 	}
183 183
 
184 184
 
@@ -186,59 +186,59 @@  discard block
 block discarded – undo
186 186
 	{
187 187
 		$client = static::createClient();
188 188
 
189
-		$crawler = $client->request( 'GET', '/unittest/de/EUR/list' );
189
+		$crawler = $client->request('GET', '/unittest/de/EUR/list');
190 190
 
191
-		$link = $crawler->filter( '.catalog-list-items .product a:contains("Unittest: Bundle")' )->link();
192
-		$crawler = $client->click( $link );
191
+		$link = $crawler->filter('.catalog-list-items .product a:contains("Unittest: Bundle")')->link();
192
+		$crawler = $client->click($link);
193 193
 
194
-		$form = $crawler->filter( '.catalog-detail .addbasket .btn-action' )->form();
195
-		$crawler = $client->submit( $form );
194
+		$form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
195
+		$crawler = $client->submit($form);
196 196
 
197
-		$link = $crawler->filter( '.basket-standard .btn-back' )->link();
198
-		$crawler = $client->click( $link );
197
+		$link = $crawler->filter('.basket-standard .btn-back')->link();
198
+		$crawler = $client->click($link);
199 199
 
200
-		$this->assertEquals( 1, $crawler->filter( '.catalog-detail .product:contains("Unittest: Bundle")' )->count() );
200
+		$this->assertEquals(1, $crawler->filter('.catalog-detail .product:contains("Unittest: Bundle")')->count());
201 201
 	}
202 202
 
203 203
 
204 204
 	public function testMiniComponent()
205 205
 	{
206
-		$mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\BasketController' )
207
-			->setMethods( array( 'getOutput' ) )
206
+		$mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\BasketController')
207
+			->setMethods(array('getOutput'))
208 208
 			->disableOriginalConstructor()
209 209
 			->getMock();
210 210
 
211
-		$response = Response::create( 'test' );
212
-		$mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( $response ) );
211
+		$response = Response::create('test');
212
+		$mock->expects($this->once())->method('getOutput')->will($this->returnValue($response));
213 213
 
214
-		$this->assertSame( $response, $mock->miniComponentAction() );
214
+		$this->assertSame($response, $mock->miniComponentAction());
215 215
 	}
216 216
 
217 217
 
218 218
 	public function testRelatedComponent()
219 219
 	{
220
-		$mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\BasketController' )
221
-			->setMethods( array( 'getOutput' ) )
220
+		$mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\BasketController')
221
+			->setMethods(array('getOutput'))
222 222
 			->disableOriginalConstructor()
223 223
 			->getMock();
224 224
 
225
-		$response = Response::create( 'test' );
226
-		$mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( $response ) );
225
+		$response = Response::create('test');
226
+		$mock->expects($this->once())->method('getOutput')->will($this->returnValue($response));
227 227
 
228
-		$this->assertSame( $response, $mock->relatedComponentAction() );
228
+		$this->assertSame($response, $mock->relatedComponentAction());
229 229
 	}
230 230
 
231 231
 
232 232
 	public function testStandardComponent()
233 233
 	{
234
-		$mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\BasketController' )
235
-			->setMethods( array( 'getOutput' ) )
234
+		$mock = $this->getMockBuilder('Aimeos\ShopBundle\Controller\BasketController')
235
+			->setMethods(array('getOutput'))
236 236
 			->disableOriginalConstructor()
237 237
 			->getMock();
238 238
 
239
-		$response = Response::create( 'test' );
240
-		$mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( $response ) );
239
+		$response = Response::create('test');
240
+		$mock->expects($this->once())->method('getOutput')->will($this->returnValue($response));
241 241
 
242
-		$this->assertSame( $response, $mock->standardComponentAction() );
242
+		$this->assertSame($response, $mock->standardComponentAction());
243 243
 	}
244 244
 }
Please login to merge, or discard this patch.