@@ -1942,6 +1942,7 @@ |
||
| 1942 | 1942 | * Hooked into 'get_terms' |
| 1943 | 1943 | * |
| 1944 | 1944 | * @since 1.8.0 |
| 1945 | + * @param string[] $taxonomies |
|
| 1945 | 1946 | */ |
| 1946 | 1947 | public function append_teacher_name_to_module( $terms, $taxonomies, $args ) |
| 1947 | 1948 | { |
@@ -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 , note ) |
|
| 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(){ |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | * This function simply loads the question type template |
| 403 | 403 | * |
| 404 | 404 | * @since 1.9.0 |
| 405 | - * @param $question_type |
|
| 405 | + * @param string $question_type |
|
| 406 | 406 | */ |
| 407 | 407 | public static function load_question_template( $question_type ){ |
| 408 | 408 | |
@@ -487,7 +487,7 @@ discard block |
||
| 487 | 487 | * Get the questions media markup |
| 488 | 488 | * |
| 489 | 489 | * @since 1.9.0 |
| 490 | - * @param $question_id |
|
| 490 | + * @param string $question_id |
|
| 491 | 491 | * @return string |
| 492 | 492 | */ |
| 493 | 493 | public static function get_the_question_media( $question_id ){ |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | * |
| 124 | 124 | * This function hooks into the quiz page and accepts the answer form save post. |
| 125 | 125 | * @since 1.7.3 |
| 126 | - * @return bool $saved; |
|
| 126 | + * @return boolean|null $saved; |
|
| 127 | 127 | */ |
| 128 | 128 | public function user_save_quiz_answers_listener(){ |
| 129 | 129 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | * @param int $lesson_id |
| 215 | 215 | * @param int $user_id |
| 216 | 216 | * |
| 217 | - * @return array $answers or false |
|
| 217 | + * @return boolean $answers or false |
|
| 218 | 218 | */ |
| 219 | 219 | public function get_user_answers( $lesson_id, $user_id ){ |
| 220 | 220 | |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | * @type int $question_id |
| 708 | 708 | * @type int $question_grade |
| 709 | 709 | * } |
| 710 | - * @param $lesson_id |
|
| 710 | + * @param integer $lesson_id |
|
| 711 | 711 | * @param $user_id (Optional) will use the current user if not supplied |
| 712 | 712 | * |
| 713 | 713 | * @return bool |
@@ -754,7 +754,7 @@ discard block |
||
| 754 | 754 | * |
| 755 | 755 | * @since 1.7.4 |
| 756 | 756 | * |
| 757 | - * @param $lesson_id |
|
| 757 | + * @param integer $lesson_id |
|
| 758 | 758 | * @param $user_id (Optional) will use the current user if not supplied |
| 759 | 759 | * |
| 760 | 760 | * @return array $user_quiz_grades or false if none exists for this users |
@@ -1090,7 +1090,6 @@ discard block |
||
| 1090 | 1090 | * Filter the single title and add the Quiz to it. |
| 1091 | 1091 | * |
| 1092 | 1092 | * @param string $title |
| 1093 | - * @param int $id title post id |
|
| 1094 | 1093 | * @return string $quiz_title |
| 1095 | 1094 | */ |
| 1096 | 1095 | public static function single_quiz_title( $title, $post_id ){ |
@@ -793,7 +793,7 @@ |
||
| 793 | 793 | * Return an array of field types expecting an array value returned. |
| 794 | 794 | * @access protected |
| 795 | 795 | * @since 1.0.0 |
| 796 | - * @return void |
|
| 796 | + * @return string[] |
|
| 797 | 797 | */ |
| 798 | 798 | protected function get_array_field_types () { |
| 799 | 799 | return array( 'multicheck' ); |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | * |
| 364 | 364 | * @param $course_id |
| 365 | 365 | * @param $new_teacher_id |
| 366 | - * @return void |
|
| 366 | + * @return false|null |
|
| 367 | 367 | */ |
| 368 | 368 | public static function update_course_modules_author( $course_id ,$new_teacher_id ){ |
| 369 | 369 | |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | * @since 1.8.0 |
| 455 | 455 | * @access public |
| 456 | 456 | * @parameters |
| 457 | - * @return array $users user id array |
|
| 457 | + * @return boolean $users user id array |
|
| 458 | 458 | */ |
| 459 | 459 | public function update_course_lessons_author ( $course_id, $new_author ){ |
| 460 | 460 | |
@@ -843,8 +843,7 @@ discard block |
||
| 843 | 843 | * This function hooks into wp_insert_post |
| 844 | 844 | * |
| 845 | 845 | * @since 1.8.0 |
| 846 | - * @param int $course_id |
|
| 847 | - * @return bool |
|
| 846 | + * @return false|null |
|
| 848 | 847 | */ |
| 849 | 848 | public function notify_admin_teacher_course_creation( $new_status, $old_status, $post ){ |
| 850 | 849 | |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | * |
| 456 | 456 | * @since 1.1.0 |
| 457 | 457 | * @access public |
| 458 | - * @return void |
|
| 458 | + * @return boolean |
|
| 459 | 459 | */ |
| 460 | 460 | public function assign_role_caps() { |
| 461 | 461 | foreach ( $this->parent->post_types->role_caps as $role_cap_set ) { |
@@ -480,7 +480,7 @@ discard block |
||
| 480 | 480 | * |
| 481 | 481 | * @since 1.3.0 |
| 482 | 482 | * @access public |
| 483 | - * @return void |
|
| 483 | + * @return boolean |
|
| 484 | 484 | */ |
| 485 | 485 | public function set_default_quiz_grade_type() { |
| 486 | 486 | $args = array( 'post_type' => 'quiz', |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | * |
| 503 | 503 | * @since 1.3.0 |
| 504 | 504 | * @access public |
| 505 | - * @return void |
|
| 505 | + * @return boolean |
|
| 506 | 506 | */ |
| 507 | 507 | public function set_default_question_type() { |
| 508 | 508 | $args = array( 'post_type' => 'question', |
@@ -532,7 +532,7 @@ discard block |
||
| 532 | 532 | * |
| 533 | 533 | * @since 1.3.0 |
| 534 | 534 | * @access public |
| 535 | - * @return void |
|
| 535 | + * @return boolean |
|
| 536 | 536 | */ |
| 537 | 537 | public function update_question_answer_data( $n = 50, $offset = 0 ) { |
| 538 | 538 | |
@@ -1429,8 +1429,8 @@ discard block |
||
| 1429 | 1429 | * |
| 1430 | 1430 | * @global type $woothemes_sensei |
| 1431 | 1431 | * @global type $wpdb |
| 1432 | - * @param type $n |
|
| 1433 | - * @param type $offset |
|
| 1432 | + * @param integer $n |
|
| 1433 | + * @param integer $offset |
|
| 1434 | 1434 | * @return boolean |
| 1435 | 1435 | */ |
| 1436 | 1436 | function status_changes_repair_course_statuses( $n = 50, $offset = 0 ) { |
@@ -1674,8 +1674,8 @@ discard block |
||
| 1674 | 1674 | * Update the comment counts for all Courses and Lessons now that sensei comments will no longer be counted. |
| 1675 | 1675 | * |
| 1676 | 1676 | * @global type $wpdb |
| 1677 | - * @param type $n |
|
| 1678 | - * @param type $offset |
|
| 1677 | + * @param integer $n |
|
| 1678 | + * @param integer $offset |
|
| 1679 | 1679 | * @return boolean |
| 1680 | 1680 | */ |
| 1681 | 1681 | public function update_comment_course_lesson_comment_counts( $n = 50, $offset = 0 ) { |
@@ -178,8 +178,8 @@ |
||
| 178 | 178 | * |
| 179 | 179 | * @since 1.9.0 |
| 180 | 180 | * |
| 181 | - * @param $hook_tag |
|
| 182 | - * @param $version |
|
| 181 | + * @param string $hook_tag |
|
| 182 | + * @param string $version |
|
| 183 | 183 | * @param $alternative |
| 184 | 184 | * @param array $args |
| 185 | 185 | */ |
@@ -103,8 +103,8 @@ |
||
| 103 | 103 | * |
| 104 | 104 | * @since 1.9.0 |
| 105 | 105 | * |
| 106 | - * @param $title |
|
| 107 | - * @param $shortcode_specific_override |
|
| 106 | + * @param string $title |
|
| 107 | + * @param string $shortcode_specific_override |
|
| 108 | 108 | * @return string |
| 109 | 109 | */ |
| 110 | 110 | public static function generate_shortcode_courses( $title , $shortcode_specific_override ){ |