Completed
Push — master ( b46c0d...fe698d )
by Aimeos
06:27
created
controller/frontend/src/Controller/Frontend/Catalog/Decorator/Base.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 * @param \Aimeos\Controller\Frontend\Iface $controller Controller object
31 31
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
32 32
 	 */
33
-	public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context )
33
+	public function __construct(\Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context)
34 34
 	{
35 35
 		$this->context = $context;
36 36
 		$this->controller = $controller;
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
 	 * @return mixed Returns the value of the called method
46 46
 	 * @throws \Aimeos\Controller\Frontend\Exception If method call failed
47 47
 	 */
48
-	public function __call( $name, array $param )
48
+	public function __call($name, array $param)
49 49
 	{
50
-		return call_user_func_array( array( $this->controller, $name ), $param );
50
+		return call_user_func_array(array($this->controller, $name), $param);
51 51
 	}
52 52
 
53 53
 
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
 	 * @param string $name Name of the manager
58 58
 	 * @return \Aimeos\MShop\Common\Manager\Iface Manager object
59 59
 	 */
60
-	public function createManager( $name )
60
+	public function createManager($name)
61 61
 	{
62
-		return $this->getController()->createManager( $name );
62
+		return $this->getController()->createManager($name);
63 63
 	}
64 64
 
65 65
 
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
 	 * @return array Associative list of items implementing \Aimeos\MShop\Catalog\Item\Iface with their IDs as keys
85 85
 	 * @since 2015.08
86 86
 	 */
87
-	public function getCatalogPath( $id, array $domains = array( 'text', 'media' ) )
87
+	public function getCatalogPath($id, array $domains = array('text', 'media'))
88 88
 	{
89
-		return $this->getController()->getCatalogPath( $id, $domains );
89
+		return $this->getController()->getCatalogPath($id, $domains);
90 90
 	}
91 91
 
92 92
 
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
 	 * @return \Aimeos\MShop\Catalog\Item\Iface Catalog node, maybe with children depending on the level constant
102 102
 	 * @since 2015.08
103 103
 	 */
104
-	public function getCatalogTree( $id = null, array $domains = array( 'text', 'media' ),
105
-		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE, \Aimeos\MW\Criteria\Iface $search = null )
104
+	public function getCatalogTree($id = null, array $domains = array('text', 'media'),
105
+		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE, \Aimeos\MW\Criteria\Iface $search = null)
106 106
 	{
107
-		return $this->getController()->getCatalogTree( $id, $domains, $level, $search );
107
+		return $this->getController()->getCatalogTree($id, $domains, $level, $search);
108 108
 	}
109 109
 
110 110
 
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
 	 * @return array Associative list of key values as key and the product count for this key as value
117 117
 	 * @since 2015.08
118 118
 	 */
119
-	public function aggregateIndex( \Aimeos\MW\Criteria\Iface $filter, $key )
119
+	public function aggregateIndex(\Aimeos\MW\Criteria\Iface $filter, $key)
120 120
 	{
121
-		return $this->getController()->aggregateIndex( $filter, $key );
121
+		return $this->getController()->aggregateIndex($filter, $key);
122 122
 	}
123 123
 
124 124
 
@@ -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 addIndexFilterCategory( \Aimeos\MW\Criteria\Iface $search, $catid )
133
+	public function addIndexFilterCategory(\Aimeos\MW\Criteria\Iface $search, $catid)
134 134
 	{
135
-		return $this->getController()->addIndexFilterCategory( $search, $catid );
135
+		return $this->getController()->addIndexFilterCategory($search, $catid);
136 136
 	}
137 137
 
138 138
 
@@ -145,9 +145,9 @@  discard block
 block discarded – undo
145 145
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
146 146
 	 * @since 2015.08
147 147
 	 */
148
-	public function addIndexFilterText( \Aimeos\MW\Criteria\Iface $search, $input, $listtype = 'default' )
148
+	public function addIndexFilterText(\Aimeos\MW\Criteria\Iface $search, $input, $listtype = 'default')
149 149
 	{
150
-		return $this->getController()->addIndexFilterText( $search, $input, $listtype );
150
+		return $this->getController()->addIndexFilterText($search, $input, $listtype);
151 151
 	}
152 152
 
153 153
 
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
163 163
 	 * @since 2015.08
164 164
 	 */
165
-	public function createIndexFilter( $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
165
+	public function createIndexFilter($sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default')
166 166
 	{
167
-		return $this->getController()->createIndexFilter( $sort, $direction, $start, $size, $listtype );
167
+		return $this->getController()->createIndexFilter($sort, $direction, $start, $size, $listtype);
168 168
 	}
169 169
 
170 170
 
@@ -180,9 +180,9 @@  discard block
 block discarded – undo
180 180
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
181 181
 	 * @since 2015.08
182 182
 	 */
183
-	public function createIndexFilterCategory( $catid, $sort = 'position', $direction = 'asc', $start = 0, $size = 100, $listtype = 'default' )
183
+	public function createIndexFilterCategory($catid, $sort = 'position', $direction = 'asc', $start = 0, $size = 100, $listtype = 'default')
184 184
 	{
185
-		return $this->getController()->createIndexFilter( $catid, $sort, $direction, $start, $size, $listtype );
185
+		return $this->getController()->createIndexFilter($catid, $sort, $direction, $start, $size, $listtype);
186 186
 	}
187 187
 
188 188
 
@@ -198,9 +198,9 @@  discard block
 block discarded – undo
198 198
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
199 199
 	 * @since 2015.08
200 200
 	 */
201
-	public function createIndexFilterText( $input, $sort = 'relevance', $direction = 'asc', $start = 0, $size = 100, $listtype = 'default' )
201
+	public function createIndexFilterText($input, $sort = 'relevance', $direction = 'asc', $start = 0, $size = 100, $listtype = 'default')
202 202
 	{
203
-		return $this->getController()->createIndexFilter( $input, $sort, $direction, $start, $size, $listtype );
203
+		return $this->getController()->createIndexFilter($input, $sort, $direction, $start, $size, $listtype);
204 204
 	}
205 205
 
206 206
 
@@ -213,9 +213,9 @@  discard block
 block discarded – undo
213 213
 	 * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface
214 214
 	 * @since 2015.08
215 215
 	 */
216
-	public function getIndexItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null )
216
+	public function getIndexItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null)
217 217
 	{
218
-		return $this->getController()->getIndexItems( $filter, $domains, $total );
218
+		return $this->getController()->getIndexItems($filter, $domains, $total);
219 219
 	}
220 220
 
221 221
 
@@ -227,9 +227,9 @@  discard block
 block discarded – undo
227 227
 	 * @return array List of product items implementing \Aimeos\MShop\Product\Item\Iface
228 228
 	 * @since 2015.08
229 229
 	 */
230
-	public function getProductItems( array $ids, array $domains = array( 'media', 'price', 'text' ) )
230
+	public function getProductItems(array $ids, array $domains = array('media', 'price', 'text'))
231 231
 	{
232
-		return $this->getController()->getProductItems( $ids, $domains );
232
+		return $this->getController()->getProductItems($ids, $domains);
233 233
 	}
234 234
 
235 235
 
@@ -245,9 +245,9 @@  discard block
 block discarded – undo
245 245
 	 * @param string $type Type of the text like "name", "short", "long", etc.
246 246
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
247 247
 	 */
248
-	public function createTextFilter( $input, $sort = null, $direction = 'desc', $start = 0, $size = 25, $listtype = 'default', $type = 'name' )
248
+	public function createTextFilter($input, $sort = null, $direction = 'desc', $start = 0, $size = 25, $listtype = 'default', $type = 'name')
249 249
 	{
250
-		return $this->getController()->createTextFilter( $input, $sort, $direction, $start, $size, $listtype, $type );
250
+		return $this->getController()->createTextFilter($input, $sort, $direction, $start, $size, $listtype, $type);
251 251
 	}
252 252
 
253 253
 
@@ -257,9 +257,9 @@  discard block
 block discarded – undo
257 257
 	 * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions
258 258
 	 * @return array Associative list of the product ID as key and the product text as value
259 259
 	 */
260
-	public function getTextList( \Aimeos\MW\Criteria\Iface $filter )
260
+	public function getTextList(\Aimeos\MW\Criteria\Iface $filter)
261 261
 	{
262
-		return $this->getController()->getTextList( $filter );
262
+		return $this->getController()->getTextList($filter);
263 263
 	}
264 264
 
265 265
 
Please login to merge, or discard this patch.
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
 	 * @return boolean Returns always false
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::%2$s"', get_class( $this ), $name ) );
46
+		throw new \Aimeos\Controller\Frontend\Exception(sprintf('Unable to call method "%1$s::%2$s"', get_class($this), $name));
47 47
 	}
