Passed
Push — master ( ba3321...06bed4 )
by Aimeos
03:10
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
@@ -562,9 +562,11 @@
 block discarded – undo
562 562
 
563 563
 				$map = $this->getMappedChunk( $list, $mapping );
564 564
 
565
-				if( isset( $map[0] ) ) // there can only be one chunk for the base product data
565
+				if( isset( $map[0] ) ) {
566
+					// there can only be one chunk for the base product data
566 567
 				{
567 568
 					$type = $this->checkType( $this->getValue( $map[0], 'product.type', $product->getType() ) );
569
+				}
568 570
 					$map[0]['product.config'] = json_decode( $map[0]['product.config'] ?? '[]', true ) ?: [];
569 571
 
570 572
 					$product = $product->fromArray( $map[0], true );
Please login to merge, or discard this patch.