Passed
Push — master ( c2f305...7b2bbe )
by Aimeos
02:44
created
controller/jobs/src/Controller/Jobs/Product/Import/Csv/Standard.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -575,9 +575,11 @@
 block discarded – undo
575 575
 
576 576
 				$map = $this->getMappedChunk( $list, $mapping );
577 577
 
578
-				if( isset( $map[0] ) ) // there can only be one chunk for the base product data
578
+				if( isset( $map[0] ) ) {
579
+					// there can only be one chunk for the base product data
579 580
 				{
580 581
 					$type = $this->checkType( $this->getValue( $map[0], 'product.type', $product->getType() ) );
582
+				}
581 583
 
582 584
 					$product = $product->fromArray( $map[0], true );
583 585
 					$product = $manager->saveItem( $product->setType( $type ) );
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Subscription/Process/Begin/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,8 +154,7 @@
 block discarded – undo
154 154
 						$interval = new \DateInterval( $item->getInterval() );
155 155
 						$date = date_create( $item->getTimeCreated() )->add( $interval )->format( 'Y-m-d' );
156 156
 						$item = $item->setDateNext( $date )->setPeriod( 1 );
157
-					}
158
-					elseif( $item->getTimeCreated() < $date )
157
+					} elseif( $item->getTimeCreated() < $date )
159 158
 					{
160 159
 						$item->setStatus( 0 );
161 160
 					}
Please login to merge, or discard this patch.