48 48
 
49 49
 
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Service/Decorator/Base.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 * @param \Aimeos\Controller\Frontend\Iface $controller Controller object
31 31
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
32 32
 	 */
33
-	public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context )
33
+	public function __construct(\Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context)
34 34
 	{
35 35
 		$this->context = $context;
36 36
 		$this->controller = $controller;
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
 	 * @return mixed Returns the value of the called method
46 46
 	 * @throws \Aimeos\Controller\Frontend\Exception If method call failed
47 47
 	 */
48
-	public function __call( $name, array $param )
48
+	public function __call($name, array $param)
49 49
 	{
50
-		return call_user_func_array( array( $this->controller, $name ), $param );
50
+		return call_user_func_array(array($this->controller, $name), $param);
51 51
 	}
52 52
 
53 53
 
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
 	 * @param array $ref List of domains for which the items referenced by the services should be fetched too
60 60
 	 * @return array List of service items implementing \Aimeos\MShop\Service\Item\Iface with referenced items
61 61
 	 */
62
-	public function getServices( $type, \Aimeos\MShop\Order\Item\Base\Iface $basket,
63
-		$ref = array( 'media', 'price', 'text' ) )
62
+	public function getServices($type, \Aimeos\MShop\Order\Item\Base\Iface $basket,
63
+		$ref = array('media', 'price', 'text'))
64 64
 	{
65
-		return $this->getController()->getServices( $type, $basket, $ref );
65
+		return $this->getController()->getServices($type, $basket, $ref);
66 66
 	}
67 67
 
68 68
 
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
 	 * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object
76 76
 	 * @return array List of attribute definitions implementing \Aimeos\MW\Criteria\Attribute\Iface
77 77
 	 */
78
-	public function getServiceAttributes( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket )
78
+	public function getServiceAttributes($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket)
79 79
 	{
80
-		return $this->getController()->getServiceAttributes( $type, $serviceId, $basket );
80
+		return $this->getController()->getServiceAttributes($type, $serviceId, $basket);
81 81
 	}
82 82
 
83 83
 
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
 	 * @throws \Aimeos\MShop\Exception If service provider isn't available
93 93
 	 * @throws \Exception If an error occurs
94 94
 	 */
95
-	public function getServicePrice( $type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket )
95
+	public function getServicePrice($type, $serviceId, \Aimeos\MShop\Order\Item\Base\Iface $basket)
96 96
 	{
97
-		return $this->getController()->getServicePrice( $type, $serviceId, $basket );
97
+		return $this->getController()->getServicePrice($type, $serviceId, $basket);
98 98
 	}
99 99
 
100 100
 
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
 	 * @return array List of key/value pairs of attributes keys and an error message for values that are invalid or
109 109
 	 * 	missing
110 110
 	 */
111
-	public function checkServiceAttributes( $type, $serviceId, array $attributes )
111
+	public function checkServiceAttributes($type, $serviceId, array $attributes)
112 112
 	{
113
-		return $this->getController()->checkServiceAttributes( $type, $serviceId, $attributes );
113
+		return $this->getController()->checkServiceAttributes($type, $serviceId, $attributes);
114 114
 	}
115 115
 
116 116
 
Please login to merge, or discard this patch.