Passed
Push — master ( ae7104...894d1e )
by Aimeos
02:03
created
src/Controller/Common/Catalog/Import/Csv/Processor/Media/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
 		}
@@ -143,8 +142,7 @@  discard block
 block discarded – undo
143 142
 					$listItem = $listMap[$url][$type][$listtype];
144 143
 					$refItem = $listItem->getRefItem();
145 144
 					unset( $listItems[$listItem->getId()] );
146
-				}
147
-				else
145
+				} else
148 146
 				{
149 147
 					$listItem = $listManager->createItem()->setType( $listtype );
150 148
 					$refItem = $manager->createItem()->setType( $type );
Please login to merge, or discard this patch.
common/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->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
 		}
@@ -137,8 +136,7 @@  discard block
 block discarded – undo
137 136
 				$listItem = $listMap[$content][$type][$listtype];
138 137
 				$refItem = $listItem->getRefItem();
139 138
 				unset( $listItems[$listItem->getId()] );
140
-			}
141
-			else
139
+			} else
142 140
 			{
143 141
 				$listItem = $listManager->createItem()->setType( $listtype );
144 142
 				$refItem = $manager->createItem()->setType( $type );
Please login to merge, or discard this patch.
controller/jobs/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.
controller/jobs/src/Controller/Jobs/Customer/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.
controller/jobs/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.
controller/jobs/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.
controller/jobs/src/Controller/Jobs/Catalog/Import/Xml/Standard.php 1 patch
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@  discard block
 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
 			}
@@ -229,7 +228,9 @@  discard block
 block discarded – undo
229 228
 
230 229
 				return $map;
231 230
 			}
232
-			catch( \Aimeos\MShop\Exception $e ) {} // not found, create new
231
+			catch( \Aimeos\MShop\Exception $e )
232
+			{
233
+} // not found, create new
233 234
 		}
234 235
 
235 236
 		$item = $this->process( $manager->createItem(), $node );
@@ -269,12 +270,10 @@  discard block
 block discarded – undo
269 270
 
270 271
 				$childMap = $this->importNode( $node, $ref, $parentid );
271 272
 				$total++;
272
-			}
273
-			elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' )
273
+			} elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' )
274 274
 			{
275 275
 				$this->importTree( $xml, $ref, $parentid, $childMap );
276
-			}
277
-			elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' && $map !== [] )
276
+			} elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' && $map !== [] )
278 277
 			{
279 278
 				\Aimeos\MShop::create( $this->getContext(), 'catalog' )->deleteItems( $map );
280 279
 				break;
Please login to merge, or discard this patch.
common/src/Controller/Common/Product/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->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
 		}
@@ -138,8 +137,7 @@  discard block
 block discarded – undo
138 137
 				$listItem = $listMap[$content][$language][$type][$listtype];
139 138
 				$refItem = $listItem->getRefItem();
140 139
 				unset( $listItems[$listItem->getId()] );
141
-			}
142
-			else
140
+			} else
143 141
 			{
144 142
 				$listItem = $listManager->createItem()->setType( $listtype );
145 143
 				$refItem = $manager->createItem()->setType( $type );
Please login to merge, or discard this patch.
controller/jobs/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.