Completed
Push — master ( eb1cb8...a47bac )
by Aimeos
02:06
created
controller/frontend/src/Controller/Frontend/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 *
29 29
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Common MShop context object
30 30
 	 */
31
-	public function __construct( \Aimeos\MShop\Context\Item\Iface $context )
31
+	public function __construct(\Aimeos\MShop\Context\Item\Iface $context)
32 32
 	{
33 33
 		$this->context = $context;
34 34
 	}
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 	 * @param array $param List of method parameter
42 42
 	 * @throws \Aimeos\Controller\Frontend\Exception If method call failed
43 43
 	 */
44
-	public function __call( $name, array $param )
44
+	public function __call($name, array $param)
45 45
 	{
46
-		throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Unable to call method "%1$s"', $name ) );
46
+		throw new \Aimeos\Controller\Frontend\Exception(sprintf('Unable to call method "%1$s"', $name));
47 47
 	}
48 48
 
49 49
 
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Service/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 implementaton (default: "Standard")
30 30
 	 * @return \Aimeos\Controller\Frontend\Service\Iface Controller object
31 31
 	 */
32
-	public static function createController( \Aimeos\MShop\Context\Item\Iface $context, $name = null )
32
+	public static function createController(\Aimeos\MShop\Context\Item\Iface $context, $name = null)
33 33
 	{
34 34
 		/** controller/frontend/service/name
35 35
 		 * Class name of the used service frontend controller implementation
@@ -64,19 +64,19 @@  discard block
 block discarded – undo
64 64
 		 * @since 2014.03
65 65
 		 * @category Developer
66 66
 		 */
67
-		if( $name === null ) {
68
-			$name = $context->getConfig()->get( 'controller/frontend/service/name', 'Standard' );
67
+		if ($name === null) {
68
+			$name = $context->getConfig()->get('controller/frontend/service/name', 'Standard');
69 69
 		}
70 70
 
71
-		if( ctype_alnum( $name ) === false ) {
72
-			$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Frontend\\Service\\' . $name : '<not a string>';
73
-			throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
71
+		if (ctype_alnum($name) === false) {
72
+			$classname = is_string($name) ? '\\Aimeos\\Controller\\Frontend\\Service\\' . $name : '<not a string>';
73
+			throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
74 74
 		}
75 75
 
76 76
 		$iface = '\\Aimeos\\Controller\\Frontend\\Service\\Iface';
77 77
 		$classname = '\\Aimeos\\Controller\\Frontend\\Service\\' . $name;
78 78
 
79
-		$manager = self::createControllerBase( $context, $classname, $iface );
79
+		$manager = self::createControllerBase($context, $classname, $iface);
80 80
 
81 81
 		/** controller/frontend/service/decorators/excludes
82 82
 		 * Excludes decorators added by the "common" option from the service frontend controllers
@@ -152,6 +152,6 @@  discard block
 block discarded – undo
152 152
 		 * @see controller/frontend/service/decorators/excludes
153 153
 		 * @see controller/frontend/service/decorators/global
154 154
 		 */
155
-		return self::addControllerDecorators( $context, $manager, 'service' );
155
+		return self::addControllerDecorators($context, $manager, 'service');
156 156
 	}
157 157
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Product/Factory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * @param string|null $name Name of the controller implementaton (default: "Standard")
29 29
 	 * @return \Aimeos\Controller\Frontend\Product\Iface Controller object
30 30
 	 */
31
-	public static function createController( \Aimeos\MShop\Context\Item\Iface $context, $name = null )
31
+	public static function createController(\Aimeos\MShop\Context\Item\Iface $context, $name = null)
32 32
 	{
33 33
 		/** controller/frontend/product/name
34 34
 		 * Class name of the used product frontend controller implementation
@@ -63,20 +63,20 @@  discard block
 block discarded – undo
63 63
 		 * @since 2017.03
64 64
 		 * @category Developer
65 65
 		 */
66
-		if( $name === null ) {
67
-			$name = $context->getConfig()->get( 'controller/frontend/product/name', 'Standard' );
66
+		if ($name === null) {
67
+			$name = $context->getConfig()->get('controller/frontend/product/name', 'Standard');
68 68
 		}
69 69
 
70
-		if( ctype_alnum( $name ) === false )
70
+		if (ctype_alnum($name) === false)
71 71
 		{
72
-			$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Frontend\\Product\\' . $name : '<not a string>';
73
-			throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
72
+			$classname = is_string($name) ? '\\Aimeos\\Controller\\Frontend\\Product\\' . $name : '<not a string>';
73
+			throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
74 74
 		}
75 75
 
76 76
 		$iface = '\\Aimeos\\Controller\\Frontend\\Product\\Iface';
77 77
 		$classname = '\\Aimeos\\Controller\\Frontend\\Product\\' . $name;
78 78
 
79
-		$manager = self::createControllerBase( $context, $classname, $iface );
79
+		$manager = self::createControllerBase($context, $classname, $iface);
80 80
 
81 81
 		/** controller/frontend/product/decorators/excludes
82 82
 		 * Excludes decorators added by the "common" option from the product frontend controllers
@@ -152,6 +152,6 @@  discard block
 block discarded – undo
152 152
 		 * @see controller/frontend/product/decorators/excludes
153 153
 		 * @see controller/frontend/product/decorators/global
154 154
 		 */
155
-		return self::addControllerDecorators( $context, $manager, 'product' );
155
+		return self::addControllerDecorators($context, $manager, 'product');
156 156
 	}
157 157
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Stock/Iface.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
28 28
 	 * @since 2017.03
29 29
 	 */
30
-	public function addFilterCodes( \Aimeos\MW\Criteria\Iface $filter, array $codes );
30
+	public function addFilterCodes(\Aimeos\MW\Criteria\Iface $filter, array $codes);
31 31
 
32 32
 
33 33
 	/**
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
39 39
 	 * @since 2017.03
40 40
 	 */
41
-	public function addFilterTypes( \Aimeos\MW\Criteria\Iface $filter, array $codes );
41
+	public function addFilterTypes(\Aimeos\MW\Criteria\Iface $filter, array $codes);
42 42
 
43 43
 
44 44
 	/**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 * @return \Aimeos\MShop\Stock\Item\Iface Stock item including the referenced domains items
59 59
 	 * @since 2017.03
60 60
 	 */
61
-	public function getItem( $id );
61
+	public function getItem($id);
62 62
 
63 63
 
64 64
 	/**
@@ -69,5 +69,5 @@  discard block
 block discarded – undo
69 69
 	 * @return array Ordered list of stock items implementing \Aimeos\MShop\Stock\Item\Iface
70 70
 	 * @since 2017.03
71 71
 	 */
72
-	public function searchItems( \Aimeos\MW\Criteria\Iface $filter, &$total = null );
72
+	public function searchItems(\Aimeos\MW\Criteria\Iface $filter, &$total = null);
73 73
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Stock/Factory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * @param string|null $name Name of the controller implementaton (default: "Standard")
29 29
 	 * @return \Aimeos\Controller\Frontend\Stock\Iface Controller object
30 30
 	 */
31
-	public static function createController( \Aimeos\MShop\Context\Item\Iface $context, $name = null )
31
+	public static function createController(\Aimeos\MShop\Context\Item\Iface $context, $name = null)
32 32
 	{
33 33
 		/** controller/frontend/stock/name
34 34
 		 * Class name of the used stock frontend controller implementation
@@ -63,20 +63,20 @@  discard block
 block discarded – undo
63 63
 		 * @since 2017.03
64 64
 		 * @category Developer
65 65
 		 */
66
-		if( $name === null ) {
67
-			$name = $context->getConfig()->get( 'controller/frontend/stock/name', 'Standard' );
66
+		if ($name === null) {
67
+			$name = $context->getConfig()->get('controller/frontend/stock/name', 'Standard');
68 68
 		}
69 69
 
70
-		if( ctype_alnum( $name ) === false )
70
+		if (ctype_alnum($name) === false)
71 71
 		{
72
-			$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Frontend\\Stock\\' . $name : '<not a string>';
73
-			throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
72
+			$classname = is_string($name) ? '\\Aimeos\\Controller\\Frontend\\Stock\\' . $name : '<not a string>';
73
+			throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
74 74
 		}
75 75
 
76 76
 		$iface = '\\Aimeos\\Controller\\Frontend\\Stock\\Iface';
77 77
 		$classname = '\\Aimeos\\Controller\\Frontend\\Stock\\' . $name;
78 78
 
79
-		$manager = self::createControllerBase( $context, $classname, $iface );
79
+		$manager = self::createControllerBase($context, $classname, $iface);
80 80
 
81 81
 		/** controller/frontend/stock/decorators/excludes
82 82
 		 * Excludes decorators added by the "common" option from the stock frontend controllers
@@ -152,6 +152,6 @@  discard block
 block discarded – undo
152 152
 		 * @see controller/frontend/stock/decorators/excludes
153 153
 		 * @see controller/frontend/stock/decorators/global
154 154
 		 */
155
-		return self::addControllerDecorators( $context, $manager, 'stock' );
155
+		return self::addControllerDecorators($context, $manager, 'stock');
156 156
 	}
157 157
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Attribute/Factory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * @param string|null $name Name of the controller implementaton (default: "Standard")
29 29
 	 * @return \Aimeos\Controller\Frontend\Attribute\Iface Controller object
30 30
 	 */
31
-	public static function createController( \Aimeos\MShop\Context\Item\Iface $context, $name = null )
31
+	public static function createController(\Aimeos\MShop\Context\Item\Iface $context, $name = null)
32 32
 	{
33 33
 		/** controller/frontend/attribute/name
34 34
 		 * Class name of the used attribute frontend controller implementation
@@ -63,20 +63,20 @@  discard block
 block discarded – undo
63 63
 		 * @since 2014.03
64 64
 		 * @category Developer
65 65
 		 */
66
-		if( $name === null ) {
67
-			$name = $context->getConfig()->get( 'controller/frontend/attribute/name', 'Standard' );
66
+		if ($name === null) {
67
+			$name = $context->getConfig()->get('controller/frontend/attribute/name', 'Standard');
68 68
 		}
69 69
 
70
-		if( ctype_alnum( $name ) === false )
70
+		if (ctype_alnum($name) === false)
71 71
 		{
72
-			$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Frontend\\Attribute\\' . $name : '<not a string>';
73
-			throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
72
+			$classname = is_string($name) ? '\\Aimeos\\Controller\\Frontend\\Attribute\\' . $name : '<not a string>';
73
+			throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
74 74
 		}
75 75
 
76 76
 		$iface = '\\Aimeos\\Controller\\Frontend\\Attribute\\Iface';
77 77
 		$classname = '\\Aimeos\\Controller\\Frontend\\Attribute\\' . $name;
78 78
 
79
-		$manager = self::createControllerBase( $context, $classname, $iface );
79
+		$manager = self::createControllerBase($context, $classname, $iface);
80 80
 
81 81
 		/** controller/frontend/attribute/decorators/excludes
82 82
 		 * Excludes decorators added by the "common" option from the attribute frontend controllers
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 		 * @see controller/frontend/attribute/decorators/excludes
153 153
 		 * @see controller/frontend/attribute/decorators/global
154 154
 		 */
155
-		return self::addControllerDecorators( $context, $manager, 'attribute' );
155
+		return self::addControllerDecorators($context, $manager, 'attribute');
156 156
 	}
157 157
 
158 158
 }
Please login to merge, or discard this patch.
controller/frontend/tests/Controller/Frontend/BaseTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,31 +18,31 @@
 block discarded – undo
18 18
 	{
19 19
 		$context = \TestHelperFrontend::getContext();
20 20
 
21
-		$this->object = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Base' )
22
-			->setConstructorArgs( [$context] )
21
+		$this->object = $this->getMockBuilder('\Aimeos\Controller\Frontend\Base')
22
+			->setConstructorArgs([$context])
23 23
 			->getMockForAbstractClass();
24 24
 	}
25 25
 
26 26
 
27 27
 	protected function tearDown()
28 28
 	{
29
-		unset( $this->object );
29
+		unset($this->object);
30 30
 	}
31 31
 
32 32
 
33 33
 	public function testGetContext()
34 34
 	{
35
-		$result = $this->access( 'getContext' )->invokeArgs( $this->object, [] );
35
+		$result = $this->access('getContext')->invokeArgs($this->object, []);
36 36
 
37
-		$this->assertInstanceOf( '\Aimeos\MShop\Context\Item\Iface', $result );
37
+		$this->assertInstanceOf('\Aimeos\MShop\Context\Item\Iface', $result);
38 38
 	}
39 39
 
40 40
 
41
-	protected function access( $name )
41
+	protected function access($name)
42 42
 	{
43
-		$class = new \ReflectionClass( '\Aimeos\Controller\Frontend\Base' );
44
-		$method = $class->getMethod( $name );
45
-		$method->setAccessible( true );
43
+		$class = new \ReflectionClass('\Aimeos\Controller\Frontend\Base');
44
+		$method = $class->getMethod($name);
45
+		$method->setAccessible(true);
46 46
 
47 47
 		return $method;
48 48
 	}
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Attribute/Iface.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
28 28
 	 * @since 2017.03
29 29
 	 */
30
-	public function addFilterTypes( \Aimeos\MW\Criteria\Iface $filter, array $codes );
30
+	public function addFilterTypes(\Aimeos\MW\Criteria\Iface $filter, array $codes);
31 31
 
32 32
 
33 33
 	/**
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	 * @return \Aimeos\MShop\Attribute\Item\Iface Attribute item including the referenced domains items
48 48
 	 * @since 2017.03
49 49
 	 */
50
-	public function getItem( $id, array $domains = array( 'media', 'price', 'text' ) );
50
+	public function getItem($id, array $domains = array('media', 'price', 'text'));
51 51
 
52 52
 
53 53
 	/**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 * @return \Aimeos\MShop\Attribute\Item\Iface[] Associative list of attribute item including the referenced domains items
59 59
 	 * @since 2017.03
60 60
 	 */
61
-	public function getItems( array $ids, array $domains = array( 'media', 'price', 'text' ) );
61
+	public function getItems(array $ids, array $domains = array('media', 'price', 'text'));
62 62
 
63 63
 
64 64
 	/**
@@ -70,5 +70,5 @@  discard block
 block discarded – undo
70 70
 	 * @return array Ordered list of attribute items implementing \Aimeos\MShop\Attribute\Item\Iface
71 71
 	 * @since 2017.03
72 72
 	 */
73
-	public function searchItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null );
73
+	public function searchItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null);
74 74
 }
Please login to merge, or discard this patch.
controller/frontend/tests/Controller/Frontend/FactoryTest.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -14,92 +14,92 @@
 block discarded – undo
14 14
 {
15 15
 	public function testCreateController()
16 16
 	{
17
-		$controller = \Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), 'basket' );
18
-		$this->assertInstanceOf( '\\Aimeos\\Controller\\Frontend\\Iface', $controller );
17
+		$controller = \Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), 'basket');
18
+		$this->assertInstanceOf('\\Aimeos\\Controller\\Frontend\\Iface', $controller);
19 19
 	}
