Completed
Push — master ( 23de31...df9ec1 )
by Aimeos
05:26
created
controller/frontend/tests/Controller/Frontend/FactoryTest.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -17,92 +17,92 @@
 block discarded – undo
17 17
 {
18 18
 	public function testCreateController()
19 19
 	{
20
-		$controller = \Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), 'basket' );
21
-		$this->assertInstanceOf( '\\Aimeos\\Controller\\Frontend\\Iface', $controller );
20
+		$controller = \Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), 'basket');
21
+		$this->assertInstanceOf('\\Aimeos\\Controller\\Frontend\\Iface', $controller);
22 22
 	}
23 23
 
24 24
 
25 25
 	public function testCreateControllerEmpty()
26 26
 	{
27
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
28
-		\Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), "\t\n" );
27
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
28
+		\Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), "\t\n");
29 29
 	}
30 30
 
31 31
 
32 32
 	public function testCreateControllerInvalidName()
33 33
 	{
34
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
35
-		\Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), '%^' );
34
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
35
+		\Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), '%^');
36 36
 	}
37 37
 
38 38
 
39 39
 	public function testCreateControllerNotExisting()
40 40
 	{
41
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
42
-		\Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), 'notexist' );
41
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
42
+		\Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), 'notexist');
43 43
 	}
44 44
 
45 45
 
46 46
 	public function testCreateSubControllerNotExisting()
47 47
 	{
48
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
49
-		\Aimeos\Controller\Frontend\Factory::createController( \TestHelperFrontend::getContext(), 'basket/notexist' );
48
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
49
+		\Aimeos\Controller\Frontend\Factory::createController(\TestHelperFrontend::getContext(), 'basket/notexist');
50 50
 	}
51 51
 
52 52
 
53 53
 	public function testClear()
54 54
 	{
55
-		$cache = \Aimeos\Controller\Frontend\Factory::setCache( true );
55
+		$cache = \Aimeos\Controller\Frontend\Factory::setCache(true);
56 56
 
57 57
 		$context = \TestHelperFrontend::getContext();
58 58
 
59
-		$controller1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
59
+		$controller1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
60 60
 		\Aimeos\Controller\Frontend\Factory::clear();
61
-		$controller2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
61
+		$controller2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
62 62
 
63
-		\Aimeos\Controller\Frontend\Factory::setCache( $cache );
63
+		\Aimeos\Controller\Frontend\Factory::setCache($cache);
64 64
 
65
-		$this->assertNotSame( $controller1, $controller2 );
65
+		$this->assertNotSame($controller1, $controller2);
66 66
 	}
67 67
 
68 68
 
69 69
 	public function testClearSite()
70 70
 	{
71
-		$cache = \Aimeos\Controller\Frontend\Factory::setCache( true );
71
+		$cache = \Aimeos\Controller\Frontend\Factory::setCache(true);
72 72
 
73 73
 		$context = \TestHelperFrontend::getContext();
74 74
 
75
-		$basket1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
76
-		$catalog1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'catalog' );
77
-		\Aimeos\Controller\Frontend\Factory::clear( (string) $context );
75
+		$basket1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
76
+		$catalog1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'catalog');
77
+		\Aimeos\Controller\Frontend\Factory::clear((string) $context);
78 78
 
79
-		$basket2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
80
-		$catalog2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'catalog' );
79
+		$basket2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
80
+		$catalog2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'catalog');
81 81
 
82
-		\Aimeos\Controller\Frontend\Factory::setCache( $cache );
82
+		\Aimeos\Controller\Frontend\Factory::setCache($cache);
83 83
 
84
-		$this->assertNotSame( $basket1, $basket2 );
85
-		$this->assertNotSame( $catalog1, $catalog2 );
84
+		$this->assertNotSame($basket1, $basket2);
85
+		$this->assertNotSame($catalog1, $catalog2);
86 86
 	}
87 87
 
88 88
 
89 89
 	public function testClearSpecific()
90 90
 	{
91
-		$cache = \Aimeos\Controller\Frontend\Factory::setCache( true );
91
+		$cache = \Aimeos\Controller\Frontend\Factory::setCache(true);
92 92
 
93 93
 		$context = \TestHelperFrontend::getContext();
94 94
 
95
-		$basket1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
96
-		$catalog1 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'catalog' );
97
-		\Aimeos\Controller\Frontend\Factory::clear( (string) $context, 'basket' );
95
+		$basket1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
96
+		$catalog1 = \Aimeos\Controller\Frontend\Factory::createController($context, 'catalog');
97
+		\Aimeos\Controller\Frontend\Factory::clear((string) $context, 'basket');
98 98
 
