Completed
Pull Request — master (#12)
by
unknown
02:44
created
jobs/tests/Controller/Jobs/Catalog/Export/Sitemap/StandardTest.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -18,18 +18,18 @@  discard block
 block discarded – undo
18 18
 
19 19
 	protected function setUp()
20 20
 	{
21
-		\Aimeos\MShop\Factory::setCache( true );
21
+		\Aimeos\MShop\Factory::setCache(true);
22 22
 
23 23
 		$this->context = \TestHelperJobs::getContext();
24 24
 		$this->aimeos = \TestHelperJobs::getAimeos();
25 25
 
26
-		$this->object = new \Aimeos\Controller\Jobs\Catalog\Export\Sitemap\Standard( $this->context, $this->aimeos );
26
+		$this->object = new \Aimeos\Controller\Jobs\Catalog\Export\Sitemap\Standard($this->context, $this->aimeos);
27 27
 	}
28 28
 
29 29
 
30 30
 	protected function tearDown()
31 31
 	{
32
-		\Aimeos\MShop\Factory::setCache( false );
32
+		\Aimeos\MShop\Factory::setCache(false);
33 33
 		\Aimeos\MShop\Factory::clear();
34 34
 
35 35
 		$this->object = null;
@@ -38,40 +38,40 @@  discard block
 block discarded – undo
38 38
 
39 39
 	public function testGetName()
40 40
 	{
41
-		$this->assertEquals( 'Catalog site map', $this->object->getName() );
41
+		$this->assertEquals('Catalog site map', $this->object->getName());
42 42
 	}
43 43
 
44 44
 
45 45
 	public function testGetDescription()
46 46
 	{
47 47
 		$text = 'Creates a catalog site map for search engines';
48
-		$this->assertEquals( $text, $this->object->getDescription() );
48
+		$this->assertEquals($text, $this->object->getDescription());
49 49
 	}
50 50
 
51 51
 
52 52
 	public function testRun()
53 53
 	{
54
-		$this->context->getConfig()->set( 'controller/jobs/catalog/export/sitemap/max-items', 5 );
54
+		$this->context->getConfig()->set('controller/jobs/catalog/export/sitemap/max-items', 5);
55 55
 
56 56
 		$this->object->run();
57 57
 
58 58
 		$ds = DIRECTORY_SEPARATOR;
59
-		$this->assertFileExists( 'tmp' . $ds . 'aimeos-catalog-sitemap-1.xml.gz' );
60
-		$this->assertFileExists( 'tmp' . $ds . 'aimeos-catalog-sitemap-2.xml.gz' );
61
-		$this->assertFileExists( 'tmp' . $ds . 'aimeos-catalog-sitemap-index.xml.gz' );
59
+		$this->assertFileExists('tmp' . $ds . 'aimeos-catalog-sitemap-1.xml.gz');
60
+		$this->assertFileExists('tmp' . $ds . 'aimeos-catalog-sitemap-2.xml.gz');
61
+		$this->assertFileExists('tmp' . $ds . 'aimeos-catalog-sitemap-index.xml.gz');
62 62
 
63
-		$file1 = gzread( gzopen( 'tmp' . $ds . 'aimeos-catalog-sitemap-1.xml.gz', 'rb' ), 0x1000 );
64
-		$file2 = gzread( gzopen( 'tmp' . $ds . 'aimeos-catalog-sitemap-2.xml.gz', 'rb' ), 0x1000 );
65
-		$index = gzread( gzopen( 'tmp' . $ds . 'aimeos-catalog-sitemap-index.xml.gz', 'rb' ), 0x1000 );
63
+		$file1 = gzread(gzopen('tmp' . $ds . 'aimeos-catalog-sitemap-1.xml.gz', 'rb'), 0x1000);
64
+		$file2 = gzread(gzopen('tmp' . $ds . 'aimeos-catalog-sitemap-2.xml.gz', 'rb'), 0x1000);
65
+		$index = gzread(gzopen('tmp' . $ds . 'aimeos-catalog-sitemap-index.xml.gz', 'rb'), 0x1000);
66 66
 
67
-		unlink( 'tmp' . $ds . 'aimeos-catalog-sitemap-1.xml.gz' );
68
-		unlink( 'tmp' . $ds . 'aimeos-catalog-sitemap-2.xml.gz' );
69
-		unlink( 'tmp' . $ds . 'aimeos-catalog-sitemap-index.xml.gz' );
67
+		unlink('tmp' . $ds . 'aimeos-catalog-sitemap-1.xml.gz');
68
+		unlink('tmp' . $ds . 'aimeos-catalog-sitemap-2.xml.gz');
69
+		unlink('tmp' . $ds . 'aimeos-catalog-sitemap-index.xml.gz');
70 70
 
71
-		$this->assertContains( 'Kaffee', $file2 );
72
-		$this->assertContains( 'Tee', $file2 );
71
+		$this->assertContains('Kaffee', $file2);
72
+		$this->assertContains('Tee', $file2);
73 73
 
74
-		$this->assertContains( 'aimeos-catalog-sitemap-1.xml.gz', $index );
75
-		$this->assertContains( 'aimeos-catalog-sitemap-2.xml.gz', $index );
74
+		$this->assertContains('aimeos-catalog-sitemap-1.xml.gz', $index);
75
+		$this->assertContains('aimeos-catalog-sitemap-2.xml.gz', $index);
76 76
 	}
77 77
 }
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
jobs/tests/Controller/Jobs/Catalog/Export/Sitemap/FactoryTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
 		$context = \TestHelperJobs::getContext();
17 17
 		$aimeos = \TestHelperJobs::getAimeos();
18 18
 
19
-		$obj = \Aimeos\Controller\Jobs\Catalog\Export\Sitemap\Factory::createController( $context, $aimeos );
20
-		$this->assertInstanceOf( '\\Aimeos\\Controller\\Jobs\\Iface', $obj);
19
+		$obj = \Aimeos\Controller\Jobs\Catalog\Export\Sitemap\Factory::createController($context, $aimeos);
20
+		$this->assertInstanceOf('\\Aimeos\\Controller\\Jobs\\Iface', $obj);
21 21
 	}
