@@ -64,13 +64,13 @@ |
||
| 64 | 64 | * @since 2019.02 |
| 65 | 65 | * @category Developer |
| 66 | 66 | */ |
| 67 | - if ( $name === null ) { |
|
| 67 | + if( $name === null ) { |
|
| 68 | 68 | $name = $context->getConfig()->get( 'controller/jobs/catalog/export/sitemap/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\\Export\\Sitemap\\' . $name : '<not a string>'; |
|
| 73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Catalog\\Export\\Sitemap\\' . $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 | |
@@ -196,10 +196,10 @@ discard block |
||
| 196 | 196 | * @see controller/jobs/catalog/export/sitemap/max-query |
| 197 | 197 | * @see controller/jobs/catalog/export/sitemap/changefreq |
| 198 | 198 | */ |
| 199 | - $default = array('gzip-mode' => 'wb'); |
|
| 199 | + $default = array( 'gzip-mode' => 'wb' ); |
|
| 200 | 200 | $options = $config->get( 'controller/jobs/catalog/export/sitemap/container/options', $default ); |
| 201 | 201 | |
| 202 | - if ( $location === null || $location === '' ) { |
|
| 202 | + if( $location === null || $location === '' ) { |
|
| 203 | 203 | $msg = sprintf( 'Required configuration for "%1$s" is missing', 'controller/jobs/catalog/export/sitemap/location' ); |
| 204 | 204 | throw new \Aimeos\Controller\Jobs\Exception( $msg ); |
| 205 | 205 | } |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | $manager = \Aimeos\MShop::create( $this->getContext(), 'catalog' ); |
| 418 | 418 | |
| 419 | 419 | $search = $manager->createSearch( $default ); |
| 420 | - $search->setSortations( array($search->sort( '+', 'catalog.id' )) ); |
|
| 420 | + $search->setSortations( array( $search->sort( '+', 'catalog.id' ) ) ); |
|
| 421 | 421 | $search->setSlice( 0, $maxQuery ); |
| 422 | 422 | |
| 423 | 423 | $content = $this->createContent( $container, $filenum ); |
@@ -431,12 +431,12 @@ discard block |
||
| 431 | 431 | $start += $count; |
| 432 | 432 | $search->setSlice( $start, $maxQuery ); |
| 433 | 433 | |
| 434 | - if ( $start + $maxQuery > $maxItems * $filenum ) { |
|
| 434 | + if( $start + $maxQuery > $maxItems * $filenum ) { |
|
| 435 | 435 | $this->closeContent( $content ); |
| 436 | 436 | $content = $this->createContent( $container, ++$filenum ); |
| 437 | 437 | $names[] = $content->getResource(); |
| 438 | 438 | } |
| 439 | - } while ($count >= $search->getSliceSize()); |
|
| 439 | + } while( $count >= $search->getSliceSize() ); |
|
| 440 | 440 | |
| 441 | 441 | $this->closeContent( $content ); |
| 442 | 442 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | $this->context->getConfig()->set( 'controller/jobs/catalog/export/sitemap/location', '' ); |
| 79 | 79 | |
| 80 | - $this->setExpectedException('\\Aimeos\\Controller\\Jobs\\Exception'); |
|
| 80 | + $this->setExpectedException( '\\Aimeos\\Controller\\Jobs\\Exception' ); |
|
| 81 | 81 | |
| 82 | 82 | $this->object->run(); |
| 83 | 83 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | $this->context->getConfig()->set( 'controller/jobs/catalog/export/sitemap/location', null ); |
| 88 | 88 | |
| 89 | - $this->setExpectedException('\\Aimeos\\Controller\\Jobs\\Exception'); |
|
| 89 | + $this->setExpectedException( '\\Aimeos\\Controller\\Jobs\\Exception' ); |
|
| 90 | 90 | |
| 91 | 91 | $this->object->run(); |
| 92 | 92 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $aimeos = \TestHelperJobs::getAimeos(); |
| 18 | 18 | |
| 19 | 19 | $obj = \Aimeos\Controller\Jobs\Catalog\Export\Sitemap\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 | |