Completed
Push — master ( 27cf3f...45554e )
by Aimeos
02:14
created
controller/frontend/src/Controller/Frontend/Index/Standard.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -268,6 +268,7 @@  discard block
 block discarded – undo
268 268
 	 * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions
269 269
 	 * @param string[] $domains Domain names of items that are associated with the products and that should be fetched too
270 270
 	 * @param integer &$total Parameter where the total number of found products will be stored in
271
+	 * @param integer $total
271 272
 	 * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface
272 273
 	 * @since 2017.03
273 274
 	 */
@@ -293,7 +294,7 @@  discard block
 block discarded – undo
293 294
 	 * Returns the list of catalog IDs for the given catalog tree
294 295
 	 *
295 296
 	 * @param \Aimeos\MShop\Catalog\Item\Iface $item Catalog item with children
296
-	 * @return array List of catalog IDs
297
+	 * @return integer[] List of catalog IDs
297 298
 	 */
298 299
 	protected function getCatalogIdsFromTree( \Aimeos\MShop\Catalog\Item\Iface $item )
299 300
 	{
Please login to merge, or discard this patch.
Spacing   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -31,42 +31,42 @@  discard block
 block discarded – undo
31 31
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
32 32
 	 * @since 2017.03
33 33
 	 */
34
-	public function addFilterAttribute( \Aimeos\MW\Criteria\Iface $filter, array $attrIds, array $optIds, array $oneIds )
34
+	public function addFilterAttribute(\Aimeos\MW\Criteria\Iface $filter, array $attrIds, array $optIds, array $oneIds)
35 35
 	{
36
-		if( !empty( $attrIds ) )
36
+		if (!empty($attrIds))
37 37
 		{
38
-			$attrIds = $this->validateIds( $attrIds );
38
+			$attrIds = $this->validateIds($attrIds);
39 39
 
40
-			$func = $filter->createFunction( 'index.attributeaggregate', array( $attrIds ) );
40
+			$func = $filter->createFunction('index.attributeaggregate', array($attrIds));
41 41
 			$expr = array(
42
-				$filter->compare( '==', $func, count( $attrIds ) ),
42
+				$filter->compare('==', $func, count($attrIds)),
43 43
 				$filter->getConditions(),
44 44
 			);
45
-			$filter->setConditions( $filter->combine( '&&', $expr ) );
45
+			$filter->setConditions($filter->combine('&&', $expr));
46 46
 		}
47 47
 
48
-		if( !empty( $optIds ) )
48
+		if (!empty($optIds))
49 49
 		{
50
-			$optIds = $this->validateIds( $optIds );
50
+			$optIds = $this->validateIds($optIds);
51 51
 
52
-			$func = $filter->createFunction( 'index.attributeaggregate', array( $optIds ) );
52
+			$func = $filter->createFunction('index.attributeaggregate', array($optIds));
53 53
 			$expr = array(
54
-				$filter->compare( '>', $func, 0 ),
54
+				$filter->compare('>', $func, 0),
55 55
 				$filter->getConditions(),
56 56
 			);
57
-			$filter->setConditions( $filter->combine( '&&', $expr ) );
57
+			$filter->setConditions($filter->combine('&&', $expr));
58 58
 		}
59 59
 
60
-		foreach( $oneIds as $type => $list )
60
+		foreach ($oneIds as $type => $list)
61 61
 		{
62
-			if( ( $list = $this->validateIds( (array) $list ) ) !== array() )
62
+			if (($list = $this->validateIds((array) $list)) !== array())
63 63
 			{
64
-				$func = $filter->createFunction( 'index.attributeaggregate', array( $list ) );
64
+				$func = $filter->createFunction('index.attributeaggregate', array($list));
65 65
 				$expr = array(
66
-					$filter->compare( '>', $func, 0 ),
66
+					$filter->compare('>', $func, 0),
67 67
 					$filter->getConditions(),
68 68
 				);
69
-				$filter->setConditions( $filter->combine( '&&', $expr ) );
69
+				$filter->setConditions($filter->combine('&&', $expr));
70 70
 			}
71 71
 		}
72 72
 
@@ -86,38 +86,38 @@  discard block
 block discarded – undo
86 86
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
87 87
 	 * @since 2017.03
88 88
 	 */
89
-	public function addFilterCategory( \Aimeos\MW\Criteria\Iface $filter, $catId,
90
-		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE, $sort = null, $direction = '+', $listtype = 'default' )
89
+	public function addFilterCategory(\Aimeos\MW\Criteria\Iface $filter, $catId,
90
+		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE, $sort = null, $direction = '+', $listtype = 'default')
91 91
 	{
92
-		$catIds = ( !is_array( $catId ) ? explode( ',', $catId ) : $catId );
92
+		$catIds = (!is_array($catId) ? explode(',', $catId) : $catId);
93 93
 
94
-		if( $level != \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE )
94
+		if ($level != \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE)
95 95
 		{
96 96
 			$list = array();
97
-			$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'catalog' );
97
+			$cntl = \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'catalog');
98 98
 
99
-			foreach( $catIds as $catId )
99
+			foreach ($catIds as $catId)
100 100
 			{
101
-				$tree = $cntl->getCatalogTree( $catId, array(), $level );
102
-				$list = array_merge( $list, $this->getCatalogIdsFromTree( $tree ) );
101
+				$tree = $cntl->getCatalogTree($catId, array(), $level);
102
+				$list = array_merge($list, $this->getCatalogIdsFromTree($tree));
103 103
 			}
104 104
 
105 105
 			$catIds = $list;
106 106
 		}
107 107
 
108
-		$expr = array( $filter->compare( '==', 'index.catalog.id', array_unique( $catIds ) ) );
108
+		$expr = array($filter->compare('==', 'index.catalog.id', array_unique($catIds)));
109 109
 		$expr[] = $filter->getConditions();
110 110
 
111
-		if( $sort === 'relevance' )
111
+		if ($sort === 'relevance')
112 112
 		{
113
-			$cmpfunc = $filter->createFunction( 'index.catalog.position', array( $listtype, $catIds ) );
114
-			$expr[] = $filter->compare( '>=', $cmpfunc, 0 );
113
+			$cmpfunc = $filter->createFunction('index.catalog.position', array($listtype, $catIds));
114
+			$expr[] = $filter->compare('>=', $cmpfunc, 0);
115 115
 
116
-			$sortfunc = $filter->createFunction( 'sort:index.catalog.position', array( $listtype, $catIds ) );
117
-			$filter->setSortations( array( $filter->sort( $direction, $sortfunc ) ) );
116
+			$sortfunc = $filter->createFunction('sort:index.catalog.position', array($listtype, $catIds));
117
+			$filter->setSortations(array($filter->sort($direction, $sortfunc)));
118 118
 		}
119 119
 
120
-		$filter->setConditions( $filter->combine( '&&', $expr ) );
120
+		$filter->setConditions($filter->combine('&&', $expr));
121 121
 
122 122
 		return $filter;
123 123
 	}
@@ -134,13 +134,13 @@  discard block
 block discarded – undo
134 134
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
135 135
 	 * @since 2017.03
136 136
 	 */