22 22
 
23 23
 
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 		$context = \TestHelperJobs::getContext();
27 27
 		$aimeos = \TestHelperJobs::getAimeos();
28 28
 
29
-		$this->setExpectedException( '\\Aimeos\\Controller\\Jobs\\Exception' );
30
-		\Aimeos\Controller\Jobs\Product\Export\Sitemap\Factory::createController( $context, $aimeos, 'Wrong$$$Name' );
29
+		$this->setExpectedException('\\Aimeos\\Controller\\Jobs\\Exception');
30
+		\Aimeos\Controller\Jobs\Product\Export\Sitemap\Factory::createController($context, $aimeos, 'Wrong$$$Name');
31 31
 	}
32 32
 
33 33
 
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 		$context = \TestHelperJobs::getContext();
37 37
 		$aimeos = \TestHelperJobs::getAimeos();
38 38
 
39
-		$this->setExpectedException( '\\Aimeos\\Controller\\Jobs\\Exception' );
40
-		\Aimeos\Controller\Jobs\Product\Export\Sitemap\Factory::createController( $context, $aimeos, 'WrongClass' );
39
+		$this->setExpectedException('\\Aimeos\\Controller\\Jobs\\Exception');
40
+		\Aimeos\Controller\Jobs\Product\Export\Sitemap\Factory::createController($context, $aimeos, 'WrongClass');
41 41
 	}
42 42
 
43 43
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 		$context = \TestHelperJobs::getContext();
47 47
 		$aimeos = \TestHelperJobs::getAimeos();
48 48
 
49
-		$this->setExpectedException( '\\Aimeos\\Controller\\Jobs\\Exception' );
50
-		\Aimeos\Controller\Jobs\Product\Export\Sitemap\Factory::createController( $context, $aimeos, 'Factory' );
49
+		$this->setExpectedException('\\Aimeos\\Controller\\Jobs\\Exception');
50
+		\Aimeos\Controller\Jobs\Product\Export\Sitemap\Factory::createController($context, $aimeos, 'Factory');
51 51
 	}
