Completed
Push — master ( 27cf3f...45554e )
by Aimeos
02:14
created
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/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.