99
-		$basket2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' );
100
-		$catalog2 = \Aimeos\Controller\Frontend\Factory::createController( $context, 'catalog' );
99
+		$basket2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'basket');
100
+		$catalog2 = \Aimeos\Controller\Frontend\Factory::createController($context, 'catalog');
101 101
 
102
-		\Aimeos\Controller\Frontend\Factory::setCache( $cache );
102
+		\Aimeos\Controller\Frontend\Factory::setCache($cache);
103 103
 
104
-		$this->assertNotSame( $basket1, $basket2 );
105
-		$this->assertSame( $catalog1, $catalog2 );
104
+		$this->assertNotSame($basket1, $basket2);
105
+		$this->assertSame($catalog1, $catalog2);
106 106
 	}
107 107
 
108 108
 }
109 109
\ No newline at end of file
Please login to merge, or discard this patch.
frontend/tests/Controller/Frontend/Basket/Decorator/CategoryTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -12,35 +12,35 @@
 block discarded – undo
12 12
 	protected function setUp()
13 13
 	{
14 14
 		$this->context = \TestHelperFrontend::getContext();
15
-		$object = new \Aimeos\Controller\Frontend\Basket\Standard( $this->context );
16
-		$this->object = new \Aimeos\Controller\Frontend\Basket\Decorator\Category( $object, $this->context );
15
+		$object = new \Aimeos\Controller\Frontend\Basket\Standard($this->context);
16
+		$this->object = new \Aimeos\Controller\Frontend\Basket\Decorator\Category($object, $this->context);
17 17
 	}
18 18
 
19 19
 
20 20
 	protected function tearDown()
21 21
 	{
22 22
 		$this->object->clear();
23
-		$this->context->getSession()->set( 'aimeos', array() );
23
+		$this->context->getSession()->set('aimeos', array());
24 24
 
25
-		unset( $this->object );
25
+		unset($this->object);
26 26
 	}
27 27
 
28 28
 
29 29
 	public function testAddProductWithCategory()
30 30
 	{
31
-		$manager = \Aimeos\MShop\Factory::createManager( $this->context, 'product' );
32
-		$item = $manager->findItem( 'CNE' );
31
+		$manager = \Aimeos\MShop\Factory::createManager($this->context, 'product');
32
+		$item = $manager->findItem('CNE');
33 33
 
34
-		$this->object->addProduct( $item->getId(), 5 );
34
+		$this->object->addProduct($item->getId(), 5);
35 35
 	}
36 36
 
37 37
 
38 38
 	public function testAddProductNoCategory()
39 39
 	{
40
-		$manager = \Aimeos\MShop\Factory::createManager( $this->context, 'product' );
41
-		$item = $manager->findItem( 'ABCD' );
40
+		$manager = \Aimeos\MShop\Factory::createManager($this->context, 'product');
41
+		$item = $manager->findItem('ABCD');
42 42
 
43
-		$this->setExpectedException( '\Aimeos\Controller\Frontend\Basket\Exception' );
44
-		$this->object->addProduct( $item->getId(), 5 );
43
+		$this->setExpectedException('\Aimeos\Controller\Frontend\Basket\Exception');
44
+		$this->object->addProduct($item->getId(), 5);
45 45
 	}
46 46
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Basket/Decorator/Category.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -41,26 +41,26 @@
 block discarded – undo
41 41
 	 * @param string $warehouse Unique code of the warehouse to deliver the products from
42 42
 	 * @throws \Aimeos\Controller\Frontend\Basket\Exception If the product isn't available
43 43
 	 */
44
-	public function addProduct( $prodid, $quantity = 1, array $options = array(), array $variantAttributeIds = array(),
44
+	public function addProduct($prodid, $quantity = 1, array $options = array(), array $variantAttributeIds = array(),
45 45
 		array $configAttributeIds = array(), array $hiddenAttributeIds = array(), array $customAttributeValues = array(),
46
-		$warehouse = 'default' )
46
+		$warehouse = 'default')
47 47
 	{
48
-		$catalogListManager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'catalog/lists' );
48
+		$catalogListManager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'catalog/lists');
49 49
 