52 52
 }
53 53
\ No newline at end of file
Please login to merge, or discard this patch.
controller/jobs/tests/config/controller.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 	'jobs' => array(
5 5
 		'product' => array(
6 6
 			'export' => array(
7
-				'location' => dirname( __DIR__ ) . DIRECTORY_SEPARATOR . 'tmp',
7
+				'location' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'tmp',
8 8
 				'max-items' => 15,
9 9
 				'max-query' => 5,
10 10
 				'sitemap' => array(
11
-					'location' => dirname( __DIR__ ) . DIRECTORY_SEPARATOR . 'tmp',
11
+					'location' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'tmp',
12 12
 					'max-items' => 15,
13 13
 					'max-query' => 5,
14 14
 				),
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 		'catalog' => array(
18 18
 			'export' => array(
19 19
 				'sitemap' => array(
20
-					'location' => dirname( __DIR__ ) . DIRECTORY_SEPARATOR . 'tmp',
20
+					'location' => dirname(__DIR__) . DIRECTORY_SEPARATOR . 'tmp',
21 21
 					'max-items' => 10,
22 22
 					'max-query' => 3,
23 23
 				),
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Catalog/Export/Sitemap/Factory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 * @param string|null $name Name of the controller or "Standard" if null
30 30
 	 * @return \Aimeos\Controller\Jobs\Iface New controller object
31 31
 	 */
32
-	public static function createController( \Aimeos\MShop\Context\Item\Iface $context, \Aimeos\Bootstrap $aimeos, $name = null )
32
+	public static function createController(\Aimeos\MShop\Context\Item\Iface $context, \Aimeos\Bootstrap $aimeos, $name = null)
33 33
 	{
34 34
 		/** controller/jobs/catalog/export/sitemap/name
35 35
 		 * Class name of the used catalog sitemap export scheduler controller implementation
@@ -64,19 +64,19 @@  discard block
 block discarded – undo
64 64
 		 * @since 2018.11
65 65
 		 * @category Developer
66 66
 		 */
67
-		if ( $name === null ) {
68
-			$name = $context->getConfig()->get( 'controller/jobs/catalog/export/sitemap/name', 'Standard' );
67
+		if ($name === null) {
68
+			$name = $context->getConfig()->get('controller/jobs/catalog/export/sitemap/name', 'Standard');
69 69
 		}
70 70
 
71
-		if ( ctype_alnum( $name ) === false ) {
72
-			$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Catalog\\Export\\Sitemap\\' . $name : '<not a string>';
73
-			throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
71
+		if (ctype_alnum($name) === false) {
72
+			$classname = is_string($name) ? '\\Aimeos\\Controller\\Jobs\\Catalog\\Export\\Sitemap\\' . $name : '<not a string>';
73
+			throw new \Aimeos\Controller\Jobs\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
74 74
 		}
75 75
 
76 76
 		$iface = '\\Aimeos\\Controller\\Jobs\\Iface';
77 77
 		$classname = '\\Aimeos\\Controller\\Jobs\\Catalog\\Export\\Sitemap\\' . $name;
78 78
 
79
-		$controller = self::createControllerBase( $context, $aimeos, $classname, $iface );
79
+		$controller = self::createControllerBase($context, $aimeos, $classname, $iface);
80 80
 
81 81
 		/** controller/jobs/catalog/export/sitemap/decorators/excludes
82 82
 		 * Excludes decorators added by the "common" option from the catalog export sitemap job controller
@@ -153,6 +153,6 @@  discard block
 block discarded – undo
153 153
 		 * @see controller/jobs/catalog/export/sitemap/export/sitemap/decorators/excludes
154 154
 		 * @see controller/jobs/catalog/export/sitemap/export/sitemap/decorators/global
155 155
 		 */
156
-		return self::addControllerDecorators( $context, $aimeos, $controller, 'catalog/export/sitemap' );
156
+		return self::addControllerDecorators($context, $aimeos, $controller, 'catalog/export/sitemap');
157 157
 	}
158 158
 }
159 159
\ No newline at end of file
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Catalog/Export/Sitemap/Standard.php 1 patch
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	public function getName()
30 30
 	{
31
-		return $this->getContext()->getI18n()->dt( 'controller/jobs', 'Catalog site map' );
31
+		return $this->getContext()->getI18n()->dt('controller/jobs', 'Catalog site map');
32 32
 	}
33 33
 
34 34
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 	 */
40 40
 	public function getDescription()
41 41
 	{
42
-		return $this->getContext()->getI18n()->dt( 'controller/jobs', 'Creates a catalog site map for search engines' );
42
+		return $this->getContext()->getI18n()->dt('controller/jobs', 'Creates a catalog site map for search engines');
43 43
 	}
44 44
 
45 45
 
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 	{
53 53
 		$container = $this->createContainer();
54 54
 
55
-		$files = $this->export( $container );
56
-		$this->createSitemapIndex( $container, $files );
55
+		$files = $this->export($container);
56
+		$this->createSitemapIndex($container, $files);
57 57
 
58 58
 		$container->close();
59 59
 	}
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * @param \Aimeos\MW\Container\Content\Iface $content File content object
66 66
 	 * @param \Aimeos\MShop\Catalog\Item\Iface[] $items List of catalog items
67 67
 	 */
68
-	protected function addItems( \Aimeos\MW\Container\Content\Iface $content, array $items )
68
+	protected function addItems(\Aimeos\MW\Container\Content\Iface $content, array $items)
69 69
 	{
70 70
 		$config = $this->getContext()->getConfig();
71 71
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 		 * @see controller/jobs/catalog/export/sitemap/max-items
97 97
 		 * @see controller/jobs/catalog/export/sitemap/max-query
98 98
 		 */
99
-		$changefreq = $config->get( 'controller/jobs/catalog/export/sitemap/changefreq', 'daily' );
99
+		$changefreq = $config->get('controller/jobs/catalog/export/sitemap/changefreq', 'daily');
100 100
 
101 101
 		/** controller/jobs/catalog/export/sitemap/standard/template-items
102 102
 		 * Relative path to the XML items template of the catalog site map job controller.
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 		$view->siteItems = $items;
130 130
 		$view->siteFreq = $changefreq;
131 131
 
132
-		$content->add( $view->render( $context->getConfig()->get( $tplconf, $default ) ) );
132
+		$content->add($view->render($context->getConfig()->get($tplconf, $default)));
133 133
 	}
134 134
 
135 135
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 		 * @see controller/jobs/catalog/export/sitemap/max-query
176 176
 		 * @see controller/jobs/catalog/export/sitemap/changefreq
177 177
 		 */
178
-		$location = $config->get( 'controller/jobs/catalog/export/sitemap/location' );
178
+		$location = $config->get('controller/jobs/catalog/export/sitemap/location');
179 179
 
180 180
 		/** controller/jobs/catalog/export/sitemap/container/options
181 181
 		 * List of file container options for the site map files
@@ -197,14 +197,14 @@  discard block
 block discarded – undo
197 197
 		 * @see controller/jobs/catalog/export/sitemap/changefreq
198 198
 		 */
199 199
 		$default = array('gzip-mode' => 'wb');
200
-		$options = $config->get( 'controller/jobs/catalog/export/sitemap/container/options', $default );
200
+		$options = $config->get('controller/jobs/catalog/export/sitemap/container/options', $default);
201 201
 
202
-		if ( $location === null ) {
203
-			$msg = sprintf( 'Required configuration for "%1$s" is missing', 'controller/jobs/catalog/export/sitemap/location' );
204
-			throw new \Aimeos\Controller\Jobs\Exception( $msg );
202
+		if ($location === null) {
203
+			$msg = sprintf('Required configuration for "%1$s" is missing', 'controller/jobs/catalog/export/sitemap/location');
204
+			throw new \Aimeos\Controller\Jobs\Exception($msg);
205 205
 		}
206 206
 
207
-		return \Aimeos\MW\Container\Factory::getContainer( $location, 'Directory', 'Gzip', $options );
207
+		return \Aimeos\MW\Container\Factory::getContainer($location, 'Directory', 'Gzip', $options);
208 208
 	}
209 209
 
210 210
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	 * @param integer $filenum New file number
216 216
 	 * @return \Aimeos\MW\Container\Content\Iface New content object
217 217
 	 */
218
-	protected function createContent( \Aimeos\MW\Container\Iface $container, $filenum )
218
+	protected function createContent(\Aimeos\MW\Container\Iface $container, $filenum)
219 219
 	{
220 220
 		/** controller/jobs/catalog/export/sitemap/standard/template-header
221 221
 		 * Relative path to the XML site map header template of the catalog site map job controller.
@@ -245,9 +245,9 @@  discard block
 block discarded – undo
245 245
 		$context = $this->getContext();
246 246
 		$view = $context->getView();
247 247
 
248
-		$content = $container->create( $this->getFilename( $filenum ) );
249
-		$content->add( $view->render( $context->getConfig()->get( $tplconf, $default ) ) );
250
-		$container->add( $content );
248
+		$content = $container->create($this->getFilename($filenum));
249
+		$content->add($view->render($context->getConfig()->get($tplconf, $default)));
250
+		$container->add($content);
251 251
 
252 252
 		return $content;
253 253
 	}
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 	 *
259 259
 	 * @param \Aimeos\MW\Container\Content\Iface $content
260 260
 	 */
261
-	protected function closeContent( \Aimeos\MW\Container\Content\Iface $content )
261
+	protected function closeContent(\Aimeos\MW\Container\Content\Iface $content)
262 262
 	{
263 263
 		/** controller/jobs/catalog/export/sitemap/standard/template-footer
264 264
 		 * Relative path to the XML site map footer template of the catalog site map job controller.
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 		$context = $this->getContext();
289 289
 		$view = $context->getView();
290 290
 
291
-		$content->add( $view->render( $context->getConfig()->get( $tplconf, $default ) ) );
291
+		$content->add($view->render($context->getConfig()->get($tplconf, $default)));
292 292
 	}
293 293
 
294 294
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 	 * @param \Aimeos\MW\Container\Iface $container File container object
299 299
 	 * @param array $files List of generated site map file names
300 300
 	 */
301
-	protected function createSitemapIndex( \Aimeos\MW\Container\Iface $container, array $files )
301
+	protected function createSitemapIndex(\Aimeos\MW\Container\Iface $container, array $files)
302 302
 	{
303 303
 		/** controller/jobs/catalog/export/sitemap/standard/template-index
304 304
 		 * Relative path to the XML site map index template of the catalog site map job controller.
@@ -330,9 +330,9 @@  discard block
 block discarded – undo
330 330
 
331 331
 		$view->siteFiles = $files;
332 332
 
333
-		$content = $container->create( 'aimeos-catalog-sitemap-index.xml' );
334
-		$content->add( $view->render( $context->getConfig()->get( $tplconf, $default ) ) );
335
-		$container->add( $content );
333
+		$content = $container->create('aimeos-catalog-sitemap-index.xml');
334
+		$content->add($view->render($context->getConfig()->get($tplconf, $default)));
335
+		$container->add($content);
336 336
 	}
337 337
 
338 338
 
@@ -343,41 +343,41 @@  discard block
 block discarded – undo
343 343
 	 * @param boolean $default True to filter exported catalogs by default criteria
344 344
 	 * @return array List of content (file) names
345 345
 	 */
346
-	protected function export( \Aimeos\MW\Container\Iface $container, $default = true )
346
+	protected function export(\Aimeos\MW\Container\Iface $container, $default = true)
347 347
 	{
348
-		$domains = $this->getConfig( 'domains', [] );
349
-		$maxItems = $this->getConfig( 'max-items', 10000 );
350
-		$maxQuery = $this->getConfig( 'max-query', 1000 );
348
+		$domains = $this->getConfig('domains', []);
349
+		$maxItems = $this->getConfig('max-items', 10000);
350
+		$maxQuery = $this->getConfig('max-query', 1000);
351 351
 
352 352
 		$start = 0;
353 353
 		$filenum = 1;
354 354
 		$names = [];
355 355
 
356
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'catalog' );
356
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'catalog');
357 357
 
358
-		$search = $manager->createSearch( $default );
359
-		$search->setSortations( array($search->sort( '+', 'catalog.id' )) );
360
-		$search->setSlice( 0, $maxQuery );
358
+		$search = $manager->createSearch($default);
359
+		$search->setSortations(array($search->sort('+', 'catalog.id')));
360
+		$search->setSlice(0, $maxQuery);
361 361
 
362
-		$content = $this->createContent( $container, $filenum );
362
+		$content = $this->createContent($container, $filenum);
363 363
 		$names[] = $content->getResource();
364 364
 
365 365
 		do {
366
-			$items = $manager->searchItems( $search, $domains );
367
-			$this->addItems( $content, $items );
366
+			$items = $manager->searchItems($search, $domains);
367
+			$this->addItems($content, $items);
368 368
 
369
-			$count = count( $items );
369
+			$count = count($items);
370 370
 			$start += $count;
371
-			$search->setSlice( $start, $maxQuery );
371
+			$search->setSlice($start, $maxQuery);
372 372
 
373
-			if ( $start + $maxQuery > $maxItems * $filenum ) {
374
-				$this->closeContent( $content );
375
-				$content = $this->createContent( $container, ++$filenum );
373
+			if ($start + $maxQuery > $maxItems * $filenum) {
374
+				$this->closeContent($content);
375
+				$content = $this->createContent($container, ++$filenum);
376 376
 				$names[] = $content->getResource();
377 377
 			}
378 378
 		} while ($count >= $search->getSliceSize());
379 379
 
380
-		$this->closeContent( $content );
380
+		$this->closeContent($content);
381 381
 
382 382
 		return $names;
383 383
 	}
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 	 * @param mixed $default Default value if name is unknown
391 391
 	 * @return mixed Configuration value
392 392
 	 */
393
-	protected function getConfig( $name, $default = null )
393
+	protected function getConfig($name, $default = null)
394 394
 	{
395 395
 		$config = $this->getContext()->getConfig();
396 396
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 				 * @see controller/jobs/catalog/export/sitemap/max-query
415 415
 				 * @see controller/jobs/catalog/export/sitemap/changefreq
416 416
 				 */
417
-				return $config->get( 'controller/jobs/catalog/export/sitemap/domains', $default );
417
+				return $config->get('controller/jobs/catalog/export/sitemap/domains', $default);
418 418
 
419 419
 			case 'max-items':
420 420
 				/** controller/jobs/catalog/export/sitemap/max-items
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
 				 * @see controller/jobs/catalog/export/sitemap/changefreq
440 440
 				 * @see controller/jobs/catalog/export/sitemap/domains
441 441
 				 */
442
-				return $config->get( 'controller/jobs/catalog/export/sitemap/max-items', 50000 );
442
+				return $config->get('controller/jobs/catalog/export/sitemap/max-items', 50000);
443 443
 
444 444
 			case 'max-query':
445 445
 				/** controller/jobs/catalog/export/sitemap/max-query
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
 				 * @see controller/jobs/catalog/export/sitemap/changefreq
461 461
 				 * @see controller/jobs/catalog/export/sitemap/domains
462 462
 				 */
463
-				return $config->get( 'controller/jobs/catalog/export/sitemap/max-query', 1000 );
463
+				return $config->get('controller/jobs/catalog/export/sitemap/max-query', 1000);
464 464
 		}
465 465
 
466 466
 		return $default;
@@ -473,8 +473,8 @@  discard block
 block discarded – undo
473 473
 	 * @param integer $number Current file number
474 474
 	 * @return string New file name
475 475
 	 */
476
-	protected function getFilename( $number )
476
+	protected function getFilename($number)
477 477
 	{
478
-		return sprintf( 'aimeos-catalog-sitemap-%d.xml', $number );
478
+		return sprintf('aimeos-catalog-sitemap-%d.xml', $number);
479 479
 	}
480 480
 }
Please login to merge, or discard this patch.