@@ -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 ){ |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | * |
| 115 | 115 | * @since 1.9.0 |
| 116 | 116 | * |
| 117 | - * @param array $category_ids |
|
| 117 | + * @param array $categories |
|
| 118 | 118 | * @return array |
| 119 | 119 | */ |
| 120 | 120 | public function generate_term_ids( $categories = array() ){ |
@@ -325,7 +325,7 @@ |
||
| 325 | 325 | * |
| 326 | 326 | * @param array $classes |
| 327 | 327 | * @param WP_Post $course |
| 328 | - * @return array $classes |
|
| 328 | + * @return string[] $classes |
|
| 329 | 329 | */ |
| 330 | 330 | public function course_status_class_tagging($classes, $course){ |
| 331 | 331 | |
@@ -167,8 +167,6 @@ |
||
| 167 | 167 | |
| 168 | 168 | /** |
| 169 | 169 | * Load the desired component, if a method is available for it. |
| 170 | - * @param string $component The component to potentially be loaded. |
|
| 171 | - * |
|
| 172 | 170 | * @since 1.0.0 |
| 173 | 171 | * @return void |
| 174 | 172 | */ |