20 20
 
21 21
 
22 22
 	public function testCreateControllerEmpty()
23 23
 	{
24
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
25
-		\Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), '' );
24
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
25
+		\Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), '');
26 26
 	}
27 27
 
28 28
 
29 29
 	public function testCreateControllerInvalidName()
30 30
 	{
31
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
32
-		\Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), '%^' );
31
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
32
+		\Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), '%^');
33 33
 	}
34 34
 
35 35
 
36 36
 	public function testCreateControllerNotExisting()
37 37
 	{
38
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
39
-		\Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), 'notexist' );
38
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
39
+		\Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), 'notexist');
40 40
 	}
41 41
 
42 42
 
43 43
 	public function testCreateSubControllerNotExisting()
44 44
 	{
45
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
46
-		\Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), 'basket/notexist' );
45
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
46
+		\Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), 'basket/notexist');
47 47
 	}
48 48
 
49 49
 
50 50
 	public function testClear()
51 51
 	{
52
-		$cache = \Aimeos\Controller\Frontend\Factory::setCache( true );
52
+		$cache = \Aimeos\Controller\Frontend\Factory::setCache(true);
53 53
 
54 54
 		$context = \TestHelperFrontend::getContext();
55 55
 
56
-		$controller1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
56
+		$controller1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
57 57
 		\Aimeos\Controller\Frontend\Factory::clear();
58
-		$controller2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
58
+		$controller2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
59 59
 
60
-		\Aimeos\Controller\Frontend\Factory::setCache( $cache );
60
+		\Aimeos\Controller\Frontend\Factory::setCache($cache);
61 61
 
62
-		$this->assertNotSame( $controller1, $controller2 );
62
+		$this->assertNotSame($controller1, $controller2);
63 63
 	}
