@@ -327,7 +327,9 @@ discard block |
||
| 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 |
||
| 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; |