Completed
Pull Request — master (#25)
by
unknown
03:05
created
common/src/Controller/Common/Product/Import/Csv/Cache/Supplier/Standard.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,12 +75,12 @@
 block discarded – undo
75 75
 
76 76
 		if( ( $item = $manager->searchItems( $search )->first() ) == null )
77 77
 		{
78
-            $item = $manager->createItem()->setCode($code);
79
-            if( ( $item = $manager->saveItem($item) ) == null ) return null;
78
+			$item = $manager->createItem()->setCode($code);
79
+			if( ( $item = $manager->saveItem($item) ) == null ) return null;
80 80
 		}
81 81
 
82
-        $this->suppliers[$code] = $item->getId();
83
-        return $item->getId();
82
+		$this->suppliers[$code] = $item->getId();
83
+		return $item->getId();
84 84
 	}
85 85
 
86 86
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
 
76 76
 		if( ( $item = $manager->searchItems( $search )->first() ) == null )
77 77
 		{
78
-            $item = $manager->createItem()->setCode($code);
79
-            if( ( $item = $manager->saveItem($item) ) == null ) return null;
78
+            $item = $manager->createItem()->setCode( $code );
79
+            if( ( $item = $manager->saveItem( $item ) ) == null ) return null;
80 80
 		}
81 81
 
82 82
         $this->suppliers[$code] = $item->getId();
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,9 @@
 block discarded – undo
76 76
 		if( ( $item = $manager->searchItems( $search )->first() ) == null )
77 77
 		{
78 78
             $item = $manager->createItem()->setCode($code);
79
-            if( ( $item = $manager->saveItem($item) ) == null ) return null;
79
+            if( ( $item = $manager->saveItem($item) ) == null ) {
80
+            	return null;
81
+            }
80 82
 		}
81 83
 
82 84
         $this->suppliers[$code] = $item->getId();
Please login to merge, or discard this patch.
src/Controller/Common/Product/Import/Csv/Processor/Supplier/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,8 +81,7 @@  discard block
 block discarded – undo
81 81
 			foreach( $manager->searchItems( $search ) as $item ) {
82 82
 				$this->listTypes[$item->getCode()] = $item->getCode();
83 83
 			}
84
-		}
85
-		else
84
+		} else
86 85
 		{
87 86
 			$this->listTypes = array_flip( $this->listTypes );
88 87
 		}
@@ -164,8 +163,7 @@  discard block
 block discarded – undo
164 163
 					{
165 164
 						$listItem = $listMap[$catid][$listtype];
166 165
 						unset( $listItems[$listItem->getId()] );
167
-					}
168
-					else
166
+					} else
169 167
 					{
170 168
 						$listItem = $listManager->createItem()->setType( $listtype );
171 169
 					}
Please login to merge, or discard this patch.