64 64
 
65 65
 
66 66
 	public function testClearSite()
67 67
 	{
68
-		$cache = \Aimeos\Controller\Frontend\Factory::setCache( true );
68
+		$cache = \Aimeos\Controller\Frontend\Factory::setCache(true);
69 69
 
70 70
 		$context = \TestHelperFrontend::getContext();
71 71
 
72
-		$basket1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
73
-		$catalog1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'catalog' );
74
-		\Aimeos\Controller\Frontend\Factory::clear( (string) $context );
72
+		$basket1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
73
+		$catalog1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'catalog');
74
+		\Aimeos\Controller\Frontend\Factory::clear((string) $context);
75 75
 
76
-		$basket2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
77
-		$catalog2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'catalog' );
76
+		$basket2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
77
+		$catalog2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'catalog');
78 78
 
79
-		\Aimeos\Controller\Frontend\Factory::setCache( $cache );
79
+		\Aimeos\Controller\Frontend\Factory::setCache($cache);
80 80
 
81
-		$this->assertNotSame( $basket1, $basket2 );
82
-		$this->assertNotSame( $catalog1, $catalog2 );
81
+		$this->assertNotSame($basket1, $basket2);
82
+		$this->assertNotSame($catalog1, $catalog2);
83 83
 	}
84 84
 