137
-	public function addFilterText( \Aimeos\MW\Criteria\Iface $filter, $input, $sort = null, $direction = '+', $listtype = 'default' )
137
+	public function addFilterText(\Aimeos\MW\Criteria\Iface $filter, $input, $sort = null, $direction = '+', $listtype = 'default')
138 138
 	{
139 139
 		$langid = $this->getContext()->getLocale()->getLanguageId();
140
-		$cmpfunc = $filter->createFunction( 'index.text.relevance', array( $listtype, $langid, $input ) );
141
-		$expr = array( $filter->compare( '>', $cmpfunc, 0 ), $filter->getConditions() );
140
+		$cmpfunc = $filter->createFunction('index.text.relevance', array($listtype, $langid, $input));
141
+		$expr = array($filter->compare('>', $cmpfunc, 0), $filter->getConditions());
142 142
 
143
-		return $filter->setConditions( $filter->combine( '&&', $expr ) );
143
+		return $filter->setConditions($filter->combine('&&', $expr));
144 144
 	}
145 145
 
146 146
 
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
 	 * @return array Associative list of key values as key and the product count for this key as value
153 153
 	 * @since 2017.03
154 154
 	 */
155
-	public function aggregate( \Aimeos\MW\Criteria\Iface $filter, $key )
155
+	public function aggregate(\Aimeos\MW\Criteria\Iface $filter, $key)
156 156
 	{
157
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'index' )->aggregate( $filter, $key );
157
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'index')->aggregate($filter, $key);
158 158
 	}
159 159
 
160 160
 
@@ -169,46 +169,46 @@  discard block
 block discarded – undo
169 169
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
170 170
 	 * @since 2017.03
171 171
 	 */
172
-	public function createFilter( $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
172
+	public function createFilter($sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default')
173 173
 	{
174 174
 		$sortations = array();
175 175
 		$context = $this->getContext();
176 176
 
177
-		$search = \Aimeos\MShop\Factory::createManager( $context, 'index' )->createSearch( true );
178
-		$expr = array( $search->compare( '!=', 'index.catalog.id', null ) );
177
+		$search = \Aimeos\MShop\Factory::createManager($context, 'index')->createSearch(true);
178
+		$expr = array($search->compare('!=', 'index.catalog.id', null));
179 179
 
180
-		switch( $sort )
180
+		switch ($sort)
181 181
 		{
182 182
 			case 'code':
183
-				$sortations[] = $search->sort( $direction, 'product.code' );
183
+				$sortations[] = $search->sort($direction, 'product.code');
184 184
 				break;
185 185
 
186 186
 			case 'name':
187 187
 				$langid = $context->getLocale()->getLanguageId();
188 188
 
189
-				$cmpfunc = $search->createFunction( 'index.text.value', array( $listtype, $langid, 'name', 'product' ) );
190
-				$expr[] = $search->compare( '>=', $cmpfunc, '' );
189
+				$cmpfunc = $search->createFunction('index.text.value', array($listtype, $langid, 'name', 'product'));
190
+				$expr[] = $search->compare('>=', $cmpfunc, '');
191 191
 
192
-				$sortfunc = $search->createFunction( 'sort:index.text.value', array( $listtype, $langid, 'name' ) );
193
-				$sortations[] = $search->sort( $direction, $sortfunc );
192
+				$sortfunc = $search->createFunction('sort:index.text.value', array($listtype, $langid, 'name'));
193
+				$sortations[] = $search->sort($direction, $sortfunc);
194 194
 				break;
195 195
 
196 196
 			case 'price':
197 197
 				$currencyid = $context->getLocale()->getCurrencyId();
198 198
 
199
-				$cmpfunc = $search->createFunction( 'index.price.value', array( $listtype, $currencyid, 'default' ) );
200
-				$expr[] = $search->compare( '>=', $cmpfunc, '0.00' );
199
+				$cmpfunc = $search->createFunction('index.price.value', array($listtype, $currencyid, 'default'));
200
+				$expr[] = $search->compare('>=', $cmpfunc, '0.00');
201 201
 
202
-				$sortfunc = $search->createFunction( 'sort:index.price.value', array( $listtype, $currencyid, 'default' ) );
203
-				$sortations[] = $search->sort( $direction, $sortfunc );
202
+				$sortfunc = $search->createFunction('sort:index.price.value', array($listtype, $currencyid, 'default'));
203
+				$sortations[] = $search->sort($direction, $sortfunc);
204 204
 				break;
205 205
 		}
206 206
 
207 207
 		$expr[] = $search->getConditions();
208 208
 
209
-		$search->setConditions( $search->combine( '&&', $expr ) );
210
-		$search->setSortations( $sortations );
211
-		$search->setSlice( $start, $size );
209
+		$search->setConditions($search->combine('&&', $expr));
210
+		$search->setSortations($sortations);
211
+		$search->setSlice($start, $size);
212 212
 
213 213
 		return $search;
214 214
 	}
@@ -226,37 +226,37 @@  discard block
 block discarded – undo
226 226
 	 * @param string $type Type of the text like "name", "short", "long", etc.
227 227
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
228 228
 	 */
229
-	public function createTextFilter( $input, $sort = null, $direction = '+', $start = 0, $size = 25, $listtype = 'default', $type = 'name' )
229
+	public function createTextFilter($input, $sort = null, $direction = '+', $start = 0, $size = 25, $listtype = 'default', $type = 'name')
230 230
 	{
231 231
 		$locale = $this->getContext()->getLocale();
232 232
 		$langid = $locale->getLanguageId();
233 233
 
234
-		$search = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'index/text' )->createSearch( true );
234
+		$search = \Aimeos\MShop\Factory::createManager($this->getContext(), 'index/text')->createSearch(true);
235 235
 
236 236
 		$expr = array(
237
-			$search->compare( '>', $search->createFunction( 'index.text.relevance', array( $listtype, $langid, $input ) ), 0 ),
238
-			$search->compare( '>', $search->createFunction( 'index.text.value', array( $listtype, $langid, $type, 'product' ) ), '' ),
237
+			$search->compare('>', $search->createFunction('index.text.relevance', array($listtype, $langid, $input)), 0),
238
+			$search->compare('>', $search->createFunction('index.text.value', array($listtype, $langid, $type, 'product')), ''),
239 239
 		);
240 240
 
241 241
 		$sortations = array();
242 242
 
243
-		switch( $sort )
243
+		switch ($sort)
244 244
 		{
245 245
 			case 'name':
246
-				$cmpfunc = $search->createFunction( 'index.text.value', array( $listtype, $langid, 'name', 'product' ) );
247
-				$expr[] = $search->compare( '>=', $cmpfunc, '' );
246
+				$cmpfunc = $search->createFunction('index.text.value', array($listtype, $langid, 'name', 'product'));
247
+				$expr[] = $search->compare('>=', $cmpfunc, '');
248 248
 
249
-				$sortfunc = $search->createFunction( 'sort:index.text.value', array( $listtype, $langid, 'name' ) );
250
-				$sortations[] = $search->sort( $direction, $sortfunc );
249
+				$sortfunc = $search->createFunction('sort:index.text.value', array($listtype, $langid, 'name'));
250
+				$sortations[] = $search->sort($direction, $sortfunc);
251 251
 				break;
252 252
 
253 253
 			case 'relevance':
254 254
 				// we don't need to sort by 'sort:index.text.relevance' because it's a boolean match (relevance is either 0 or 1)
255 255
 		}
256 256
 
257
-		$search->setConditions( $search->combine( '&&', $expr ) );
258
-		$search->setSortations( $sortations );
259
-		$search->setSlice( $start, $size );
257
+		$search->setConditions($search->combine('&&', $expr));
258
+		$search->setSortations($sortations);
259
+		$search->setSlice($start, $size);
260 260
 
261 261
 		return $search;
262 262
 	}
@@ -271,9 +271,9 @@  discard block
 block discarded – undo
271 271
 	 * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface
272 272
 	 * @since 2017.03
273 273
 	 */
274
-	public function getItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null )
274
+	public function getItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null)
275 275
 	{
276
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'index' )->searchItems( $filter, $domains, $total );
276
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'index')->searchItems($filter, $domains, $total);
277 277
 	}
