Passed
Push — master ( c3c77b...e4c2c6 )
by Aimeos
02:06
created
common/src/Controller/Common/Product/Import/Csv/Cache/Product/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,6 +70,6 @@
 block discarded – undo
70 70
 	 */
71 71
 	public function set( \Aimeos\MShop\Common\Item\Iface $item )
72 72
 	{
73
-		$this->prodmap[ $item->getCode() ] = $item->getId();
73
+		$this->prodmap[$item->getCode()] = $item->getId();
74 74
 	}
75 75
 }
76 76
\ No newline at end of file
Please login to merge, or discard this patch.
controller/common/src/Controller/Common/Product/Import/Csv/Base.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
 		if( ctype_alnum( $type ) === false )
59 59
 		{
60
-			$classname = is_string($name) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Cache\\' . $type : '<not a string>';
60
+			$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Cache\\' . $type : '<not a string>';
61 61
 			throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
62 62
 		}
63 63
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
 		if( ctype_alnum( $name ) === false )
69 69
 		{
70
-			$classname = is_string($name) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Cache\\' . $type . '\\' . $name : '<not a string>';
70
+			$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Cache\\' . $type . '\\' . $name : '<not a string>';
71 71
 			throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
72 72
 		}
73 73
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 		while( $content->valid() && $count++ < $maxcnt )
120 120
 		{
121 121
 			$row = $content->current();
122
-			$data[ $row[$codePos] ] = $row;
122
+			$data[$row[$codePos]] = $row;
123 123
 			$content->next();
124 124
 		}
125 125
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 		{
257 257
 			if( ctype_alnum( $type ) === false )
258 258
 			{
259
-				$classname = is_string($type) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Processor\\' . $type : '<not a string>';
259
+				$classname = is_string( $type ) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Processor\\' . $type : '<not a string>';
260 260
 				throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
261 261
 			}
262 262
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 
265 265
 			if( ctype_alnum( $name ) === false )
266 266
 			{
267
-				$classname = is_string($name) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Processor\\' . $type . '\\' . $name : '<not a string>';
267
+				$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Processor\\' . $type . '\\' . $name : '<not a string>';
268 268
 				throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
269 269
 			}
270 270
 
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 		$search->setSlice( 0, count( $codes ) );
301 301
 
302 302
 		foreach( $manager->searchItems( $search, $domains ) as $item ) {
303
-			$result[ $item->getCode() ] = $item;
303
+			$result[$item->getCode()] = $item;
304 304
 		}
305 305
 
306 306
 		return $result;
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Subscription/Process/Renew/Standard.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -170,9 +170,12 @@  discard block
 block discarded – undo
170 170
 		{
171 171
 			foreach( $codes as $code )
172 172
 			{
173
-				try {
173
+				try
174
+				{
174 175
 					$basket->addCoupon( $code );
175
-				} catch( \Aimeos\MShop\Plugin\Provider\Exception $e ) {
176
+				}
177
+				catch( \Aimeos\MShop\Plugin\Provider\Exception $e )
178
+				{
176 179
 					$basket->deleteCoupon( $code );
177 180
 				}
178 181
 			}
@@ -282,7 +285,9 @@  discard block
 block discarded – undo
282 285
 			$context->setUserId( $baseItem->getCustomerId() );
283 286
 			$context->setGroupIds( $customerItem->getGroups() );
284 287
 		}
285
-		catch( \Exception $e ) {} // Subscription without account
288
+		catch( \Exception $e )
289
+		{
290
+} // Subscription without account
286 291
 
287 292
 		return $context;
288 293
 	}
Please login to merge, or discard this patch.