@@ -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 | } |
@@ -240,7 +239,9 @@ discard block |
||
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 |
||
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->getContext(), 'catalog' )->delete( $map ); |
290 | 289 | break; |