278 278
 
279 279
 
@@ -283,9 +283,9 @@  discard block
 block discarded – undo
283 283
 	 * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions
284 284
 	 * @return array Associative list of the product ID as key and the product text as value
285 285
 	 */
286
-	public function getTextList( \Aimeos\MW\Criteria\Iface $filter )
286
+	public function getTextList(\Aimeos\MW\Criteria\Iface $filter)
287 287
 	{
288
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'index/text' )->searchTexts( $filter );
288
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'index/text')->searchTexts($filter);
289 289
 	}
290 290
 
291 291
 
@@ -295,12 +295,12 @@  discard block
 block discarded – undo
295 295
 	 * @param \Aimeos\MShop\Catalog\Item\Iface $item Catalog item with children
296 296
 	 * @return array List of catalog IDs
297 297
 	 */
298
-	protected function getCatalogIdsFromTree( \Aimeos\MShop\Catalog\Item\Iface $item )
298
+	protected function getCatalogIdsFromTree(\Aimeos\MShop\Catalog\Item\Iface $item)
299 299
 	{
300
-		$list = array( $item->getId() );
300
+		$list = array($item->getId());
301 301
 
302
-		foreach( $item->getChildren() as $child ) {
303
-			$list = array_merge( $list, $this->getCatalogIdsFromTree( $child ) );
302
+		foreach ($item->getChildren() as $child) {
303
+			$list = array_merge($list, $this->getCatalogIdsFromTree($child));
304 304
 		}
305 305
 
306 306
 		return $list;
@@ -313,13 +313,13 @@  discard block
 block discarded – undo
313 313
 	 * @param array $ids List of IDs to validate
314 314
 	 * @return array List of validated IDs
315 315
 	 */
316
-	protected function validateIds( array $ids )
316
+	protected function validateIds(array $ids)
317 317
 	{
318 318
 		$list = array();
319 319
 
320
-		foreach( $ids as $id )
320
+		foreach ($ids as $id)
321 321
 		{
322
-			if( $id != '' ) {
322
+			if ($id != '') {
323 323
 				$list[] = (int) $id;
324 324
 			}
325 325
 		}
Please login to merge, or discard this patch.
controller/frontend/tests/Controller/Frontend/Index/StandardTest.php 1 patch
Spacing   +92 added lines, -92 removed lines patch added patch discarded remove patch
@@ -16,22 +16,22 @@  discard block
 block discarded – undo
16 16
 
17 17
 	protected function setUp()
18 18
 	{
19
-		$this->object = new \Aimeos\Controller\Frontend\Index\Standard( \TestHelperFrontend::getContext() );
19
+		$this->object = new \Aimeos\Controller\Frontend\Index\Standard(\TestHelperFrontend::getContext());
20 20
 	}
21 21
 
22 22
 
23 23
 	protected function tearDown()
24 24
 	{
25
-		unset( $this->object );
25
+		unset($this->object);
26 26
 	}
27 27
 
28 28
 
29 29
 	public function testAggregate()
30 30
 	{
31 31
 		$filter = $this->object->createFilter();
32
-		$list = $this->object->aggregate( $filter, 'index.attribute.id' );
32
+		$list = $this->object->aggregate($filter, 'index.attribute.id');
33 33
 
34
-		$this->assertGreaterThan( 0, count( $list ) );
34
+		$this->assertGreaterThan(0, count($list));
35 35
 	}
36 36
 
37 37
 
@@ -39,97 +39,97 @@  discard block
 block discarded – undo
39 39
 	{
40 40
 		$filter = $this->object->createFilter();
41 41
 
42
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
43
-		$this->assertEquals( array(), $filter->getSortations() );
44
-		$this->assertEquals( 0, $filter->getSliceStart() );
45
-		$this->assertEquals( 100, $filter->getSliceSize() );
42
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
43
+		$this->assertEquals(array(), $filter->getSortations());
44
+		$this->assertEquals(0, $filter->getSliceStart());
45
+		$this->assertEquals(100, $filter->getSliceSize());
46 46
 	}
47 47
 
48 48
 
49 49
 	public function testAddFilterAttribute()
50 50
 	{
51 51
 		$filter = $this->object->createFilter();
52
-		$filter = $this->object->addFilterAttribute( $filter, array( 0, 1 ), array(), array() );
52
+		$filter = $this->object->addFilterAttribute($filter, array(0, 1), array(), array());
53 53
 
54 54
 		$list = $filter->getConditions()->getExpressions();
55 55
 
56
-		if( !isset( $list[0] ) || !( $list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) ) {
57
-			throw new \RuntimeException( 'Wrong expression' );
56
+		if (!isset($list[0]) || !($list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface)) {
57
+			throw new \RuntimeException('Wrong expression');
58 58
 		}
59 59
 
60
-		$this->assertEquals( 'index.attributeaggregate([0,1])', $list[0]->getName() );
61
-		$this->assertEquals( 2, $list[0]->getValue() );
60
+		$this->assertEquals('index.attributeaggregate([0,1])', $list[0]->getName());
61
+		$this->assertEquals(2, $list[0]->getValue());
62 62
 	}
63 63
 
64 64
 
65 65
 	public function testAddFilterAttributeOptions()
66 66
 	{
67 67
 		$filter = $this->object->createFilter();
68
-		$filter = $this->object->addFilterAttribute( $filter, array(), array( 1 ), array() );
68
+		$filter = $this->object->addFilterAttribute($filter, array(), array(1), array());
69 69
 
70 70
 		$list = $filter->getConditions()->getExpressions();
71 71
 
72
-		if( !isset( $list[0] ) || !( $list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) ) {
73
-			throw new \RuntimeException( 'Wrong expression' );
72
+		if (!isset($list[0]) || !($list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface)) {
73
+			throw new \RuntimeException('Wrong expression');
74 74
 		}
75 75
 
76
-		$this->assertEquals( 'index.attributeaggregate([1])', $list[0]->getName() );
77
-		$this->assertEquals( 0, $list[0]->getValue() );
76
+		$this->assertEquals('index.attributeaggregate([1])', $list[0]->getName());
77
+		$this->assertEquals(0, $list[0]->getValue());
78 78
 	}
79 79
 
80 80
 
81 81
 	public function testAddFilterAttributeOne()
82 82
 	{
83 83
 		$filter = $this->object->createFilter();
84
-		$filter = $this->object->addFilterAttribute( $filter, array(), array(), array( 'test' => array( 2 ) ) );
84
+		$filter = $this->object->addFilterAttribute($filter, array(), array(), array('test' => array(2)));
85 85
 
86 86
 		$list = $filter->getConditions()->getExpressions();
87 87
 
88
-		if( !isset( $list[0] ) || !( $list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) ) {
89
-			throw new \RuntimeException( 'Wrong expression' );
88
+		if (!isset($list[0]) || !($list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface)) {
89
+			throw new \RuntimeException('Wrong expression');
90 90
 		}
91 91
 
92
-		$this->assertEquals( 'index.attributeaggregate([2])', $list[0]->getName() );
93
-		$this->assertEquals( 0, $list[0]->getValue() );
92
+		$this->assertEquals('index.attributeaggregate([2])', $list[0]->getName());
93
+		$this->assertEquals(0, $list[0]->getValue());
94 94
 	}
95 95
 
96 96
 
97 97
 	public function testAddFilterCategory()
98 98
 	{
99 99
 		$filter = $this->object->createFilter();
100
-		$filter = $this->object->addFilterCategory( $filter, 0 );
100
+		$filter = $this->object->addFilterCategory($filter, 0);
101 101
 
102 102
 		$list = $filter->getConditions()->getExpressions();
103 103
 
104
-		if( !isset( $list[0] ) || !( $list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) ) {
105
-			throw new \RuntimeException( 'Wrong expression' );
104
+		if (!isset($list[0]) || !($list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface)) {
105
+			throw new \RuntimeException('Wrong expression');
106 106
 		}
107 107
 
108
-		$this->assertEquals( 'index.catalog.id', $list[0]->getName() );
109
-		$this->assertEquals( array( 0 ), $list[0]->getValue() );
110
-		$this->assertEquals( array(), $filter->getSortations() );
108
+		$this->assertEquals('index.catalog.id', $list[0]->getName());
109
+		$this->assertEquals(array(0), $list[0]->getValue());
110
+		$this->assertEquals(array(), $filter->getSortations());
111 111
 	}
112 112
 
113 113
 
114 114
 	public function testAddFilterText()
115 115
 	{
116 116
 		$filter = $this->object->createFilter();
117
-		$filter = $this->object->addFilterText( $filter, 'Espresso' );
117
+		$filter = $this->object->addFilterText($filter, 'Espresso');
118 118
 
119
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
119
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
120 120
 
121 121
 		$list = $filter->getConditions()->getExpressions();
122 122
 
123 123
 
124
-		if( !isset( $list[0] ) || !( $list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) ) {
125
-			throw new \RuntimeException( 'Wrong expression' );
124
+		if (!isset($list[0]) || !($list[0] instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface)) {
125
+			throw new \RuntimeException('Wrong expression');
126 126
 		}
127
-		$this->assertEquals( 'index.text.relevance("default","de","Espresso")', $list[0]->getName() );
128
-		$this->assertEquals( 0, $list[0]->getValue() );
127
+		$this->assertEquals('index.text.relevance("default","de","Espresso")', $list[0]->getName());
128
+		$this->assertEquals(0, $list[0]->getValue());
129 129
 
130
-		$this->assertEquals( array(), $filter->getSortations() );
131
-		$this->assertEquals( 0, $filter->getSliceStart() );
132
-		$this->assertEquals( 100, $filter->getSliceSize() );
130
+		$this->assertEquals(array(), $filter->getSortations());
131
+		$this->assertEquals(0, $filter->getSliceStart());
132
+		$this->assertEquals(100, $filter->getSliceSize());
133 133
 	}
134 134
 
135 135
 
@@ -138,140 +138,140 @@  discard block
 block discarded – undo
138 138
 		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE;
139 139
 
140 140
 		$filter = $this->object->createFilter();
141
-		$filter = $this->object->addFilterCategory( $filter, 0, $level, 'relevance', '-', 'test' );
141
+		$filter = $this->object->addFilterCategory($filter, 0, $level, 'relevance', '-', 'test');
142 142
 
143
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
143
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
144 144
 
145 145
 		$sort = $filter->getSortations();
146
-		if( ( $item = reset( $sort ) ) === false ) {
147
-			throw new \RuntimeException( 'Sortation not set' );
146
+		if (($item = reset($sort)) === false) {
147
+			throw new \RuntimeException('Sortation not set');
148 148
 		}
149 149
 
150
-		$this->assertEquals( 'sort:index.catalog.position("test",["0"])', $item->getName() );
151
-		$this->assertEquals( '-', $item->getOperator() );
150
+		$this->assertEquals('sort:index.catalog.position("test",["0"])', $item->getName());
151
+		$this->assertEquals('-', $item->getOperator());
152 152
 	}
153 153
 
154 154
 
155 155
 	public function testCreateFilterSortRelevanceText()
156 156
 	{
157
-		$filter = $this->object->createFilter( 'relevance', '-', 1, 2, 'test' );
158
-		$filter = $this->object->addFilterText( $filter, 'Espresso' );
157
+		$filter = $this->object->createFilter('relevance', '-', 1, 2, 'test');
158
+		$filter = $this->object->addFilterText($filter, 'Espresso');
159 159
 
160
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
161
-		$this->assertEquals( array(), $filter->getSortations() );
162
-		$this->assertEquals( 1, $filter->getSliceStart() );
163
-		$this->assertEquals( 2, $filter->getSliceSize() );
160
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
161
+		$this->assertEquals(array(), $filter->getSortations());
162
+		$this->assertEquals(1, $filter->getSliceStart());
163
+		$this->assertEquals(2, $filter->getSliceSize());
164 164
 	}
165 165
 
166 166
 
167 167
 	public function testCreateFilterSortCode()
168 168
 	{
169
-		$filter = $this->object->createFilter( 'code' );
169
+		$filter = $this->object->createFilter('code');
170 170
 
171
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
171
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
172 172
 
173 173
 		$sort = $filter->getSortations();
174
-		if( ( $item = reset( $sort ) ) === false ) {
175
-			throw new \RuntimeException( 'Sortation not set' );
174
+		if (($item = reset($sort)) === false) {
175
+			throw new \RuntimeException('Sortation not set');
176 176
 		}
177 177
 
178
-		$this->assertEquals( 'product.code', $item->getName() );
178
+		$this->assertEquals('product.code', $item->getName());
179 179
 	}
180 180
 
181 181
 
182 182
 	public function testCreateFilterSortName()
183 183
 	{
184
-		$filter = $this->object->createFilter( 'name' );
184
+		$filter = $this->object->createFilter('name');
185 185
 
186
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
186
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
187 187
 
188 188
 		$sort = $filter->getSortations();
189
-		if( ( $item = reset( $sort ) ) === false ) {
190
-			throw new \RuntimeException( 'Sortation not set' );
189
+		if (($item = reset($sort)) === false) {
190
+			throw new \RuntimeException('Sortation not set');
191 191
 		}
192 192
 
193
-		$this->assertEquals( 'sort:index.text.value("default","de","name")', $item->getName() );
193
+		$this->assertEquals('sort:index.text.value("default","de","name")', $item->getName());
194 194
 	}
195 195
 
196 196
 
197 197
 	public function testCreateFilterSortPrice()
198 198
 	{
199
-		$filter = $this->object->createFilter( 'price' );
199
+		$filter = $this->object->createFilter('price');
200 200
 
201
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
201
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
202 202
 
203 203
 		$sort = $filter->getSortations();
204
-		if( ( $item = reset( $sort ) ) === false ) {
205
-			throw new \RuntimeException( 'Sortation not set' );
204
+		if (($item = reset($sort)) === false) {
205
+			throw new \RuntimeException('Sortation not set');
206 206
 		}
207 207
 
208
-		$this->assertStringStartsWith( 'sort:index.price.value("default","EUR","default")', $item->getName() );
208
+		$this->assertStringStartsWith('sort:index.price.value("default","EUR","default")', $item->getName());
209 209
 	}
210 210
 
211 211
 
212 212
 	public function testCreateFilterSortInvalid()
213 213
 	{
214
-		$filter = $this->object->createFilter( '', 'failure' );
214
+		$filter = $this->object->createFilter('', 'failure');
215 215
 
216
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
217
-		$this->assertEquals( array(), $filter->getSortations() );
216
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
217
+		$this->assertEquals(array(), $filter->getSortations());
218 218
 	}
219 219
 
220 220
 
221 221
 	public function testGetItemsCategory()
222 222
 	{
223
-		$catalogManager = \Aimeos\MShop\Catalog\Manager\Factory::createManager( \TestHelperFrontend::getContext() );
223
+		$catalogManager = \Aimeos\MShop\Catalog\Manager\Factory::createManager(\TestHelperFrontend::getContext());
224 224
 		$search = $catalogManager->createSearch();
225 225
 
226
-		$search->setConditions( $search->compare( '==', 'catalog.code', 'new' ) );
227
-		$search->setSlice( 0, 1 );
228
-		$items = $catalogManager->searchItems( $search );
226
+		$search->setConditions($search->compare('==', 'catalog.code', 'new'));
227
+		$search->setSlice(0, 1);
228
+		$items = $catalogManager->searchItems($search);
229 229
 
230
-		if( ( $item = reset( $items ) ) === false ) {
231
-			throw new \RuntimeException( 'Index item not found' );
230
+		if (($item = reset($items)) === false) {
231
+			throw new \RuntimeException('Index item not found');
232 232
 		}
233 233
 
234
-		$filter = $this->object->createFilter( 'position', '+', 1, 1 );
235
-		$filter = $this->object->addFilterCategory( $filter, $item->getId() );
234
+		$filter = $this->object->createFilter('position', '+', 1, 1);
235
+		$filter = $this->object->addFilterCategory($filter, $item->getId());
236 236
 
237 237
 		$total = 0;
238
-		$results = $this->object->getItems( $filter, array(), $total );
238
+		$results = $this->object->getItems($filter, array(), $total);
239 239
 
240
-		$this->assertEquals( 3, $total );
241
-		$this->assertEquals( 1, count( $results ) );
240
+		$this->assertEquals(3, $total);
241
+		$this->assertEquals(1, count($results));
242 242
 	}
243 243
 
244 244
 
245 245
 	public function testGetItemsText()
246 246
 	{
247
-		$filter = $this->object->createFilter( 'relevance', '+', 0, 1, 'unittype13' );
248
-		$filter = $this->object->addFilterText( $filter, 'Expresso', 'relevance', '+', 'unittype13' );
247
+		$filter = $this->object->createFilter('relevance', '+', 0, 1, 'unittype13');
248
+		$filter = $this->object->addFilterText($filter, 'Expresso', 'relevance', '+', 'unittype13');
249 249
 
250 250
 		$total = 0;
251
-		$results = $this->object->getItems( $filter, array(), $total );
251
+		$results = $this->object->getItems($filter, array(), $total);
252 252
 
253
-		$this->assertEquals( 2, $total );
254
-		$this->assertEquals( 1, count( $results ) );
253
+		$this->assertEquals(2, $total);
254
+		$this->assertEquals(1, count($results));
255 255
 	}
256 256
 
257 257
 
258 258
 	public function testCreateTextFilter()
259 259
 	{
260
-		$filter = $this->object->createTextFilter( 'Expresso', 'name', '+', 0, 1 );
260
+		$filter = $this->object->createTextFilter('Expresso', 'name', '+', 0, 1);
261 261
 
262
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
263
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Expression\\Combine\\Iface', $filter->getConditions() );
264
-		$this->assertEquals( 3, count( $filter->getConditions()->getExpressions() ) );
262
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
263
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Expression\\Combine\\Iface', $filter->getConditions());
264
+		$this->assertEquals(3, count($filter->getConditions()->getExpressions()));
265 265
 	}
266 266
 
267 267
 
268 268
 	public function testGetTextListName()
269 269
 	{
270
-		$filter = $this->object->createTextFilter( 'Cafe Noire', 'relevance', '-', 0, 25, 'unittype19', 'name' );
271
-		$results = $this->object->getTextList( $filter );
270
+		$filter = $this->object->createTextFilter('Cafe Noire', 'relevance', '-', 0, 25, 'unittype19', 'name');
271
+		$results = $this->object->getTextList($filter);
272 272
 
273
-		$this->assertEquals( 1, count( $results ) );
274
-		$this->assertContains( 'Cafe Noire Cappuccino', $results );
273
+		$this->assertEquals(1, count($results));
274
+		$this->assertContains('Cafe Noire Cappuccino', $results);
275 275
 	}
276 276
 
277 277
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Catalog/Decorator/Base.php 1 patch
Spacing   +32 added lines, -32 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
 
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object for filtering
71 71
 	 * @since 2015.08
72 72
 	 */
73
-	public function createCatalogFilter( $default = true )
73
+	public function createCatalogFilter($default = true)
74 74
 	{
75
-		return $this->getController()->createCatalogFilter( $default );
75
+		return $this->getController()->createCatalogFilter($default);
76 76
 	}
77 77
 
78 78
 
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
 	 * @return array Associative list of items implementing \Aimeos\MShop\Catalog\Item\Iface with their IDs as keys
86 86
 	 * @since 2015.08
87 87
 	 */
88
-	public function getCatalogPath( $id, array $domains = array( 'text', 'media' ) )
88
+	public function getCatalogPath($id, array $domains = array('text', 'media'))
89 89
 	{
90
-		return $this->getController()->getCatalogPath( $id, $domains );
90
+		return $this->getController()->getCatalogPath($id, $domains);
91 91
 	}
92 92
 
93 93
 
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
 	 * @return \Aimeos\MShop\Catalog\Item\Iface Catalog node, maybe with children depending on the level constant
103 103
 	 * @since 2015.08
104 104
 	 */
105
-	public function getCatalogTree( $id = null, array $domains = array( 'text', 'media' ),
106
-		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE, \Aimeos\MW\Criteria\Iface $search = null )
105
+	public function getCatalogTree($id = null, array $domains = array('text', 'media'),
106
+		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE, \Aimeos\MW\Criteria\Iface $search = null)
107 107
 	{
108
-		return $this->getController()->getCatalogTree( $id, $domains, $level, $search );
108
+		return $this->getController()->getCatalogTree($id, $domains, $level, $search);
109 109
 	}
110 110
 
111 111
 
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
 	 * @return array Associative list of key values as key and the product count for this key as value
118 118
 	 * @since 2015.08
119 119
 	 */
120
-	public function aggregateIndex( \Aimeos\MW\Criteria\Iface $filter, $key )
120
+	public function aggregateIndex(\Aimeos\MW\Criteria\Iface $filter, $key)
121 121
 	{
122
-		return $this->getController()->aggregateIndex( $filter, $key );
122
+		return $this->getController()->aggregateIndex($filter, $key);
123 123
 	}
124 124
 
125 125
 
@@ -131,9 +131,9 @@  discard block
 block discarded – undo
131 131
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
132 132
 	 * @since 2015.08
133 133
 	 */
134
-	public function addIndexFilterCategory( \Aimeos\MW\Criteria\Iface $search, $catid )
134
+	public function addIndexFilterCategory(\Aimeos\MW\Criteria\Iface $search, $catid)
135 135
 	{
136
-		return $this->getController()->addIndexFilterCategory( $search, $catid );
136
+		return $this->getController()->addIndexFilterCategory($search, $catid);
137 137
 	}
138 138
 
139 139
 
@@ -146,9 +146,9 @@  discard block
 block discarded – undo
146 146
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
147 147
 	 * @since 2015.08
148 148
 	 */
149
-	public function addIndexFilterText( \Aimeos\MW\Criteria\Iface $search, $input, $listtype = 'default' )
149
+	public function addIndexFilterText(\Aimeos\MW\Criteria\Iface $search, $input, $listtype = 'default')
150 150
 	{
151
-		return $this->getController()->addIndexFilterText( $search, $input, $listtype );
151
+		return $this->getController()->addIndexFilterText($search, $input, $listtype);
152 152
 	}
153 153
 
154 154
 
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
164 164
 	 * @since 2015.08
165 165
 	 */
166
-	public function createIndexFilter( $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
166
+	public function createIndexFilter($sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default')
167 167
 	{
168
-		return $this->getController()->createIndexFilter( $sort, $direction, $start, $size, $listtype );
168
+		return $this->getController()->createIndexFilter($sort, $direction, $start, $size, $listtype);
169 169
 	}
170 170
 
171 171
 
@@ -181,9 +181,9 @@  discard block
 block discarded – undo
181 181
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
182 182
 	 * @since 2015.08
183 183
 	 */
184
-	public function createIndexFilterCategory( $catid, $sort = 'position', $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
184
+	public function createIndexFilterCategory($catid, $sort = 'position', $direction = '+', $start = 0, $size = 100, $listtype = 'default')
185 185
 	{
186
-		return $this->getController()->createIndexFilter( $catid, $sort, $direction, $start, $size, $listtype );
186
+		return $this->getController()->createIndexFilter($catid, $sort, $direction, $start, $size, $listtype);
187 187
 	}
188 188
 
189 189
 
@@ -199,9 +199,9 @@  discard block
 block discarded – undo
199 199
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
200 200
 	 * @since 2015.08
201 201
 	 */
202
-	public function createIndexFilterText( $input, $sort = 'relevance', $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
202
+	public function createIndexFilterText($input, $sort = 'relevance', $direction = '+', $start = 0, $size = 100, $listtype = 'default')
203 203
 	{
204
-		return $this->getController()->createIndexFilter( $input, $sort, $direction, $start, $size, $listtype );
204
+		return $this->getController()->createIndexFilter($input, $sort, $direction, $start, $size, $listtype);
205 205
 	}
206 206
 
207 207
 
@@ -214,9 +214,9 @@  discard block
 block discarded – undo
214 214
 	 * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface
215 215
 	 * @since 2015.08
216 216
 	 */
217
-	public function getIndexItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null )
217
+	public function getIndexItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null)
218 218
 	{
219
-		return $this->getController()->getIndexItems( $filter, $domains, $total );
219
+		return $this->getController()->getIndexItems($filter, $domains, $total);
220 220
 	}
221 221
 
222 222
 
@@ -228,9 +228,9 @@  discard block
 block discarded – undo
228 228
 	 * @return array List of product items implementing \Aimeos\MShop\Product\Item\Iface
229 229
 	 * @since 2015.08
230 230
 	 */
231
-	public function getProductItems( array $ids, array $domains = array( 'media', 'price', 'text' ) )
231
+	public function getProductItems(array $ids, array $domains = array('media', 'price', 'text'))
232 232
 	{
233
-		return $this->getController()->getProductItems( $ids, $domains );
233
+		return $this->getController()->getProductItems($ids, $domains);
234 234
 	}
235 235
 
236 236
 
@@ -246,9 +246,9 @@  discard block
 block discarded – undo
246 246
 	 * @param string $type Type of the text like "name", "short", "long", etc.
247 247
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
248 248
 	 */
249
-	public function createTextFilter( $input, $sort = null, $direction = '-', $start = 0, $size = 25, $listtype = 'default', $type = 'name' )
249
+	public function createTextFilter($input, $sort = null, $direction = '-', $start = 0, $size = 25, $listtype = 'default', $type = 'name')
250 250
 	{
251
-		return $this->getController()->createTextFilter( $input, $sort, $direction, $start, $size, $listtype, $type );
251
+		return $this->getController()->createTextFilter($input, $sort, $direction, $start, $size, $listtype, $type);
252 252
 	}
253 253
 
254 254
 
@@ -258,9 +258,9 @@  discard block
 block discarded – undo
258 258
 	 * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions
259 259
 	 * @return array Associative list of the product ID as key and the product text as value
260 260
 	 */
261
-	public function getTextList( \Aimeos\MW\Criteria\Iface $filter )
261
+	public function getTextList(\Aimeos\MW\Criteria\Iface $filter)
262 262
 	{
263
-		return $this->getController()->getTextList( $filter );
263
+		return $this->getController()->getTextList($filter);
264 264
 	}
265 265
 
266 266
 
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Catalog/Standard.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 	 * @return \Aimeos\MShop\Common\Manager\Iface Manager object
30 30
 	 * @since 2015.08
31 31
 	 */
32
-	public function createManager( $name )
32
+	public function createManager($name)
33 33
 	{
34
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), $name );
34
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), $name);
35 35
 	}
36 36
 
37 37
 
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object for filtering
43 43
 	 * @since 2015.08
44 44
 	 */
45
-	public function createCatalogFilter( $default = true )
45
+	public function createCatalogFilter($default = true)
46 46
 	{
47
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'catalog' )->createSearch( $default );
47
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'catalog')->createSearch($default);
48 48
 	}
49 49
 
50 50
 
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 	 * @return array Associative list of items implementing \Aimeos\MShop\Catalog\Item\Iface with their IDs as keys
57 57
 	 * @since 2015.08
58 58
 	 */
59
-	public function getCatalogPath( $id, array $domains = array( 'text', 'media' ) )
59
+	public function getCatalogPath($id, array $domains = array('text', 'media'))
60 60
 	{
61
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'catalog' )->getPath( $id, $domains );
61
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'catalog')->getPath($id, $domains);
62 62
 	}
63 63
 
64 64
 
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
 	 * @return \Aimeos\MShop\Catalog\Item\Iface Catalog node, maybe with children depending on the level constant
74 74
 	 * @since 2015.08
75 75
 	 */
76
-	public function getCatalogTree( $id = null, array $domains = array( 'text', 'media' ),
77
-		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE, \Aimeos\MW\Criteria\Iface $search = null )
76
+	public function getCatalogTree($id = null, array $domains = array('text', 'media'),
77
+		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE, \Aimeos\MW\Criteria\Iface $search = null)
78 78
 	{
79
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'catalog' )->getTree( $id, $domains, $level, $search );
79
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'catalog')->getTree($id, $domains, $level, $search);
80 80
 	}
81 81
 
82 82
 
@@ -89,19 +89,19 @@  discard block
 block discarded – undo
89 89
 	 * @throws \Aimeos\Controller\Frontend\Catalog\Exception If product isn't available
90 90
 	 * @since 2015.08
91 91
 	 */
92
-	public function getProductItems( array $ids, array $domains = array( 'media', 'price', 'text' ) )
92
+	public function getProductItems(array $ids, array $domains = array('media', 'price', 'text'))
93 93
 	{
94
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'product' );
94
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'product');
95 95
 
96
-		$search = $manager->createSearch( true );
96
+		$search = $manager->createSearch(true);
97 97
 		$expr = array(
98
-			$search->compare( '==', 'product.id', $ids ),
98
+			$search->compare('==', 'product.id', $ids),
99 99
 			$search->getConditions(),
100 100
 		);
101
-		$search->setConditions( $search->combine( '&&', $expr ) );
102
-		$search->setSlice( 0, count( $ids ) );
101
+		$search->setConditions($search->combine('&&', $expr));
102
+		$search->setSlice(0, count($ids));
103 103
 
104
-		return $manager->searchItems( $search, $domains );
104
+		return $manager->searchItems($search, $domains);
105 105
 	}
106 106
 
107 107
 
@@ -114,10 +114,10 @@  discard block
 block discarded – undo
114 114
 	 * @since 2015.08
115 115
 	 * @deprecated Use method in index controller instead
116 116
 	 */
117
-	public function aggregateIndex( \Aimeos\MW\Criteria\Iface $filter, $key )
117
+	public function aggregateIndex(\Aimeos\MW\Criteria\Iface $filter, $key)
118 118
 	{
119
-		$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'index' );
120
-		return $cntl->aggregate( $filter, $key );
119
+		$cntl = \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'index');
120
+		return $cntl->aggregate($filter, $key);
121 121
 	}
122 122
 
123 123
 
@@ -133,10 +133,10 @@  discard block
 block discarded – undo
133 133
 	 * @since 2015.08
134 134
 	 * @deprecated Use method in index controller instead
135 135
 	 */
136
-	public function createIndexFilter( $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
136
+	public function createIndexFilter($sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default')
137 137
 	{
138
-		$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'index' );
139
-		return $cntl->createFilter( $sort, $direction, $start, $size, $listtype );
138
+		$cntl = \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'index');
139
+		return $cntl->createFilter($sort, $direction, $start, $size, $listtype);
140 140
 	}
141 141
 
142 142
 
@@ -153,12 +153,12 @@  discard block
 block discarded – undo
153 153
 	 * @since 2015.08
154 154
 	 * @deprecated Use createIndexFilter() and addIndexFilterCategory() instead
155 155
 	 */
156
-	public function createIndexFilterCategory( $catid, $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
156
+	public function createIndexFilterCategory($catid, $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default')
157 157
 	{
158
-		$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'index' );
158
+		$cntl = \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'index');
159 159
 
160
-		$filter = $cntl->createFilter( $sort, $direction, $start, $size, $listtype );
161
-		$filter = $cntl->addFilterCategory( $filter, $catid, \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE, $sort, $direction, $listtype );
160
+		$filter = $cntl->createFilter($sort, $direction, $start, $size, $listtype);
161
+		$filter = $cntl->addFilterCategory($filter, $catid, \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE, $sort, $direction, $listtype);
162 162
 
163 163
 		return $filter;
164 164
 	}
@@ -177,12 +177,12 @@  discard block
 block discarded – undo
177 177
 	 * @since 2015.08
178 178
 	 * @deprecated Use createIndexFilter() and addIndexFilterText() instead
179 179
 	 */
180
-	public function createIndexFilterText( $input, $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
180
+	public function createIndexFilterText($input, $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default')
181 181
 	{
182
-		$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'index' );
182
+		$cntl = \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'index');
183 183
 
184
-		$filter = $cntl->createFilter( $sort, $direction, $start, $size, $listtype );
185
-		$filter = $cntl->addFilterText( $filter, $input, $sort, $direction, $listtype );
184
+		$filter = $cntl->createFilter($sort, $direction, $start, $size, $listtype);
185
+		$filter = $cntl->addFilterText($filter, $input, $sort, $direction, $listtype);
186 186
 
187 187
 		return $filter;
188 188
 	}
@@ -197,10 +197,10 @@  discard block
 block discarded – undo
197 197
 	 * @since 2015.08
198 198
 	 * @deprecated Use method in index controller instead
199 199
 	 */
200
-	public function addIndexFilterCategory( \Aimeos\MW\Criteria\Iface $search, $catid )
200
+	public function addIndexFilterCategory(\Aimeos\MW\Criteria\Iface $search, $catid)
201 201
 	{
202
-		$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'index' );
203
-		return $cntl->addFilterCategory( $search, $catid );
202
+		$cntl = \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'index');
203
+		return $cntl->addFilterCategory($search, $catid);
204 204
 	}
