@@ -973,7 +973,7 @@ discard block |
||
| 973 | 973 | * @since 1.2.0 |
| 974 | 974 | * @since 1.9.0 move to class Sensei_WC |
| 975 | 975 | * |
| 976 | - * @param WC_Order $order |
|
| 976 | + * @param integer $order |
|
| 977 | 977 | * |
| 978 | 978 | * @return void |
| 979 | 979 | */ |
@@ -1191,6 +1191,7 @@ discard block |
||
| 1191 | 1191 | * @since 1.2.0 |
| 1192 | 1192 | * @since 1.9.0 Move function to the Sensei_WC class |
| 1193 | 1193 | * @param integer| WC_Order $order_id order ID |
| 1194 | + * @param integer $order_id |
|
| 1194 | 1195 | * @return void |
| 1195 | 1196 | */ |
| 1196 | 1197 | public static function cancel_order ( $order_id ) { |
@@ -1309,7 +1310,7 @@ discard block |
||
| 1309 | 1310 | * @param int $course_id (default: 0) |
| 1310 | 1311 | * @param array/Object $order_user (default: array()) Specific user's data. |
| 1311 | 1312 | * |
| 1312 | - * @return bool|int |
|
| 1313 | + * @return boolean|string |
|
| 1313 | 1314 | */ |
| 1314 | 1315 | public static function course_update ( $course_id = 0, $order_user = array() ) { |
| 1315 | 1316 | |
@@ -1381,7 +1382,7 @@ discard block |
||
| 1381 | 1382 | * |
| 1382 | 1383 | * @param boolean $guest_checkout Current guest checkout setting |
| 1383 | 1384 | * |
| 1384 | - * @return boolean Modified guest checkout setting |
|
| 1385 | + * @return string|boolean Modified guest checkout setting |
|
| 1385 | 1386 | */ |
| 1386 | 1387 | public static function disable_guest_checkout( $guest_checkout ) { |
| 1387 | 1388 | |
@@ -1555,7 +1556,7 @@ discard block |
||
| 1555 | 1556 | * Get all the valid subscription types. |
| 1556 | 1557 | * |
| 1557 | 1558 | * @since 1.9.0 |
| 1558 | - * @return array |
|
| 1559 | + * @return string[] |
|
| 1559 | 1560 | */ |
| 1560 | 1561 | public static function get_subscription_types(){ |
| 1561 | 1562 | |
@@ -1573,8 +1574,8 @@ discard block |
||
| 1573 | 1574 | * |
| 1574 | 1575 | * @since 1.9.0 |
| 1575 | 1576 | * |
| 1576 | - * @param $user_id |
|
| 1577 | - * @param $product_id |
|
| 1577 | + * @param integer $user_id |
|
| 1578 | + * @param string $product_id |
|
| 1578 | 1579 | * @param $course_id |
| 1579 | 1580 | * |
| 1580 | 1581 | * @return bool |
@@ -1638,7 +1639,7 @@ discard block |
||
| 1638 | 1639 | * Get all the orders for a specific user and product combination |
| 1639 | 1640 | * |
| 1640 | 1641 | * @param int $user_id |
| 1641 | - * @param $product_id |
|
| 1642 | + * @param integer $product_id |
|
| 1642 | 1643 | * |
| 1643 | 1644 | * @return array $orders |
| 1644 | 1645 | */ |
@@ -825,7 +825,7 @@ discard block |
||
| 825 | 825 | * |
| 826 | 826 | * @since 1.4.5 |
| 827 | 827 | * @access public |
| 828 | - * @param mixed $image_size |
|
| 828 | + * @param string $image_size |
|
| 829 | 829 | * @return string |
| 830 | 830 | */ |
| 831 | 831 | public function get_image_size( $image_size ) { |
@@ -1051,7 +1051,7 @@ discard block |
||
| 1051 | 1051 | * @since 1.0.0 |
| 1052 | 1052 | * @param int $course_id (default: 0) |
| 1053 | 1053 | * @param array/Object $order_user (default: array()) Specific user's data. |
| 1054 | - * @return bool|int |
|
| 1054 | + * @return boolean|string |
|
| 1055 | 1055 | */ |
| 1056 | 1056 | public function woocommerce_course_update ( $course_id = 0, $order_user = array() ) { |
| 1057 | 1057 | |
@@ -1070,7 +1070,7 @@ discard block |
||
| 1070 | 1070 | * @param integer $wc_product_id Product ID or Variation ID |
| 1071 | 1071 | * @param string $product_type '' or 'variation' |
| 1072 | 1072 | * |
| 1073 | - * @return WC_Product $wc_product_object |
|
| 1073 | + * @return integer $wc_product_object |
|
| 1074 | 1074 | */ |
| 1075 | 1075 | public function sensei_get_woocommerce_product_object ( $wc_product_id = 0, $product_type = '' ) { |
| 1076 | 1076 | |
@@ -1094,7 +1094,7 @@ discard block |
||
| 1094 | 1094 | * Disable guest checkout if a course product is in the cart |
| 1095 | 1095 | * @deprecated since 1.9.0 |
| 1096 | 1096 | * @param boolean $guest_checkout Current guest checkout setting |
| 1097 | - * @return boolean Modified guest checkout setting |
|
| 1097 | + * @return string|boolean Modified guest checkout setting |
|
| 1098 | 1098 | */ |
| 1099 | 1099 | public function disable_guest_checkout( $guest_checkout ) { |
| 1100 | 1100 | |