Passed
Push — master ( 8b1641...595372 )
by Aimeos
03:00
created
src/Controller/Jobs/Catalog/Import/Xml/Standard.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -327,7 +327,9 @@  discard block
 block discarded – undo
327 327
 
328 328
 				return $currentid;
329 329
 			}
330
-			catch( \Aimeos\MShop\Exception $e ) {} // not found, create new
330
+			catch( \Aimeos\MShop\Exception $e )
331
+			{
332
+} // not found, create new
331 333
 		}
332 334
 
333 335
 		$item = $this->process( $manager->create(), $node );
@@ -365,13 +367,11 @@  discard block
 block discarded – undo
365 367
 
366 368
 				$currentid = $this->importNode( $node, $domains, $parentid, $childMap );
367 369
 				$total++;
368
-			}
369
-			elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' )
370
+			} elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' )
370 371
 			{
371 372
 				$this->importTree( $xml, $domains, $currentid, $childMap );
372 373
 				$childMap = [];
373
-			}
374
-			elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' )
374
+			} elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' )
375 375
 			{
376 376
 				\Aimeos\MShop::create( $this->context(), 'catalog' )->delete( $map );
377 377
 				break;
Please login to merge, or discard this patch.