205 205
 
206 206
 
@@ -214,10 +214,10 @@  discard block
 block discarded – undo
214 214
 	 * @since 2015.08
215 215
 	 * @deprecated Use method in index controller instead
216 216
 	 */
217
-	public function addIndexFilterText( \Aimeos\MW\Criteria\Iface $search, $input, $listtype = 'default' )
217
+	public function addIndexFilterText(\Aimeos\MW\Criteria\Iface $search, $input, $listtype = 'default')
218 218
 	{
219
-		$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'index' );
220
-		return $cntl->addFilterText( $search, $input, $listtype );
219
+		$cntl = \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'index');
220
+		return $cntl->addFilterText($search, $input, $listtype);
221 221
 	}
222 222
 
223 223
 
@@ -231,10 +231,10 @@  discard block
 block discarded – undo
231 231
 	 * @since 2015.08
232 232
 	 * @deprecated Use method in index controller instead
233 233
 	 */
234
-	public function getIndexItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null )
234
+	public function getIndexItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null)
235 235
 	{
236
-		$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'index' );
237
-		return $cntl->getItems( $filter, $domains, $total );
236
+		$cntl = \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'index');
237
+		return $cntl->getItems($filter, $domains, $total);
238 238
 	}
239 239
 
240 240
 
@@ -251,10 +251,10 @@  discard block
 block discarded – undo