85 85
 
86 86
 	public function testClearSpecific()
87 87
 	{
88
-		$cache = \Aimeos\Controller\Frontend\Factory::setCache( true );
88
+		$cache = \Aimeos\Controller\Frontend\Factory::setCache(true);
89 89
 
90 90
 		$context = \TestHelperFrontend::getContext();
91 91
 
92
-		$basket1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
93
-		$catalog1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'catalog' );
94
-		\Aimeos\Controller\Frontend\Factory::clear( (string) $context, 'basket' );
92
+		$basket1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
93
+		$catalog1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'catalog');
94
+		\Aimeos\Controller\Frontend\Factory::clear((string) $context, 'basket');
95 95
 
96
-		$basket2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
97
-		$catalog2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'catalog' );
96
+		$basket2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
97
+		$catalog2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'catalog');
98 98
 
99
-		\Aimeos\Controller\Frontend\Factory::setCache( $cache );
99
+		\Aimeos\Controller\Frontend\Factory::setCache($cache);
100 100
 
101
-		$this->assertNotSame( $basket1, $basket2 );
102
-		$this->assertSame( $catalog1, $catalog2 );
101
+		$this->assertNotSame($basket1, $basket2);
102
+		$this->assertSame($catalog1, $catalog2);
103 103
 	}
104 104
 
105 105
 }
106 106
\ No newline at end of file
Please login to merge, or discard this patch.