@@ -143,7 +143,7 @@ |
||
143 | 143 | * sensei_check_if_product_is_in_cart function. |
144 | 144 | * |
145 | 145 | * @deprecated since 1.9.0 |
146 | - * @param int $wc_post_id (default: 0) |
|
146 | + * @param int $wc_product_id (default: 0) |
|
147 | 147 | * @return bool |
148 | 148 | */ |
149 | 149 | function sensei_check_if_product_is_in_cart( $wc_product_id = 0 ) { |
@@ -21,6 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Constructor |
23 | 23 | * @since 1.6.0 |
24 | + * @param string $file |
|
24 | 25 | * @return void |
25 | 26 | */ |
26 | 27 | public function __construct ( $file ) { |
@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | private $order_page_slug; |
22 | 22 | public $taxonomy; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $file |
|
26 | + */ |
|
24 | 27 | public function __construct( $file ) |
25 | 28 | { |
26 | 29 | $this->file = $file; |
@@ -1942,6 +1945,7 @@ discard block |
||
1942 | 1945 | * Hooked into 'get_terms' |
1943 | 1946 | * |
1944 | 1947 | * @since 1.8.0 |
1948 | + * @param string[] $taxonomies |
|
1945 | 1949 | */ |
1946 | 1950 | public function append_teacher_name_to_module( $terms, $taxonomies, $args ) |
1947 | 1951 | { |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | /** |
404 | 404 | * Disable guest checkout if a course product is in the cart |
405 | 405 | * @param boolean $guest_checkout Current guest checkout setting |
406 | - * @return boolean Modified guest checkout setting |
|
406 | + * @return string|boolean Modified guest checkout setting |
|
407 | 407 | */ |
408 | 408 | public function disable_guest_checkout( $guest_checkout ) { |
409 | 409 | global $woocommerce; |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | * @since 1.0.0 |
643 | 643 | * @param int $course_id (default: 0) |
644 | 644 | * @param array/Object $order_user (default: array()) Specific user's data. |
645 | - * @return bool|int |
|
645 | + * @return boolean|string |
|
646 | 646 | */ |
647 | 647 | public function woocommerce_course_update ( $course_id = 0, $order_user = array() ) { |
648 | 648 | global $current_user; |
@@ -1241,7 +1241,7 @@ discard block |
||
1241 | 1241 | * |
1242 | 1242 | * @since 1.4.5 |
1243 | 1243 | * @access public |
1244 | - * @param mixed $image_size |
|
1244 | + * @param string $image_size |
|
1245 | 1245 | * @return string |
1246 | 1246 | */ |
1247 | 1247 | public function get_image_size( $image_size ) { |
@@ -33,10 +33,6 @@ discard block |
||
33 | 33 | * |
34 | 34 | * |
35 | 35 | * |
36 | - * @param string $message |
|
37 | - * @param string $type defaults to alert options( alert, tick , download , info ) |
|
38 | - * |
|
39 | - * @return void |
|
40 | 36 | */ |
41 | 37 | |
42 | 38 | public function add_notice( $content , $type = 'alert' ){ |
@@ -47,10 +43,6 @@ discard block |
||
47 | 43 | /** |
48 | 44 | * Output all notices added |
49 | 45 | * |
50 | - * @param string $message |
|
51 | - * @param string $type |
|
52 | - * |
|
53 | - * @return void |
|
54 | 46 | */ |
55 | 47 | |
56 | 48 | public function print_notices(){ |