251 251
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
252 252
 	 * @deprecated Use method in index controller instead
253 253
 	 */
254
-	public function createTextFilter( $input, $sort = null, $direction = '+', $start = 0, $size = 25, $listtype = 'default', $type = 'name' )
254
+	public function createTextFilter($input, $sort = null, $direction = '+', $start = 0, $size = 25, $listtype = 'default', $type = 'name')
255 255
 	{
256
-		$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'index' );
257
-		return $cntl->createTextFilter( $input, $sort, $direction, $start, $size, $listtype, $type );
256
+		$cntl = \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'index');
257
+		return $cntl->createTextFilter($input, $sort, $direction, $start, $size, $listtype, $type);
258 258
 	}
259 259
 
260 260
 
@@ -265,8 +265,8 @@  discard block
 block discarded – undo
265 265
 	 * @return array Associative list of the product ID as key and the product text as value
266 266
 	 * @deprecated Use method in index controller instead
267 267
 	 */
268
-	public function getTextList( \Aimeos\MW\Criteria\Iface $filter )
268
+	public function getTextList(\Aimeos\MW\Criteria\Iface $filter)
269 269
 	{
270
-		return \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'index' )->getTextList( $filter );
270
+		return \Aimeos\Controller\Frontend\Factory::createController($this->getContext(), 'index')->getTextList($filter);
271 271
 	}
