@@ -40,6 +40,7 @@ discard block |
||
40 | 40 | * Constructor for the email class hooks in all emails that can be sent. |
41 | 41 | * |
42 | 42 | * @access public |
43 | + * @param string $file |
|
43 | 44 | * @return void |
44 | 45 | */ |
45 | 46 | function __construct( $file ) { |
@@ -140,7 +141,7 @@ discard block |
||
140 | 141 | * Wraps a message in the sensei mail template. |
141 | 142 | * |
142 | 143 | * @access public |
143 | - * @param mixed $content |
|
144 | + * @param null|string $content |
|
144 | 145 | * @return string |
145 | 146 | */ |
146 | 147 | function wrap_message( $content ) { |
@@ -198,6 +199,9 @@ discard block |
||
198 | 199 | remove_filter( 'wp_mail_content_type', array( $this, 'get_content_type' ) ); |
199 | 200 | } |
200 | 201 | |
202 | + /** |
|
203 | + * @param string $email_template |
|
204 | + */ |
|
201 | 205 | function get_content( $email_template ) { |
202 | 206 | |
203 | 207 | $message = $this->load_template( $email_template ); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * Constructor |
23 | 23 | * @since 1.3.0 |
24 | 24 | * |
25 | - * @param $file |
|
25 | + * @param string $file |
|
26 | 26 | */ |
27 | 27 | public function __construct ( $file ) { |
28 | 28 | $this->name = __( 'Grading', 'woothemes-sensei' ); |
@@ -330,6 +330,7 @@ discard block |
||
330 | 330 | /** |
331 | 331 | * Return array of valid statuses for either Course or Lesson |
332 | 332 | * @since 1.7.0 |
333 | + * @param string $type |
|
333 | 334 | * @return array |
334 | 335 | */ |
335 | 336 | public function get_stati( $type ) { |
@@ -529,7 +530,7 @@ discard block |
||
529 | 530 | * the grades as the Grader selected theme and saves the total grade and |
530 | 531 | * individual question grades. |
531 | 532 | * |
532 | - * @return bool |
|
533 | + * @return false|null |
|
533 | 534 | */ |
534 | 535 | public function admin_process_grading_submission() { |
535 | 536 | |
@@ -906,8 +907,8 @@ discard block |
||
906 | 907 | * Grading logic specifically for the gap fill questions |
907 | 908 | * |
908 | 909 | * @since 1.9.0 |
909 | - * @param $question_id |
|
910 | - * @param $user_answer |
|
910 | + * @param integer $question_id |
|
911 | + * @param string $user_answer |
|
911 | 912 | * |
912 | 913 | * @return bool | int false or the grade given to the user answer |
913 | 914 | */ |
@@ -44,6 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Constructor |
46 | 46 | * @since 1.2.0 |
47 | + * @param string $token |
|
47 | 48 | * @return void |
48 | 49 | */ |
49 | 50 | public function __construct ( $token ) { |
@@ -299,7 +299,7 @@ |
||
299 | 299 | * @param integer $sender_id ID of sender |
300 | 300 | * @param integer $receiver_id ID of receiver |
301 | 301 | * @param string $message Message content |
302 | - * @param string $post_id ID of post related to message |
|
302 | + * @param integer $post_id ID of post related to message |
|
303 | 303 | * @return mixed Message ID on success, boolean false on failure |
304 | 304 | */ |
305 | 305 | private function save_new_message_post( $sender_id = 0, $receiver_id = 0, $message = '', $post_id = 0 ) { |
@@ -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 ) { |