Completed
Push — master ( 0aab7f...cf6f4f )
by Aimeos
14s queued 12s
created
controller/jobs/src/Controller/Jobs/Catalog/Export/Sitemap/Factory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,13 +64,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Catalog/Export/Sitemap/Standard.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -196,10 +196,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
jobs/tests/Controller/Jobs/Catalog/Export/Sitemap/StandardTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
jobs/tests/Controller/Jobs/Catalog/Export/Sitemap/FactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.