272 272
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Index/Iface.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
31 31
 	 * @since 2017.03
32 32
 	 */
33
-	public function addFilterAttribute( \Aimeos\MW\Criteria\Iface $filter, array $attrIds, array $optIds, array $oneIds );
33
+	public function addFilterAttribute(\Aimeos\MW\Criteria\Iface $filter, array $attrIds, array $optIds, array $oneIds);
34 34
 
35 35
 
36 36
 	/**
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
46 46
 	 * @since 2017.03
47 47
 	 */
48
-	public function addFilterCategory( \Aimeos\MW\Criteria\Iface $filter, $catId,
49
-		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE, $sort = null, $direction = '+', $listtype = 'default' );
48
+	public function addFilterCategory(\Aimeos\MW\Criteria\Iface $filter, $catId,
49
+		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE, $sort = null, $direction = '+', $listtype = 'default');
50 50
 
51 51
 
52 52
 	/**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
61 61
 	 * @since 2017.03
62 62
 	 */
63
-	public function addFilterText( \Aimeos\MW\Criteria\Iface $filter, $input, $sort = null, $direction = '+', $listtype = 'default' );
63
+	public function addFilterText(\Aimeos\MW\Criteria\Iface $filter, $input, $sort = null, $direction = '+', $listtype = 'default');
64 64
 