50
-		$search = $catalogListManager->createSearch( true );
50
+		$search = $catalogListManager->createSearch(true);
51 51
 		$expr = array(
52
-			$search->compare( '==', 'catalog.lists.refid', $prodid ),
52
+			$search->compare('==', 'catalog.lists.refid', $prodid),
53 53
 			$search->getConditions()
54 54
 		);
55
-		$search->setConditions( $search->combine( '&&', $expr ) );
56
-		$search->setSlice( 0, 1 );
55
+		$search->setConditions($search->combine('&&', $expr));
56
+		$search->setSlice(0, 1);
57 57
 
58
-		$result = $catalogListManager->searchItems( $search );
58
+		$result = $catalogListManager->searchItems($search);
59 59
 
60
-		if( reset( $result ) === false )
60
+		if (reset($result) === false)
61 61
 		{
62
-			$msg = sprintf( 'Adding product with ID "%1$s" is not allowed', $prodid );
63
-			throw new \Aimeos\Controller\Frontend\Basket\Exception( $msg );
62
+			$msg = sprintf('Adding product with ID "%1$s" is not allowed', $prodid);
63
+			throw new \Aimeos\Controller\Frontend\Basket\Exception($msg);
64 64
 		}
65 65
 
66 66
 		$this->getController()->addProduct(
Please login to merge, or discard this patch.
controller/frontend/config/controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 	'frontend' => array(
5 5
 		'basket' => array(
6 6
 			'decorators' => array(
7
-				'local' => array( 'Category' ),
7
+				'local' => array('Category'),
8 8
 			),
9 9
 		),
10 10
 	),
Please login to merge, or discard this patch.
controller/frontend/tests/TestHelperFrontend.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@  discard block
 block discarded – undo
15 15
 	public static function bootstrap()
16 16
 	{
17 17
 		self::getAimeos();
18
-		\Aimeos\MShop\Factory::setCache( false );
19
-		\Aimeos\Controller\Frontend\Factory::setCache( false );
18
+		\Aimeos\MShop\Factory::setCache(false);
19
+		\Aimeos\Controller\Frontend\Factory::setCache(false);
20 20
 	}
21 21
 
22 22
 
23
-	public static function getContext( $site = 'unittest' )
23
+	public static function getContext($site = 'unittest')
24 24
 	{
25
-		if( !isset( self::$context[$site] ) ) {
26
-			self::$context[$site] = self::createContext( $site );
25
+		if (!isset(self::$context[$site])) {
26
+			self::$context[$site] = self::createContext($site);
27 27
 		}
28 28
 
29 29
 		return clone self::$context[$site];
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
 
33 33
 	private static function getAimeos()
34 34
 	{
35
-		if( !isset( self::$aimeos ) )
35
+		if (!isset(self::$aimeos))
36 36
 		{
37 37
 			require_once 'Bootstrap.php';
38
-			spl_autoload_register( 'Aimeos\\Bootstrap::autoload' );
38
+			spl_autoload_register('Aimeos\\Bootstrap::autoload');
39 39
 
40
-			$extdir = dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) );
41
-			self::$aimeos = new \Aimeos\Bootstrap( array( $extdir ), true );
40
+			$extdir = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
41
+			self::$aimeos = new \Aimeos\Bootstrap(array($extdir), true);
42 42
 		}
43 43
 
44 44
 		return self::$aimeos;
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	/**
49 49
 	 * @param string $site
50 50
 	 */
51
-	private static function createContext( $site )
51
+	private static function createContext($site)
52 52
 	{
53 53
 		$ctx = new \Aimeos\MShop\Context\Item\Standard();
54 54
 		$aimeos = self::getAimeos();
@@ -58,34 +58,34 @@  discard block
 block discarded – undo
58 58
 		$paths[] = __DIR__ . DIRECTORY_SEPARATOR . 'config';
59 59
 		$file = __DIR__ . DIRECTORY_SEPARATOR . 'confdoc.ser';
60 60
 
61
-		$conf = new \Aimeos\MW\Config\PHPArray( array(), $paths );
62
-		$conf = new \Aimeos\MW\Config\Decorator\Memory( $conf );
63
-		$conf = new \Aimeos\MW\Config\Decorator\Documentor( $conf, $file );
64
-		$ctx->setConfig( $conf );
61
+		$conf = new \Aimeos\MW\Config\PHPArray(array(), $paths);
62
+		$conf = new \Aimeos\MW\Config\Decorator\Memory($conf);
63
+		$conf = new \Aimeos\MW\Config\Decorator\Documentor($conf, $file);
64
+		$ctx->setConfig($conf);
65 65
 
66 66
 
67
-		$dbm = new \Aimeos\MW\DB\Manager\PDO( $conf );
68
-		$ctx->setDatabaseManager( $dbm );
67
+		$dbm = new \Aimeos\MW\DB\Manager\PDO($conf);
68
+		$ctx->setDatabaseManager($dbm);
69 69
 
70 70
 
71
-		$logger = new \Aimeos\MW\Logger\File( 'unittest.log', \Aimeos\MW\Logger\Base::DEBUG );
72
-		$ctx->setLogger( $logger );
71
+		$logger = new \Aimeos\MW\Logger\File('unittest.log', \Aimeos\MW\Logger\Base::DEBUG);
72
+		$ctx->setLogger($logger);
73 73
 
74 74
 
75
-		$i18n = new \Aimeos\MW\Translation\None( 'de' );
76
-		$ctx->setI18n( array( 'de' => $i18n ) );
75
+		$i18n = new \Aimeos\MW\Translation\None('de');
76
+		$ctx->setI18n(array('de' => $i18n));
77 77
 
78 78
 
79 79
 		$session = new \Aimeos\MW\Session\None();
80
-		$ctx->setSession( $session );
80
+		$ctx->setSession($session);
81 81
 
82 82
 
83
-		$localeManager = \Aimeos\MShop\Locale\Manager\Factory::createManager( $ctx );
84
-		$locale = $localeManager->bootstrap( $site, '', '', false );
85
-		$ctx->setLocale( $locale );
83
+		$localeManager = \Aimeos\MShop\Locale\Manager\Factory::createManager($ctx);
84
+		$locale = $localeManager->bootstrap($site, '', '', false);
85
+		$ctx->setLocale($locale);
86 86
 
87 87
 
88
-		$ctx->setEditor( 'core:controller/frontend' );
88
+		$ctx->setEditor('core:controller/frontend');
89 89
 
90 90
 		return $ctx;
91 91
 	}
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Catalog/Decorator/Base.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
 	 * @param string $name Name of the manager
26 26
 	 * @return \Aimeos\MShop\Common\Manager\Iface Manager object
27 27
 	 */
28
-	public function createManager( $name )
28
+	public function createManager($name)
29 29
 	{
30
-		return $this->getController()->createManager( $name );
30
+		return $this->getController()->createManager($name);
31 31
 	}
32 32
 
33 33
 
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
 	 * @return array Associative list of items implementing \Aimeos\MShop\Catalog\Item\Iface with their IDs as keys
53 53
 	 * @since 2015.08
54 54
 	 */
55
-	public function getCatalogPath( $id, array $domains = array( 'text', 'media' ) )
55
+	public function getCatalogPath($id, array $domains = array('text', 'media'))
56 56
 	{
57
-		return $this->getController()->getCatalogPath( $id, $domains );
57
+		return $this->getController()->getCatalogPath($id, $domains);
58 58
 	}
59 59
 
60 60
 
@@ -69,10 +69,10 @@  discard block
 block discarded – undo
69 69
 	 * @return \Aimeos\MShop\Catalog\Item\Iface Catalog node, maybe with children depending on the level constant
70 70
 	 * @since 2015.08
71 71
 	 */
72
-	public function getCatalogTree( $id = null, array $domains = array( 'text', 'media' ),
73
-		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE, \Aimeos\MW\Criteria\Iface $search = null )
72
+	public function getCatalogTree($id = null, array $domains = array('text', 'media'),
73
+		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE, \Aimeos\MW\Criteria\Iface $search = null)
74 74
 	{
75
-		return $this->getController()->getCatalogTree( $id, $domains, $level, $search );
75
+		return $this->getController()->getCatalogTree($id, $domains, $level, $search);
76 76
 	}
77 77
 
78 78
 
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
 	 * @return array Associative list of key values as key and the product count for this key as value
85 85
 	 * @since 2015.08
86 86
 	 */
87
-	public function aggregateIndex( \Aimeos\MW\Criteria\Iface $filter, $key )
87
+	public function aggregateIndex(\Aimeos\MW\Criteria\Iface $filter, $key)
88 88
 	{
89
-		return $this->getController()->aggregateIndex( $filter, $key );
89
+		return $this->getController()->aggregateIndex($filter, $key);
90 90
 	}
91 91
 
92 92
 
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
99 99
 	 * @since 2015.08
100 100
 	 */
101
-	public function addIndexFilterCategory( \Aimeos\MW\Criteria\Iface $search, $catid )
101
+	public function addIndexFilterCategory(\Aimeos\MW\Criteria\Iface $search, $catid)
102 102
 	{
103
-		return $this->getController()->addIndexFilterCategory( $search, $catid );
103
+		return $this->getController()->addIndexFilterCategory($search, $catid);
104 104
 	}
105 105
 
106 106
 
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
114 114
 	 * @since 2015.08
115 115
 	 */
116
-	public function addIndexFilterText( \Aimeos\MW\Criteria\Iface $search, $input, $listtype = 'default' )
116
+	public function addIndexFilterText(\Aimeos\MW\Criteria\Iface $search, $input, $listtype = 'default')
117 117
 	{
118
-		return $this->getController()->addIndexFilterText( $search, $input, $listtype );
118
+		return $this->getController()->addIndexFilterText($search, $input, $listtype);
119 119
 	}
120 120
 
121 121
 
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
131 131
 	 * @since 2015.08
132 132
 	 */
133
-	public function createIndexFilter( $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
133
+	public function createIndexFilter($sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default')
134 134
 	{
135
-		return $this->getController()->createIndexFilter( $sort, $direction, $start, $size, $listtype );
135
+		return $this->getController()->createIndexFilter($sort, $direction, $start, $size, $listtype);
136 136
 	}
137 137
 
138 138
 
@@ -148,9 +148,9 @@  discard block
 block discarded – undo
148 148
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
149 149
 	 * @since 2015.08
150 150
 	 */
151
-	public function createIndexFilterCategory( $catid, $sort = 'position', $direction = 'asc', $start = 0, $size = 100, $listtype = 'default' )
151
+	public function createIndexFilterCategory($catid, $sort = 'position', $direction = 'asc', $start = 0, $size = 100, $listtype = 'default')
152 152
 	{
153
-		return $this->getController()->createIndexFilter( $catid, $sort, $direction, $start, $size, $listtype );
153
+		return $this->getController()->createIndexFilter($catid, $sort, $direction, $start, $size, $listtype);
154 154
 	}
155 155
 
156 156
 
@@ -166,9 +166,9 @@  discard block
 block discarded – undo
166 166
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
167 167
 	 * @since 2015.08
168 168
 	 */
169
-	public function createIndexFilterText( $input, $sort = 'relevance', $direction = 'asc', $start = 0, $size = 100, $listtype = 'default' )
169
+	public function createIndexFilterText($input, $sort = 'relevance', $direction = 'asc', $start = 0, $size = 100, $listtype = 'default')
170 170
 	{
171
-		return $this->getController()->createIndexFilter( $input, $sort, $direction, $start, $size, $listtype );
171
+		return $this->getController()->createIndexFilter($input, $sort, $direction, $start, $size, $listtype);
172 172
 	}
173 173
 
174 174
 
@@ -181,9 +181,9 @@  discard block
 block discarded – undo
181 181
 	 * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface
182 182
 	 * @since 2015.08
183 183
 	 */
184
-	public function getIndexItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null )
184
+	public function getIndexItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null)
185 185
 	{
186
-		return $this->getController()->getIndexItems( $filter, $domains, $total );
186
+		return $this->getController()->getIndexItems($filter, $domains, $total);
187 187
 	}
188 188
 
189 189
 
@@ -195,9 +195,9 @@  discard block
 block discarded – undo
195 195
 	 * @return array List of product items implementing \Aimeos\MShop\Product\Item\Iface
196 196
 	 * @since 2015.08
197 197
 	 */
198
-	public function getProductItems( array $ids, array $domains = array( 'media', 'price', 'text' ) )
198
+	public function getProductItems(array $ids, array $domains = array('media', 'price', 'text'))
199 199
 	{
200
-		return $this->getController()->getProductItems( $ids, $domains );
200
+		return $this->getController()->getProductItems($ids, $domains);
201 201
 	}
202 202
 
203 203
 
@@ -213,9 +213,9 @@  discard block
 block discarded – undo
213 213
 	 * @param string $type Type of the text like "name", "short", "long", etc.
214 214
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
215 215
 	 */
216
-	public function createTextFilter( $input, $sort = null, $direction = 'desc', $start = 0, $size = 25, $listtype = 'default', $type = 'name' )
216
+	public function createTextFilter($input, $sort = null, $direction = 'desc', $start = 0, $size = 25, $listtype = 'default', $type = 'name')
217 217
 	{
218
-		return $this->getController()->createTextFilter( $input, $sort, $direction, $start, $size, $listtype, $type );
218
+		return $this->getController()->createTextFilter($input, $sort, $direction, $start, $size, $listtype, $type);
219 219
 	}
220 220
 
221 221
 
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
 	 * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions
226 226
 	 * @return array Associative list of the product ID as key and the product text as value
227 227
 	 */
228
-	public function getTextList( \Aimeos\MW\Criteria\Iface $filter )
228
+	public function getTextList(\Aimeos\MW\Criteria\Iface $filter)
229 229
 	{
230
-		return $this->getController()->getTextList( $filter );
230
+		return $this->getController()->getTextList($filter);
231 231
 	}
232 232
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Service/Decorator/Base.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
 	 * @param array $ref List of domains for which the items referenced by the services should be fetched too
28 28
 	 * @return array List of service items implementing \Aimeos\MShop\Service\Item\Iface with referenced items
29 29
 	 */
30
-	public function getServices( $type, \Aimeos\MShop\Order\Item\Base\Iface $basket,
31
-		$ref = array( 'media', 'price', 'text' ) )
30
+	public function getServices($type, \Aimeos\MShop\Order\Item\Base\Iface $basket,
31
+		$ref = array('media', 'price', 'text'))
32 32
 	{
33
-		return $this->getController()->getServices( $type, $basket, $ref );
33
+		return $this->getController()->getServices($type, $basket, $ref);
34 34
 	}
35 35
 
36 36
 
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 	 * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object
44 44
 	 * @return array List of attribute definitions implementing \Aimeos\MW\Criteria\Attribute\Iface
45 45
 	 */
46
-	public function getServiceAttributes( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket )
46
+	public function getServiceAttributes($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket)
47 47
 	{
48
-		return $this->getController()->getServiceAttributes( $type, $serviceId, $basket );
48
+		return $this->getController()->getServiceAttributes($type, $serviceId, $basket);
49 49
 	}
50 50
 
51 51
 
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 	 * @throws \Aimeos\MShop\Exception If service provider isn't available
61 61
 	 * @throws \Exception If an error occurs
62 62
 	 */
63
-	public function getServicePrice( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket )
63
+	public function getServicePrice($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket)
64 64
 	{
65
-		return $this->getController()->getServicePrice( $type, $serviceId, $basket );
65
+		return $this->getController()->getServicePrice($type, $serviceId, $basket);
66 66
 	}
67 67
 
68 68
 
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
 	 * @return array List of key/value pairs of attributes keys and an error message for values that are invalid or
77 77
 	 * 	missing
78 78
 	 */
79
-	public function checkServiceAttributes( $type, $serviceId, array $attributes )
79
+	public function checkServiceAttributes($type, $serviceId, array $attributes)
80 80
 	{
81
-		return $this->getController()->checkServiceAttributes( $type, $serviceId, $attributes );
81
+		return $this->getController()->checkServiceAttributes($type, $serviceId, $attributes);
82 82
 	}
83 83
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Order/Decorator/Base.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 	 * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object to be stored
30 30
 	 * @return \Aimeos\MShop\Order\Item\Iface Order item that belongs to the stored basket
31 31
 	 */
32
-	public function store( \Aimeos\MShop\Order\Item\Base\Iface $basket )
32
+	public function store(\Aimeos\MShop\Order\Item\Base\Iface $basket)
33 33
 	{
34
-		return $this->getController()->store( $basket );
34
+		return $this->getController()->store($basket);
35 35
 	}
36 36
 
37 37
 
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 	 * @param \Aimeos\MShop\Order\Item\Iface $orderItem Order item object
55 55
 	 * @return void
56 56
 	 */
57
-	public function block( \Aimeos\MShop\Order\Item\Iface $orderItem )
57
+	public function block(\Aimeos\MShop\Order\Item\Iface $orderItem)
58 58
 	{
59
-		$this->getController()->block( $orderItem );
59
+		$this->getController()->block($orderItem);
60 60
 	}
61 61
 
62 62
 
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
 	 * @param \Aimeos\MShop\Order\Item\Iface $orderItem Order item object
80 80
 	 * @return void
81 81
 	 */
82
-	public function unblock( \Aimeos\MShop\Order\Item\Iface $orderItem )
82
+	public function unblock(\Aimeos\MShop\Order\Item\Iface $orderItem)
83 83
 	{
84
-		$this->getController()->unblock( $orderItem );
84
+		$this->getController()->unblock($orderItem);
85 85
 	}
86 86
 
87 87
 
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
 	 * @param \Aimeos\MShop\Order\Item\Iface $orderItem Order item object
101 101
 	 * @return void
102 102
 	 */
103
-	public function update( \Aimeos\MShop\Order\Item\Iface $orderItem )
103
+	public function update(\Aimeos\MShop\Order\Item\Iface $orderItem)
104 104
 	{
105
-		$this->getController()->update( $orderItem );
105
+		$this->getController()->update($orderItem);
106 106
 	}
107 107
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Basket/Decorator/Base.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
 	 * @throws \Aimeos\Controller\Frontend\Basket\Exception If the product isn't available
71 71
 	 * @return void
72 72
 	 */
73
-	public function addProduct( $prodid, $quantity = 1, array $options = array(), array $variantAttributeIds = array(),
73
+	public function addProduct($prodid, $quantity = 1, array $options = array(), array $variantAttributeIds = array(),
74 74
 		array $configAttributeIds = array(), array $hiddenAttributeIds = array(), array $customAttributeValues = array(),
75
-		$warehouse = 'default' )
75
+		$warehouse = 'default')
76 76
 	{
77 77
 		$this->getController()->addProduct(
78 78
 			$prodid, $quantity, $options, $variantAttributeIds, $configAttributeIds,
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
 	 * @param integer $position Position number (key) of the order product item
88 88
 	 * @return void
89 89
 	 */
90
-	public function deleteProduct( $position )
90
+	public function deleteProduct($position)
91 91
 	{
92
-		$this->getController()->deleteProduct( $position );
92
+		$this->getController()->deleteProduct($position);
93 93
 	}
94 94
 
95 95
 
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
 	 * @param array $configAttributeCodes Codes of the product config attributes that should be REMOVED
103 103
 	 * @return void
104 104
 	 */
105
-	public function editProduct( $position, $quantity, array $options = array(), array $configAttributeCodes = array() )
105
+	public function editProduct($position, $quantity, array $options = array(), array $configAttributeCodes = array())
106 106
 	{
107
-		$this->getController()->editProduct( $position, $quantity, $options, $configAttributeCodes );
107
+		$this->getController()->editProduct($position, $quantity, $options, $configAttributeCodes);
108 108
 	}
109 109
 
110 110
 
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
 	 * @throws \Aimeos\Controller\Frontend\Basket\Exception if the coupon code is invalid or not allowed
116 116
 	 * @return void
117 117
 	 */
118
-	public function addCoupon( $code )
118
+	public function addCoupon($code)
119 119
 	{
120
-		$this->getController()->addCoupon( $code );
120
+		$this->getController()->addCoupon($code);
121 121
 	}
122 122
 
123 123
 
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
 	 * @throws \Aimeos\Controller\Frontend\Basket\Exception if the coupon code is invalid
129 129
 	 * @return void
130 130
 	 */
131
-	public function deleteCoupon( $code )
131
+	public function deleteCoupon($code)
132 132
 	{
133
-		$this->getController()->deleteCoupon( $code );
133
+		$this->getController()->deleteCoupon($code);
134 134
 	}
135 135
 
136 136
 
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
 	 * 	if one of the keys is invalid when using an array with key/value pairs
144 144
 	 * @return void
145 145
 	 */
146
-	public function setAddress( $type, $value )
146
+	public function setAddress($type, $value)
147 147
 	{
148
-		$this->getController()->setAddress( $type, $value );
148
+		$this->getController()->setAddress($type, $value);
149 149
 	}
150 150
 
151 151
 
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
 	 * @throws \Aimeos\Controller\Frontend\Basket\Exception If there is no price to the service item attached
160 160
 	 * @return void
161 161
 	 */
162
-	public function setService( $type, $id, array $attributes = array() )
162
+	public function setService($type, $id, array $attributes = array())
163 163
 	{
164
-		$this->getController()->setService( $type, $id, $attributes );
164
+		$this->getController()->setService($type, $id, $attributes);
165 165
 	}
166 166
 }
Please login to merge, or discard this patch.