@@ -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 ); |
@@ -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 ){ |
@@ -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 |