65 65
 
66 66
 	/**
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 * @return array Associative list of key values as key and the product count for this key as value
72 72
 	 * @since 2017.03
73 73
 	 */
74
-	public function aggregate( \Aimeos\MW\Criteria\Iface $filter, $key );
74
+	public function aggregate(\Aimeos\MW\Criteria\Iface $filter, $key);
75 75
 
76 76
 
77 77
 	/**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
86 86
 	 * @since 2017.03
87 87
 	 */
88
-	public function createFilter( $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' );
88
+	public function createFilter($sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default');
89 89
 
90 90
 
91 91
 	/**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 * @param string $type Type of the text like "name", "short", "long", etc.
101 101
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
102 102
 	 */
103
-	public function createTextFilter( $input, $sort = null, $direction = '-', $start = 0, $size = 25, $listtype = 'default', $type = 'name' );
103
+	public function createTextFilter($input, $sort = null, $direction = '-', $start = 0, $size = 25, $listtype = 'default', $type = 'name');
104 104
 
105 105
 
106 106
 	/**
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 	 * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface
113 113
 	 * @since 2017.03
114 114
 	 */
115
-	public function getItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null );
115
+	public function getItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null);
116 116
 
117 117
 
118 118
 	/**
@@ -121,5 +121,5 @@  discard block
 block discarded – undo
121 121
 	 * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions
122 122
 	 * @return array Associative list of the product ID as key and the product text as value
123 123
 	 */
