@@ -212,7 +212,7 @@ |
||
212 | 212 | /** |
213 | 213 | * Returns the frontend controller |
214 | 214 | * |
215 | - * @return \Aimeos\Controller\Frontend\Basket\Iface Frontend controller object |
|
215 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
216 | 216 | */ |
217 | 217 | protected function getController() |
218 | 218 | { |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * @param \Aimeos\Controller\Frontend\Iface $controller Controller object |
32 | 32 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects |
33 | 33 | */ |
34 | - public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context ) |
|
34 | + public function __construct(\Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context) |
|
35 | 35 | { |
36 | 36 | $this->context = $context; |
37 | 37 | $this->controller = $controller; |
@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | * @return mixed Returns the value of the called method |
47 | 47 | * @throws \Aimeos\Controller\Frontend\Exception If method call failed |
48 | 48 | */ |
49 | - public function __call( $name, array $param ) |
|
49 | + public function __call($name, array $param) |
|
50 | 50 | { |
51 | - return @call_user_func_array( array( $this->controller, $name ), $param ); |
|
51 | + return @call_user_func_array(array($this->controller, $name), $param); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | |
@@ -103,9 +103,9 @@ discard block |
||
103 | 103 | * @throws \Aimeos\Controller\Frontend\Basket\Exception If the product isn't available |
104 | 104 | * @return void |
105 | 105 | */ |
106 | - public function addProduct( $prodid, $quantity = 1, array $options = array(), array $variantAttributeIds = array(), |
|
106 | + public function addProduct($prodid, $quantity = 1, array $options = array(), array $variantAttributeIds = array(), |
|
107 | 107 | array $configAttributeIds = array(), array $hiddenAttributeIds = array(), array $customAttributeValues = array(), |
108 | - $stocktype = 'default' ) |
|
108 | + $stocktype = 'default') |
|
109 | 109 | { |
110 | 110 | $this->getController()->addProduct( |
111 | 111 | $prodid, $quantity, $options, $variantAttributeIds, $configAttributeIds, |
@@ -120,9 +120,9 @@ discard block |
||
120 | 120 | * @param integer $position Position number (key) of the order product item |
121 | 121 | * @return void |
122 | 122 | */ |
123 | - public function deleteProduct( $position ) |
|
123 | + public function deleteProduct($position) |
|
124 | 124 | { |
125 | - $this->getController()->deleteProduct( $position ); |
|
125 | + $this->getController()->deleteProduct($position); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | |
@@ -135,9 +135,9 @@ discard block |
||
135 | 135 | * @param array $configAttributeCodes Codes of the product config attributes that should be REMOVED |
136 | 136 | * @return void |
137 | 137 | */ |
138 | - public function editProduct( $position, $quantity, array $options = array(), array $configAttributeCodes = array() ) |
|
138 | + public function editProduct($position, $quantity, array $options = array(), array $configAttributeCodes = array()) |
|
139 | 139 | { |
140 | - $this->getController()->editProduct( $position, $quantity, $options, $configAttributeCodes ); |
|
140 | + $this->getController()->editProduct($position, $quantity, $options, $configAttributeCodes); |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | |
@@ -148,9 +148,9 @@ discard block |
||
148 | 148 | * @throws \Aimeos\Controller\Frontend\Basket\Exception if the coupon code is invalid or not allowed |
149 | 149 | * @return void |
150 | 150 | */ |
151 | - public function addCoupon( $code ) |
|
151 | + public function addCoupon($code) |
|
152 | 152 | { |
153 | - $this->getController()->addCoupon( $code ); |
|
153 | + $this->getController()->addCoupon($code); |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | |
@@ -161,9 +161,9 @@ discard block |
||
161 | 161 | * @throws \Aimeos\Controller\Frontend\Basket\Exception if the coupon code is invalid |
162 | 162 | * @return void |
163 | 163 | */ |
164 | - public function deleteCoupon( $code ) |
|
164 | + public function deleteCoupon($code) |
|
165 | 165 | { |
166 | - $this->getController()->deleteCoupon( $code ); |
|
166 | + $this->getController()->deleteCoupon($code); |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | |
@@ -176,9 +176,9 @@ discard block |
||
176 | 176 | * if one of the keys is invalid when using an array with key/value pairs |
177 | 177 | * @return void |
178 | 178 | */ |
179 | - public function setAddress( $type, $value ) |
|
179 | + public function setAddress($type, $value) |
|
180 | 180 | { |
181 | - $this->getController()->setAddress( $type, $value ); |
|
181 | + $this->getController()->setAddress($type, $value); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | |
@@ -192,9 +192,9 @@ discard block |
||
192 | 192 | * @throws \Aimeos\Controller\Frontend\Basket\Exception If there is no price to the service item attached |
193 | 193 | * @return void |
194 | 194 | */ |
195 | - public function setService( $type, $id, array $attributes = array() ) |
|
195 | + public function setService($type, $id, array $attributes = array()) |
|
196 | 196 | { |
197 | - $this->getController()->setService( $type, $id, $attributes ); |
|
197 | + $this->getController()->setService($type, $id, $attributes); |
|
198 | 198 | } |
199 | 199 | |
200 | 200 |
@@ -278,7 +278,7 @@ |
||
278 | 278 | /** |
279 | 279 | * Returns the frontend controller |
280 | 280 | * |
281 | - * @return \Aimeos\Controller\Frontend\Catalog\Iface Frontend controller object |
|
281 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
282 | 282 | */ |
283 | 283 | protected function getController() |
284 | 284 | { |
@@ -30,7 +30,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -152,7 +152,7 @@ |
||
152 | 152 | /** |
153 | 153 | * Returns the frontend controller |
154 | 154 | * |
155 | - * @return \Aimeos\Controller\Frontend\Order\Iface Frontend controller object |
|
155 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
156 | 156 | */ |
157 | 157 | protected function getController() |
158 | 158 | { |
@@ -30,7 +30,7 @@ discard block |
||
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 |
||
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 |
||
61 | 61 | * @param \Aimeos\MShop\Order\Item\Base\Iface $basket Basket object to be stored |
62 | 62 | * @return \Aimeos\MShop\Order\Item\Iface Order item that belongs to the stored basket |
63 | 63 | */ |
64 | - public function store( \Aimeos\MShop\Order\Item\Base\Iface $basket ) |
|
64 | + public function store(\Aimeos\MShop\Order\Item\Base\Iface $basket) |
|
65 | 65 | { |
66 | - return $this->getController()->store( $basket ); |
|
66 | + return $this->getController()->store($basket); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | |
@@ -86,9 +86,9 @@ discard block |
||
86 | 86 | * @param \Aimeos\MShop\Order\Item\Iface $orderItem Order item object |
87 | 87 | * @return void |
88 | 88 | */ |
89 | - public function block( \Aimeos\MShop\Order\Item\Iface $orderItem ) |
|
89 | + public function block(\Aimeos\MShop\Order\Item\Iface $orderItem) |
|
90 | 90 | { |
91 | - $this->getController()->block( $orderItem ); |
|
91 | + $this->getController()->block($orderItem); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -111,9 +111,9 @@ discard block |
||
111 | 111 | * @param \Aimeos\MShop\Order\Item\Iface $orderItem Order item object |
112 | 112 | * @return void |
113 | 113 | */ |
114 | - public function unblock( \Aimeos\MShop\Order\Item\Iface $orderItem ) |
|
114 | + public function unblock(\Aimeos\MShop\Order\Item\Iface $orderItem) |
|
115 | 115 | { |
116 | - $this->getController()->unblock( $orderItem ); |
|
116 | + $this->getController()->unblock($orderItem); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | |
@@ -132,9 +132,9 @@ discard block |
||
132 | 132 | * @param \Aimeos\MShop\Order\Item\Iface $orderItem Order item object |
133 | 133 | * @return void |
134 | 134 | */ |
135 | - public function update( \Aimeos\MShop\Order\Item\Iface $orderItem ) |
|
135 | + public function update(\Aimeos\MShop\Order\Item\Iface $orderItem) |
|
136 | 136 | { |
137 | - $this->getController()->update( $orderItem ); |
|
137 | + $this->getController()->update($orderItem); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 |
@@ -191,7 +191,7 @@ |
||
191 | 191 | /** |
192 | 192 | * Returns the frontend controller |
193 | 193 | * |
194 | - * @return \Aimeos\Controller\Frontend\Product\Iface Frontend controller object |
|
194 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
195 | 195 | */ |
196 | 196 | protected function getController() |
197 | 197 | { |
@@ -30,7 +30,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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()->addProductFilterText( $search, $input, $sort, $direction, $listtype ); |
|
102 | + return $this->getController()->addProductFilterText($search, $input, $sort, $direction, $listtype); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | |
@@ -111,9 +111,9 @@ discard block |
||
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 |
||
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 | |
@@ -142,9 +142,9 @@ discard block |
||
142 | 142 | * @return \Aimeos\MShop\Product\Item\Iface Product item including the referenced domains items |
143 | 143 | * @since 2017.03 |
144 | 144 | */ |
145 | - public function getItem( $productId, array $domains = array( 'attribute', 'media', 'price', 'product', 'product/property', 'text' ) ) |
|
145 | + public function getItem($productId, array $domains = array('attribute', 'media', 'price', 'product', 'product/property', 'text')) |
|
146 | 146 | { |
147 | - return $this->getController()->getItem( $productId, $domains ); |
|
147 | + return $this->getController()->getItem($productId, $domains); |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | |
@@ -156,9 +156,9 @@ discard block |
||
156 | 156 | * @return \Aimeos\MShop\Product\Item\Iface[] Associative list of product IDs as keys and product items as values |
157 | 157 | * @since 2017.03 |
158 | 158 | */ |
159 | - public function getItems( array $productIds, array $domains = array( 'media', 'price', 'text' ) ) |
|
159 | + public function getItems(array $productIds, array $domains = array('media', 'price', 'text')) |
|
160 | 160 | { |
161 | - return $this->getController()->getItems( $productIds, $domains ); |
|
161 | + return $this->getController()->getItems($productIds, $domains); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | |
@@ -171,9 +171,9 @@ discard block |
||
171 | 171 | * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface |
172 | 172 | * @since 2015.08 |
173 | 173 | */ |
174 | - public function searchItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null ) |
|
174 | + public function searchItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null) |
|
175 | 175 | { |
176 | - return $this->getController()->searchItems( $filter, $domains, $total ); |
|
176 | + return $this->getController()->searchItems($filter, $domains, $total); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 |
@@ -128,7 +128,7 @@ |
||
128 | 128 | /** |
129 | 129 | * Returns the frontend controller |
130 | 130 | * |
131 | - * @return \Aimeos\Controller\Frontend\Service\Iface Frontend controller object |
|
131 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
132 | 132 | */ |
133 | 133 | protected function getController() |
134 | 134 | { |
@@ -30,7 +30,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @param string|null $name Name of the controller implementaton (default: "Standard") |
30 | 30 | * @return \Aimeos\Controller\Frontend\Basket\Iface Controller object |
31 | 31 | */ |
32 | - public static function createController( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function createController(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** controller/frontend/basket/name |
35 | 35 | * Class name of the used basket frontend controller implementation |
@@ -64,20 +64,20 @@ discard block |
||
64 | 64 | * @since 2014.03 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'controller/frontend/basket/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('controller/frontend/basket/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) |
|
71 | + if (ctype_alnum($name) === false) |
|
72 | 72 | { |
73 | - $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Frontend\\Basket\\' . $name : '<not a string>'; |
|
74 | - throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
73 | + $classname = is_string($name) ? '\\Aimeos\\Controller\\Frontend\\Basket\\' . $name : '<not a string>'; |
|
74 | + throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $iface = '\\Aimeos\\Controller\\Frontend\\Basket\\Iface'; |
78 | 78 | $classname = '\\Aimeos\\Controller\\Frontend\\Basket\\' . $name; |
79 | 79 | |
80 | - $manager = self::createControllerBase( $context, $classname, $iface ); |
|
80 | + $manager = self::createControllerBase($context, $classname, $iface); |
|
81 | 81 | |
82 | 82 | /** controller/frontend/basket/decorators/excludes |
83 | 83 | * Excludes decorators added by the "common" option from the basket frontend controllers |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @see controller/frontend/basket/decorators/excludes |
154 | 154 | * @see controller/frontend/basket/decorators/global |
155 | 155 | */ |
156 | - return self::addControllerDecorators( $context, $manager, 'basket' ); |
|
156 | + return self::addControllerDecorators($context, $manager, 'basket'); |
|
157 | 157 | } |
158 | 158 | |
159 | 159 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @param string|null $name Name of the controller implementaton (default: "Standard") |
30 | 30 | * @return \Aimeos\Controller\Frontend\Order\Iface Controller object |
31 | 31 | */ |
32 | - public static function createController( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function createController(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** controller/frontend/order/name |
35 | 35 | * Class name of the used order frontend controller implementation |
@@ -64,19 +64,19 @@ discard block |
||
64 | 64 | * @since 2014.03 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'controller/frontend/order/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('controller/frontend/order/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) { |
|
72 | - $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Frontend\\Order\\' . $name : '<not a string>'; |
|
73 | - throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
71 | + if (ctype_alnum($name) === false) { |
|
72 | + $classname = is_string($name) ? '\\Aimeos\\Controller\\Frontend\\Order\\' . $name : '<not a string>'; |
|
73 | + throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | $iface = '\\Aimeos\\Controller\\Frontend\\Order\\Iface'; |
77 | 77 | $classname = '\\Aimeos\\Controller\\Frontend\\Order\\' . $name; |
78 | 78 | |
79 | - $manager = self::createControllerBase( $context, $classname, $iface ); |
|
79 | + $manager = self::createControllerBase($context, $classname, $iface); |
|
80 | 80 | |
81 | 81 | /** controller/frontend/order/decorators/excludes |
82 | 82 | * Excludes decorators added by the "common" option from the order frontend controllers |
@@ -152,6 +152,6 @@ discard block |
||
152 | 152 | * @see controller/frontend/order/decorators/excludes |
153 | 153 | * @see controller/frontend/order/decorators/global |
154 | 154 | */ |
155 | - return self::addControllerDecorators( $context, $manager, 'order' ); |
|
155 | + return self::addControllerDecorators($context, $manager, 'order'); |
|
156 | 156 | } |
157 | 157 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @param string|null $name Name of the controller implementaton (default: "Standard") |
30 | 30 | * @return \Aimeos\Controller\Frontend\Catalog\Iface Controller object |
31 | 31 | */ |
32 | - public static function createController( \Aimeos\MShop\Context\Item\Iface $context, $name = null ) |
|
32 | + public static function createController(\Aimeos\MShop\Context\Item\Iface $context, $name = null) |
|
33 | 33 | { |
34 | 34 | /** controller/frontend/catalog/name |
35 | 35 | * Class name of the used catalog frontend controller implementation |
@@ -64,20 +64,20 @@ discard block |
||
64 | 64 | * @since 2014.03 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if( $name === null ) { |
|
68 | - $name = $context->getConfig()->get( 'controller/frontend/catalog/name', 'Standard' ); |
|
67 | + if ($name === null) { |
|
68 | + $name = $context->getConfig()->get('controller/frontend/catalog/name', 'Standard'); |
|
69 | 69 | } |
70 | 70 | |
71 | - if( ctype_alnum( $name ) === false ) |
|
71 | + if (ctype_alnum($name) === false) |
|
72 | 72 | { |
73 | - $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Frontend\\Catalog\\' . $name : '<not a string>'; |
|
74 | - throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
|
73 | + $classname = is_string($name) ? '\\Aimeos\\Controller\\Frontend\\Catalog\\' . $name : '<not a string>'; |
|
74 | + throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $iface = '\\Aimeos\\Controller\\Frontend\\Catalog\\Iface'; |
78 | 78 | $classname = '\\Aimeos\\Controller\\Frontend\\Catalog\\' . $name; |
79 | 79 | |
80 | - $manager = self::createControllerBase( $context, $classname, $iface ); |
|
80 | + $manager = self::createControllerBase($context, $classname, $iface); |
|
81 | 81 | |
82 | 82 | /** controller/frontend/catalog/decorators/excludes |
83 | 83 | * Excludes decorators added by the "common" option from the catalog frontend controllers |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @see controller/frontend/catalog/decorators/excludes |
154 | 154 | * @see controller/frontend/catalog/decorators/global |
155 | 155 | */ |
156 | - return self::addControllerDecorators( $context, $manager, 'catalog' ); |
|
156 | + return self::addControllerDecorators($context, $manager, 'catalog'); |
|
157 | 157 | } |
158 | 158 | |
159 | 159 | } |
@@ -28,7 +28,7 @@ discard block |
||
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 |
||
41 | 41 | * @param array $param List of method parameter |
42 | 42 | * @throws \Aimeos\Controller\Frontend\Exception If method call failed |
43 | 43 | */ |
44 | - public function __call( $name, array $param ) |
|
44 | + public function __call($name, array $param) |
|
45 | 45 | { |
46 | - throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Unable to call method "%1$s"', $name ) ); |
|
46 | + throw new \Aimeos\Controller\Frontend\Exception(sprintf('Unable to call method "%1$s"', $name)); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 |