Passed
Branch master (c76c38)
by Aimeos
06:48
created
Classes/Aimeos/Shop/Controller/JsonadmController.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,9 +194,12 @@
 block discarded – undo
194 194
 		$psrRequest = new \Zend\Diactoros\ServerRequest();
195 195
 		$flowRequest = $this->request->getHttpRequest();
196 196
 
197
-		try {
197
+		try
198
+		{
198 199
 			$resource = $flowRequest->getContent( true );
199
-		} catch( \Neos\Flow\Http\Exception $exception ) {
200
+		}
201
+		catch( \Neos\Flow\Http\Exception $exception )
202
+		{
200 203
 			$resource = fopen( 'php://temp', 'rw' );
201 204
 			fwrite( $resource, $flowRequest->getContent() );
202 205
 		}
Please login to merge, or discard this patch.
Classes/Aimeos/Shop/Controller/JsonapiController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
 		$context = $this->context->get( $this->request );
154 154
 		$langid = $context->getLocale()->getLanguageId();
155 155
 
156
-		$view =$this->viewContainer->create( $context, $this->uriBuilder, $tmplPaths, $this->request, $langid );
156
+		$view = $this->viewContainer->create( $context, $this->uriBuilder, $tmplPaths, $this->request, $langid );
157 157
 		$context->setView( $view );
158 158
 
159 159
 		return \Aimeos\Client\JsonApi::create( $context, $resource . '/' . $related );
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,9 +170,12 @@
 block discarded – undo
170 170
 		$psrRequest = new \Zend\Diactoros\ServerRequest();
171 171
 		$flowRequest = $this->request->getHttpRequest();
172 172
 
173
-		try {
173
+		try
174
+		{
174 175
 			$resource = $flowRequest->getContent( true );
175
-		} catch( \Neos\Flow\Http\Exception $exception ) {
176
+		}
177
+		catch( \Neos\Flow\Http\Exception $exception )
178
+		{
176 179
 			$resource = fopen( 'php://temp', 'rw' );
177 180
 			fwrite( $resource, $flowRequest->getContent() );
178 181
 		}
Please login to merge, or discard this patch.
Classes/Aimeos/Shop/Controller/CatalogController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public function listComponentAction()
64 64
 	{
65
-		$this->view->assign( 'output',  $this->getOutput( 'catalog/lists' ) );
65
+		$this->view->assign( 'output', $this->getOutput( 'catalog/lists' ) );
66 66
 	}
67 67
 
68 68
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	 */
74 74
 	public function sessionComponentAction()
75 75
 	{
76
-		$this->view->assign( 'output',  $this->getOutput( 'catalog/session' ) );
76
+		$this->view->assign( 'output', $this->getOutput( 'catalog/session' ) );
77 77
 	}
78 78
 
79 79
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	 */
85 85
 	public function stageComponentAction()
86 86
 	{
87
-		$this->view->assign( 'output',  $this->getOutput( 'catalog/stage' ) );
87
+		$this->view->assign( 'output', $this->getOutput( 'catalog/stage' ) );
88 88
 	}
89 89
 
90 90
 
Please login to merge, or discard this patch.
Classes/Aimeos/Shop/Base/View.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -236,8 +236,7 @@
 block discarded – undo
236 236
 		{
237 237
 			$i18n = $this->i18n->get( array( $langid ) );
238 238
 			$translation = $i18n[$langid];
239
-		}
240
-		else
239
+		} else
241 240
 		{
242 241
 			$translation = new \Aimeos\MW\Translation\None( 'en' );
243 242
 		}
Please login to merge, or discard this patch.
Classes/Aimeos/Shop/Base/Locale.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
 		$localeManager = \Aimeos\MShop::create( $context, 'locale' );
73 73
 
74
-		try {
74
+		try
75
+		{
75 76
 			$localeItem = $localeManager->bootstrap( $site, '', '', false, null, true );
76
-		} catch( \Aimeos\MShop\Exception $e ) {
77
+		}
78
+		catch( \Aimeos\MShop\Exception $e )
79
+		{
77 80
 			$localeItem = $localeManager->createItem();
78 81
 		}
79 82
 
Please login to merge, or discard this patch.
Classes/Aimeos/Shop/Command/AimeosCommandController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,8 @@
 block discarded – undo
144 144
 
145 145
 			foreach( $jobs as $jobname )
146 146
 			{
147
-				$fcn = function( $context, $aimeos, $jobname ) {
147
+				$fcn = function( $context, $aimeos, $jobname )
148
+				{
148 149
 					\Aimeos\Controller\Jobs::create( $context, $aimeos, $jobname )->run();
149 150
 				};
150 151
 
Please login to merge, or discard this patch.
Classes/Aimeos/Flow/AimeosTypeConverter.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@
 block discarded – undo
41 41
 	 * @return array
42 42
 	 * @api
43 43
 	 */
44
-	public function convertFrom($source, $targetType, array $convertedChildProperties = array(), PropertyMappingConfigurationInterface $configuration = NULL)
44
+	public function convertFrom( $source, $targetType, array $convertedChildProperties = array(), PropertyMappingConfigurationInterface $configuration = NULL )
45 45
 	{
46 46
 		$result = array();
47 47
 
48
-		parse_str($source, $result);
48
+		parse_str( $source, $result );
49 49
 
50 50
 		return $result;
51 51
 	}
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	 * @return array
42 42
 	 * @api
43 43
 	 */
44
-	public function convertFrom($source, $targetType, array $convertedChildProperties = array(), PropertyMappingConfigurationInterface $configuration = NULL)
44
+	public function convertFrom($source, $targetType, array $convertedChildProperties = array(), PropertyMappingConfigurationInterface $configuration = null)
45 45
 	{
46 46
 		$result = array();
47 47
 
Please login to merge, or discard this patch.
Tests/Unit/Controller/AbstractControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 
77 77
 
78 78
 		$client = $this->getMockBuilder( '\Aimeos\Client\Html\Catalog\Lists\Standard' )
79
-			->setMethods( array( 'getBody', 'getHeader', 'process') )
79
+			->setMethods( array( 'getBody', 'getHeader', 'process' ) )
80 80
 			->disableOriginalConstructor()
81 81
 			->getMock();
82 82
 
Please login to merge, or discard this patch.
Tests/Unit/Base/ViewTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 		$context->setConfig( new \Aimeos\MW\Config\PHPArray() );
35 35
 		$context->setSession( new \Aimeos\MW\Session\None() );
36 36
 
37
-		$uriBuilder = $this->getMockBuilder('\Neos\Flow\Mvc\Routing\UriBuilder')
37
+		$uriBuilder = $this->getMockBuilder( '\Neos\Flow\Mvc\Routing\UriBuilder' )
38 38
 			->disableOriginalConstructor()
39 39
 			->getMock();
40 40
 
Please login to merge, or discard this patch.