Passed
Push — master ( 66e8c5...3eb360 )
by Aimeos
03:55
created
src/Controller/Common/Catalog/Import/Csv/Processor/Text/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->search( $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
 		}
@@ -138,8 +137,7 @@  discard block
 block discarded – undo
138 137
 				$listItem = $listMap[$content][$type][$listtype];
139 138
 				$refItem = $listItem->getRefItem();
140 139
 				unset( $listItems[$listItem->getId()] );
141
-			}
142
-			else
140
+			} else
143 141
 			{
144 142
 				$listItem = $manager->createListItem()->setType( $listtype );
145 143
 				$refItem = $refManager->create()->setType( $type );
Please login to merge, or discard this patch.
src/Controller/Common/Supplier/Import/Csv/Processor/Media/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,8 +162,7 @@
 block discarded – undo
162 162
 					$listItem = $listMap[$url][$type][$listtype];
163 163
 					$refItem = $listItem->getRefItem();
164 164
 					unset( $listItems[$listItem->getId()] );
165
-				}
166
-				else
165
+				} else
167 166
 				{
168 167
 					$listItem = $manager->createListItem()->setType( $listtype );
169 168
 					$refItem = $refManager->create()->setType( $type );
Please login to merge, or discard this patch.
src/Controller/Common/Supplier/Import/Csv/Processor/Text/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,7 @@
 block discarded – undo
139 139
 				$listItem = $listMap[$content][$type][$listtype];
140 140
 				$refItem = $listItem->getRefItem();
141 141
 				unset( $listItems[$listItem->getId()] );
142
-			}
143
-			else
142
+			} else
144 143
 			{
145 144
 				$listItem = $manager->createListItem()->setType( $listtype );
146 145
 				$refItem = $refManager->create()->setType( $type );
Please login to merge, or discard this patch.
src/Controller/Jobs/Stock/Import/Csv/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
 						$files[] = $entry->getPathname();
97 97
 					}
98 98
 				}
99
-			}
100
-			else
99
+			} else
101 100
 			{
102 101
 				$files[] = $location;
103 102
 			}
Please login to merge, or discard this patch.
src/Controller/Jobs/Product/Import/Xml/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
 						$files[] = $entry->getPathname();
97 97
 					}
98 98
 				}
99
-			}
100
-			else
99
+			} else
101 100
 			{
102 101
 				$files[] = $location;
103 102
 			}
Please login to merge, or discard this patch.
src/Controller/Jobs/Catalog/Import/Csv/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -592,8 +592,7 @@
 block discarded – undo
592 592
 					{
593 593
 						$manager->move( $item->getId(), $item->getParentId(), $parentid );
594 594
 						$item = $manager->save( $item );
595
-					}
596
-					else
595
+					} else
597 596
 					{
598 597
 						$item = $manager->insert( $item, $parentid );
599 598
 					}
Please login to merge, or discard this patch.
src/Controller/Jobs/Catalog/Import/Xml/Standard.php 1 patch
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -97,8 +97,7 @@  discard block
 block discarded – undo
97 97
 						$files[] = $entry->getPathname();
98 98
 					}
99 99
 				}
100
-			}
101
-			else
100
+			} else
102 101
 			{
103 102
 				$files[] = $location;
104 103
 			}
@@ -240,7 +239,9 @@  discard block
 block discarded – undo
240 239
 
241 240
 				return $currentid;
242 241
 			}
243
-			catch( \Aimeos\MShop\Exception $e ) {} // not found, create new
242
+			catch( \Aimeos\MShop\Exception $e )
243
+			{
244
+} // not found, create new
244 245
 		}
245 246
 
246 247
 		$item = $this->process( $manager->create(), $node );
@@ -278,13 +279,11 @@  discard block
 block discarded – undo
278 279
 
279 280
 				$currentid = $this->importNode( $node, $domains, $parentid, $childMap );
280 281
 				$total++;
281
-			}
282
-			elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' )
282
+			} elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' )
283 283
 			{
284 284
 				$this->importTree( $xml, $domains, $currentid, $childMap );
285 285
 				$childMap = [];
286
-			}
287
-			elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' )
286
+			} elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' )
288 287
 			{
289 288
 				\Aimeos\MShop::create( $this->context(), 'catalog' )->delete( $map );
290 289
 				break;
Please login to merge, or discard this patch.
src/Controller/Jobs/Supplier/Import/Xml/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
 						$files[] = $entry->getPathname();
97 97
 					}
98 98
 				}
99
-			}
100
-			else
99
+			} else
101 100
 			{
102 101
 				$files[] = $location;
103 102
 			}
Please login to merge, or discard this patch.
src/Controller/Jobs/Attribute/Import/Xml/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
 						$files[] = $entry->getPathname();
97 97
 					}
98 98
 				}
99
-			}
100
-			else
99
+			} else
101 100
 			{
102 101
 				$files[] = $location;
103 102
 			}
Please login to merge, or discard this patch.