@@ -263,7 +263,7 @@ |
||
263 | 263 | * Checking credentials |
264 | 264 | * |
265 | 265 | * @param struct $credentials |
266 | - * @return array |
|
266 | + * @return boolean |
|
267 | 267 | */ |
268 | 268 | protected function checkCredentials($credentials) |
269 | 269 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * |
53 | 53 | * @param struct $credentials Credentials to use the server |
54 | 54 | * |
55 | - * @return array |
|
55 | + * @return boolean |
|
56 | 56 | */ |
57 | 57 | protected function checkCredentials($credentials) |
58 | 58 | { |
@@ -399,7 +399,6 @@ discard block |
||
399 | 399 | * |
400 | 400 | * @param struct $credentials Credentials to use the server |
401 | 401 | * @param integer $shop_id Id for the shop |
402 | - * @param integer $id Product id |
|
403 | 402 | * |
404 | 403 | * @return array |
405 | 404 | */ |
@@ -578,7 +577,7 @@ discard block |
||
578 | 577 | * |
579 | 578 | * @param struct $credentials Credentials to use the server |
580 | 579 | * @param integer $shop_id Id for the shop |
581 | - * @param integer $produt_id Product id to add |
|
580 | + * @param integer $product_id Product id to add |
|
582 | 581 | * @param integer $product_variation_id Product variation id to change |
583 | 582 | * @param integer $quantity Optional quantity |
584 | 583 | * @param string $text Extra text to the itemline |
@@ -621,7 +620,7 @@ discard block |
||
621 | 620 | * @param string $text Extra text to the itemline |
622 | 621 | * @param integer $product_detail_id Product detail id |
623 | 622 | * |
624 | - * @return mixed |
|
623 | + * @return boolean |
|
625 | 624 | */ |
626 | 625 | public function changeProductInBasket($credentials, $shop_id, $product_id, $product_variation_id, $quantity, $text = '', $product_detail_id = 0) |
627 | 626 | { |
@@ -1077,6 +1076,7 @@ discard block |
||
1077 | 1076 | /** |
1078 | 1077 | * Initialize the webshop |
1079 | 1078 | * |
1079 | + * @param integer $shop_id |
|
1080 | 1080 | * @return void |
1081 | 1081 | */ |
1082 | 1082 | private function _factoryWebshop($shop_id) |
@@ -18,6 +18,9 @@ |
||
18 | 18 | $result = $this->db->query('TRUNCATE shop'); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @return integer |
|
23 | + */ |
|
21 | 24 | private function createShop($values = array()) |
22 | 25 | { |
23 | 26 | $shop = new Intraface_modules_shop_Shop(); |