@@ -10,6 +10,9 @@ |
||
| 10 | 10 | private static $found_files = array(); |
| 11 | 11 | private static $custom_hooks_found = ''; |
| 12 | 12 | |
| 13 | + /** |
|
| 14 | + * @param string $pattern |
|
| 15 | + */ |
|
| 13 | 16 | private static function get_files( $pattern, $flags = 0, $path = '' ) { |
| 14 | 17 | |
| 15 | 18 | if ( ! $path && ( $dir = dirname( $pattern ) ) != '.' ) { |
@@ -21,6 +21,7 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Constructor |
| 23 | 23 | * @since 1.0.0 |
| 24 | + * @param string $file |
|
| 24 | 25 | * @return void |
| 25 | 26 | */ |
| 26 | 27 | public function __construct ( $file ) { |
@@ -215,6 +216,7 @@ discard block |
||
| 215 | 216 | /** |
| 216 | 217 | * An individual users' profile view for analysis, showing their Courses |
| 217 | 218 | * @since 1.2.0 |
| 219 | + * @param integer $user_id |
|
| 218 | 220 | * @return void |
| 219 | 221 | */ |
| 220 | 222 | public function analysis_user_profile_view( $user_id ) { |
@@ -242,6 +244,7 @@ discard block |
||
| 242 | 244 | /** |
| 243 | 245 | * An individual Course view for analysis, showing the Courses Lessons |
| 244 | 246 | * @since 1.2.0 |
| 247 | + * @param integer $course_id |
|
| 245 | 248 | * @return void |
| 246 | 249 | */ |
| 247 | 250 | public function analysis_course_view( $course_id ) { |
@@ -269,6 +272,8 @@ discard block |
||
| 269 | 272 | /** |
| 270 | 273 | * An individual Course view for analysis, showing a specific Learners Lessons |
| 271 | 274 | * @since 1.2.0 |
| 275 | + * @param integer $course_id |
|
| 276 | + * @param integer $user_id |
|
| 272 | 277 | * @return void |
| 273 | 278 | */ |
| 274 | 279 | public function analysis_user_course_view( $course_id, $user_id ) { |
@@ -296,6 +301,7 @@ discard block |
||
| 296 | 301 | /** |
| 297 | 302 | * An individual Course view for analysis, showing all the Learners |
| 298 | 303 | * @since 1.2.0 |
| 304 | + * @param integer $course_id |
|
| 299 | 305 | * @return void |
| 300 | 306 | */ |
| 301 | 307 | public function analysis_course_users_view( $course_id ) { |
@@ -323,6 +329,7 @@ discard block |
||
| 323 | 329 | /** |
| 324 | 330 | * An individual Lesson view for analysis, showing all the Learners |
| 325 | 331 | * @since 1.2.0 |
| 332 | + * @param integer $lesson_id |
|
| 326 | 333 | * @return void |
| 327 | 334 | */ |
| 328 | 335 | public function analysis_lesson_users_view( $lesson_id ) { |
@@ -633,7 +640,7 @@ discard block |
||
| 633 | 640 | /** |
| 634 | 641 | * Write array data to CSV |
| 635 | 642 | * @since 1.2.0 |
| 636 | - * @param array $report_array data array |
|
| 643 | + * @param array $report_data data array |
|
| 637 | 644 | * @return void |
| 638 | 645 | */ |
| 639 | 646 | public function report_write_download( $report_data = array() ) { |
@@ -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 | */ |
@@ -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 ) { |
@@ -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 ) { |
@@ -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(){ |