@@ -836,7 +836,7 @@ discard block |
||
| 836 | 836 | * @param int $user_id |
| 837 | 837 | * @param int $product_id |
| 838 | 838 | * |
| 839 | - * @return bool |
|
| 839 | + * @return boolean|null |
|
| 840 | 840 | */ |
| 841 | 841 | public static function has_customer_bought_product ( $user_id, $product_id ){ |
| 842 | 842 | |
@@ -941,7 +941,7 @@ discard block |
||
| 941 | 941 | * @since 1.2.0 |
| 942 | 942 | * @since 1.9.0 move to class Sensei_WC |
| 943 | 943 | * |
| 944 | - * @param WC_Order $order |
|
| 944 | + * @param integer $order |
|
| 945 | 945 | * |
| 946 | 946 | * @return void |
| 947 | 947 | */ |
@@ -1152,6 +1152,7 @@ discard block |
||
| 1152 | 1152 | * @since 1.2.0 |
| 1153 | 1153 | * @since 1.9.0 Move function to the Sensei_WC class |
| 1154 | 1154 | * @param integer| WC_Order $order_id order ID |
| 1155 | + * @param integer $order_id |
|
| 1155 | 1156 | * @return void |
| 1156 | 1157 | */ |
| 1157 | 1158 | public static function cancel_order ( $order_id ) { |
@@ -1261,7 +1262,7 @@ discard block |
||
| 1261 | 1262 | * @param int $course_id (default: 0) |
| 1262 | 1263 | * @param array/Object $order_user (default: array()) Specific user's data. |
| 1263 | 1264 | * |
| 1264 | - * @return bool|int |
|
| 1265 | + * @return boolean|string |
|
| 1265 | 1266 | */ |
| 1266 | 1267 | public static function course_update ( $course_id = 0, $order_user = array() ) { |
| 1267 | 1268 | |
@@ -1334,7 +1335,7 @@ discard block |
||
| 1334 | 1335 | * |
| 1335 | 1336 | * @param boolean $guest_checkout Current guest checkout setting |
| 1336 | 1337 | * |
| 1337 | - * @return boolean Modified guest checkout setting |
|
| 1338 | + * @return string|boolean Modified guest checkout setting |
|
| 1338 | 1339 | */ |
| 1339 | 1340 | public static function disable_guest_checkout( $guest_checkout ) { |
| 1340 | 1341 | |
@@ -1505,7 +1506,7 @@ discard block |
||
| 1505 | 1506 | * Get all the valid subscription types. |
| 1506 | 1507 | * |
| 1507 | 1508 | * @since 1.9.0 |
| 1508 | - * @return array |
|
| 1509 | + * @return string[] |
|
| 1509 | 1510 | */ |
| 1510 | 1511 | public static function get_subscription_types(){ |
| 1511 | 1512 | |
@@ -816,7 +816,7 @@ discard block |
||
| 816 | 816 | * |
| 817 | 817 | * @since 1.4.5 |
| 818 | 818 | * @access public |
| 819 | - * @param mixed $image_size |
|
| 819 | + * @param string $image_size |
|
| 820 | 820 | * @return string |
| 821 | 821 | */ |
| 822 | 822 | public function get_image_size( $image_size ) { |
@@ -1042,7 +1042,7 @@ discard block |
||
| 1042 | 1042 | * @since 1.0.0 |
| 1043 | 1043 | * @param int $course_id (default: 0) |
| 1044 | 1044 | * @param array/Object $order_user (default: array()) Specific user's data. |
| 1045 | - * @return bool|int |
|
| 1045 | + * @return boolean|string |
|
| 1046 | 1046 | */ |
| 1047 | 1047 | public function woocommerce_course_update ( $course_id = 0, $order_user = array() ) { |
| 1048 | 1048 | |
@@ -1085,7 +1085,7 @@ discard block |
||
| 1085 | 1085 | * Disable guest checkout if a course product is in the cart |
| 1086 | 1086 | * @deprecated since 1.9.0 |
| 1087 | 1087 | * @param boolean $guest_checkout Current guest checkout setting |
| 1088 | - * @return boolean Modified guest checkout setting |
|
| 1088 | + * @return string|boolean Modified guest checkout setting |
|
| 1089 | 1089 | */ |
| 1090 | 1090 | public function disable_guest_checkout( $guest_checkout ) { |
| 1091 | 1091 | |