@@ -81,8 +81,7 @@ discard block |
||
| 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 |
||
| 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 ); |
@@ -81,8 +81,7 @@ discard block |
||
| 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 |
||
| 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 ); |
@@ -96,8 +96,7 @@ |
||
| 96 | 96 | $files[] = $entry->getPathname(); |
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | - } |
|
| 100 | - else |
|
| 99 | + } else |
|
| 101 | 100 | { |
| 102 | 101 | $files[] = $location; |
| 103 | 102 | } |
@@ -96,8 +96,7 @@ |
||
| 96 | 96 | $files[] = $entry->getPathname(); |
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | - } |
|
| 100 | - else |
|
| 99 | + } else |
|
| 101 | 100 | { |
| 102 | 101 | $files[] = $location; |
| 103 | 102 | } |
@@ -96,8 +96,7 @@ |
||
| 96 | 96 | $files[] = $entry->getPathname(); |
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | - } |
|
| 100 | - else |
|
| 99 | + } else |
|
| 101 | 100 | { |
| 102 | 101 | $files[] = $location; |
| 103 | 102 | } |
@@ -96,8 +96,7 @@ |
||
| 96 | 96 | $files[] = $entry->getPathname(); |
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | - } |
|
| 100 | - else |
|
| 99 | + } else |
|
| 101 | 100 | { |
| 102 | 101 | $files[] = $location; |
| 103 | 102 | } |
@@ -81,8 +81,7 @@ discard block |
||
| 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 |
||
| 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 ); |
@@ -96,8 +96,7 @@ |
||
| 96 | 96 | $files[] = $entry->getPathname(); |
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | - } |
|
| 100 | - else |
|
| 99 | + } else |
|
| 101 | 100 | { |
| 102 | 101 | $files[] = $location; |
| 103 | 102 | } |
@@ -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,13 +274,11 @@ discard block |
||
| 273 | 274 | |
| 274 | 275 | $currentid = $this->importNode( $node, $domains, $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, $domains, $currentid, $childMap ); |
| 280 | 280 | $childMap = []; |
| 281 | - } |
|
| 282 | - elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' ) |
|
| 281 | + } elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' ) |
|
| 283 | 282 | { |
| 284 | 283 | \Aimeos\MShop::create( $this->getContext(), 'catalog' )->deleteItems( $map ); |
| 285 | 284 | break; |