@@ -95,8 +95,7 @@ discard block |
||
| 95 | 95 | $files[] = $entry->getPathname(); |
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | - } |
|
| 99 | - else |
|
| 98 | + } else |
|
| 100 | 99 | { |
| 101 | 100 | $files[] = $location; |
| 102 | 101 | } |
@@ -235,7 +234,9 @@ discard block |
||
| 235 | 234 | |
| 236 | 235 | return $currentid; |
| 237 | 236 | } |
| 238 | - catch( \Aimeos\MShop\Exception $e ) {} // not found, create new |
|
| 237 | + catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | + { |
|
| 239 | +} // not found, create new |
|
| 239 | 240 | } |
| 240 | 241 | |
| 241 | 242 | $item = $this->process( $manager->createItem(), $node ); |
@@ -273,12 +274,10 @@ discard block |
||
| 273 | 274 | |
| 274 | 275 | $currentid = $this->importNode( $node, $ref, $parentid, $childMap ); |
| 275 | 276 | $total++; |
| 276 | - } |
|
| 277 | - elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' ) |
|
| 277 | + } elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' ) |
|
| 278 | 278 | { |
| 279 | 279 | $this->importTree( $xml, $ref, $currentid, $childMap ); |
| 280 | - } |
|
| 281 | - elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' && $map !== [] ) |
|
| 280 | + } elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' && $map !== [] ) |
|
| 282 | 281 | { |
| 283 | 282 | \Aimeos\MShop::create( $this->getContext(), 'catalog' )->deleteItems( $map ); |
| 284 | 283 | break; |