| @@ -17,7 +17,7 @@ | ||
| 17 | 17 | $aimeos = \TestHelperJobs::getAimeos(); | 
| 18 | 18 | |
| 19 | 19 | $obj = \Aimeos\Controller\Jobs\Catalog\Import\Xml\Factory::create( $context, $aimeos ); | 
| 20 | - $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj); | |
| 20 | + $this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj ); | |
| 21 | 21 | } | 
| 22 | 22 | |
| 23 | 23 | |
| @@ -96,8 +96,7 @@ discard block | ||
| 96 | 96 | $files[] = $entry->getPathname(); | 
| 97 | 97 | } | 
| 98 | 98 | } | 
| 99 | - } | |
| 100 | - else | |
| 99 | + } else | |
| 101 | 100 |  			{ | 
| 102 | 101 | $files[] = $location; | 
| 103 | 102 | } | 
| @@ -229,7 +228,9 @@ discard block | ||
| 229 | 228 | |
| 230 | 229 | return $map; | 
| 231 | 230 | } | 
| 232 | -			catch( \Aimeos\MShop\Exception $e ) {} // not found, create new | |
| 231 | + catch( \Aimeos\MShop\Exception $e ) | |
| 232 | +			{ | |
| 233 | +} // not found, create new | |
| 233 | 234 | } | 
| 234 | 235 | |
| 235 | 236 | $item = $this->process( $manager->createItem(), $node ); | 
| @@ -269,12 +270,10 @@ discard block | ||
| 269 | 270 | |
| 270 | 271 | $childMap = $this->importNode( $node, $ref, $parentid ); | 
| 271 | 272 | $total++; | 
| 272 | - } | |
| 273 | - elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' ) | |
| 273 | + } elseif( $xml->nodeType === \XMLReader::ELEMENT && $xml->name === 'catalog' ) | |
| 274 | 274 |  			{ | 
| 275 | 275 | $this->importTree( $xml, $ref, $parentid, $childMap ); | 
| 276 | - } | |
| 277 | - elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' && $map !== [] ) | |
| 276 | + } elseif( $xml->nodeType === \XMLReader::END_ELEMENT && $xml->name === 'catalog' && $map !== [] ) | |
| 278 | 277 |  			{ | 
| 279 | 278 | \Aimeos\MShop::create( $this->getContext(), 'catalog' )->deleteItems( $map ); | 
| 280 | 279 | break; | 
| @@ -64,13 +64,13 @@ | ||
| 64 | 64 | * @since 2019.04 | 
| 65 | 65 | * @category Developer | 
| 66 | 66 | */ | 
| 67 | -		if ( $name === null ) { | |
| 68 | -			$name = $context->getConfig()->get('controller/jobs/catalog/import/xml/name', 'Standard'); | |
| 67 | +		if( $name === null ) { | |
| 68 | + $name = $context->getConfig()->get( 'controller/jobs/catalog/import/xml/name', 'Standard' ); | |
| 69 | 69 | } | 
| 70 | 70 | |
| 71 | - if ( ctype_alnum($name) === false ) | |
| 71 | + if( ctype_alnum( $name ) === false ) | |
| 72 | 72 |  		{ | 
| 73 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Jobs\\Catalog\\Import\\Xml\\' . $name : '<not a string>'; | |
| 73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Catalog\\Import\\Xml\\' . $name : '<not a string>'; | |
| 74 | 74 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); | 
| 75 | 75 | } | 
| 76 | 76 | |