Passed
Push — master ( 1d5c4d...7da6af )
by Aimeos
02:32
created
controller/common/src/Controller/Common/Common/Import/Xml/Traits.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 		{
84 84
 			$classname = '\\Aimeos\\Controller\\Common\\Common\\Import\\Xml\\Processor\\' . $segment;
85 85
 
86
-			if( class_exists( $classname ) === false ){
86
+			if( class_exists( $classname ) === false ) {
87 87
 				throw new \Aimeos\Controller\Common\Exception( sprintf( 'Class "%1$s" not found', $classname ) );
88 88
 			}
89 89
 		}
Please login to merge, or discard this patch.
src/Controller/Common/Common/Import/Xml/Processor/Catalog/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,7 @@
 block discarded – undo
86 86
 				$listItem = $map[$parentid][$type];
87 87
 				unset( $listItems[$map[$parentid][$type]->getId()] );
88 88
 				unset( $map[$parentid][$type] );
89
-			}
90
-			else
89
+			} else
91 90
 			{
92 91
 				$listItem = $listManager->createItem();
93 92
 			}
Please login to merge, or discard this patch.
src/Controller/Common/Product/Import/Csv/Processor/Price/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,7 @@
 block discarded – undo
87 87
 			foreach( $manager->searchItems( $search ) as $item ) {
88 88
 				$this->listTypes[$item->getCode()] = $item->getCode();
89 89
 			}
90
-		}
91
-		else
90
+		} else
92 91
 		{
93 92
 			$this->listTypes = array_flip( $this->listTypes );
94 93
 		}
Please login to merge, or discard this patch.
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.