124
-	public function getTextList( \Aimeos\MW\Criteria\Iface $filter );
124
+	public function getTextList(\Aimeos\MW\Criteria\Iface $filter);
125 125
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Index/Decorator/Base.php 1 patch
Spacing   +20 added lines, -20 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
 
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
62 62
 	 * @since 2017.03
63 63
 	 */
64
-	public function addFilterAttribute( \Aimeos\MW\Criteria\Iface $filter, array $attrIds, array $optIds, array $oneIds )
64
+	public function addFilterAttribute(\Aimeos\MW\Criteria\Iface $filter, array $attrIds, array $optIds, array $oneIds)
65 65
 	{
66
-		return $this->getController()->addFilterAttribute( $filter, $attrIds, $optIds, $oneIds );
66
+		return $this->getController()->addFilterAttribute($filter, $attrIds, $optIds, $oneIds);
67 67
 	}
68 68
 
69 69
 
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
80 80
 	 * @since 2017.03
81 81
 	 */
82
-	public function addFilterCategory( \Aimeos\MW\Criteria\Iface $filter, $catId,
83
-		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE, $sort = null, $direction = '+', $listtype = 'default' )
82
+	public function addFilterCategory(\Aimeos\MW\Criteria\Iface $filter, $catId,
83
+		$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE, $sort = null, $direction = '+', $listtype = 'default')
84 84
 	{
85
-		return $this->getController()->addFilterCategory( $search, $catid, $level, $sort, $direction, $listtype );
85
+		return $this->getController()->addFilterCategory($search, $catid, $level, $sort, $direction, $listtype);
86 86
 	}
87 87
 
88 88
 
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
98 98
 	 * @since 2017.03
99 99
 	 */
100
-	public function addFilterText( \Aimeos\MW\Criteria\Iface $filter, $input, $sort = null, $direction = '+', $listtype = 'default' )
100
+	public function addFilterText(\Aimeos\MW\Criteria\Iface $filter, $input, $sort = null, $direction = '+', $listtype = 'default')
101 101
 	{
102
-		return $this->getController()->addIndexFilterText( $search, $input, $sort, $direction, $listtype );
102
+		return $this->getController()->addIndexFilterText($search, $input, $sort, $direction, $listtype);
103 103
 	}
104 104
 
105 105
 
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
 	 * @return array Associative list of key values as key and the product count for this key as value
112 112
 	 * @since 2015.08
113 113
 	 */
114
-	public function aggregate( \Aimeos\MW\Criteria\Iface $filter, $key )
114
+	public function aggregate(\Aimeos\MW\Criteria\Iface $filter, $key)
115 115
 	{
116
-		return $this->getController()->aggregate( $filter, $key );
116
+		return $this->getController()->aggregate($filter, $key);
117 117
 	}
118 118
 
119 119
 
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
129 129
 	 * @since 2015.08
130 130
 	 */
131
-	public function createFilter( $sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default' )
131
+	public function createFilter($sort = null, $direction = '+', $start = 0, $size = 100, $listtype = 'default')
132 132
 	{
133
-		return $this->getController()->createFilter( $sort, $direction, $start, $size, $listtype );
133
+		return $this->getController()->createFilter($sort, $direction, $start, $size, $listtype);
134 134
 	}
135 135
 
136 136
 
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
 	 * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface
144 144
 	 * @since 2015.08
145 145
 	 */
146
-	public function getItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null )
146
+	public function getItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null)
147 147
 	{
148
-		return $this->getController()->getItems( $filter, $domains, $total );
148
+		return $this->getController()->getItems($filter, $domains, $total);
149 149
 	}
150 150
 
151 151
 
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
161 161
 	 * @param string $type Type of the text like "name", "short", "long", etc.
162 162
 	 * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching
163 163
 	 */
164
-	public function createTextFilter( $input, $sort = null, $direction = '-', $start = 0, $size = 25, $listtype = 'default', $type = 'name' )
164
+	public function createTextFilter($input, $sort = null, $direction = '-', $start = 0, $size = 25, $listtype = 'default', $type = 'name')
165 165
 	{
166
-		return $this->getController()->createTextFilter( $input, $sort, $direction, $start, $size, $listtype, $type );
166
+		return $this->getController()->createTextFilter($input, $sort, $direction, $start, $size, $listtype, $type);
167 167
 	}
168 168
 
169 169
 
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
 	 * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions
174 174
 	 * @return array Associative list of the product ID as key and the product text as value
175 175
 	 */
176
-	public function getTextList( \Aimeos\MW\Criteria\Iface $filter )
176
+	public function getTextList(\Aimeos\MW\Criteria\Iface $filter)
177 177
 	{
178
-		return $this->getController()->getTextList( $filter );
178
+		return $this->getController()->getTextList($filter);
179 179
 	}
180 180
 
181 181
 
Please login to merge, or discard this patch.