@@ -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() ) { |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | * |
| 373 | 373 | * @access public |
| 374 | 374 | * @param int $post_id |
| 375 | - * @return void |
|
| 375 | + * @return integer|null |
|
| 376 | 376 | */ |
| 377 | 377 | public function meta_box_save ( $post_id ) { |
| 378 | 378 | global $post, $messages; |
@@ -848,7 +848,6 @@ discard block |
||
| 848 | 848 | * course_count function. |
| 849 | 849 | * |
| 850 | 850 | * @access public |
| 851 | - * @param array $exclude (default: array()) |
|
| 852 | 851 | * @param string $post_status (default: 'publish') |
| 853 | 852 | * @return int |
| 854 | 853 | */ |
@@ -1159,7 +1158,6 @@ discard block |
||
| 1159 | 1158 | * |
| 1160 | 1159 | * @since 1.4.0 |
| 1161 | 1160 | * @param object $user Queried user object |
| 1162 | - * @param boolean $manage Whether the user has permission to manage the courses |
|
| 1163 | 1161 | * @return string HTML displayng course data |
| 1164 | 1162 | */ |
| 1165 | 1163 | public function load_user_courses_content( $user = false ) { |
@@ -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 ); |
@@ -473,7 +473,6 @@ discard block |
||
| 473 | 473 | * Remove Sensei custom menu items depending on settings and logged in status. |
| 474 | 474 | * |
| 475 | 475 | * @access public |
| 476 | - * @param object $item |
|
| 477 | 476 | * @return object $item |
| 478 | 477 | */ |
| 479 | 478 | public function sensei_wp_nav_menu_objects( $sorted_menu_items ) { |
@@ -530,7 +529,7 @@ discard block |
||
| 530 | 529 | * |
| 531 | 530 | * @deprecated since 1.9.0 |
| 532 | 531 | * @since 1.2.0 |
| 533 | - * @return void |
|
| 532 | + * @return string|null |
|
| 534 | 533 | */ |
| 535 | 534 | function sensei_course_image( $course_id, $width = '100', $height = '100', $return = false ) { |
| 536 | 535 | |
@@ -551,7 +550,7 @@ discard block |
||
| 551 | 550 | /** |
| 552 | 551 | * sensei_lesson_image output for lesson image |
| 553 | 552 | * @since 1.2.0 |
| 554 | - * @return void |
|
| 553 | + * @return string|null |
|
| 555 | 554 | * @deprecated since 1.9.0 |
| 556 | 555 | */ |
| 557 | 556 | function sensei_lesson_image( $lesson_id, $width = '100', $height = '100', $return = false, $widget = false ) { |
@@ -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 ) { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | * |
| 240 | 240 | * @access public |
| 241 | 241 | * @param int $post_id |
| 242 | - * @return void |
|
| 242 | + * @return integer|null |
|
| 243 | 243 | */ |
| 244 | 244 | public function meta_box_save ( $post_id ) { |
| 245 | 245 | |
@@ -2418,7 +2418,7 @@ discard block |
||
| 2418 | 2418 | * |
| 2419 | 2419 | * @access private |
| 2420 | 2420 | * @param array $data (default: array()) |
| 2421 | - * @return void |
|
| 2421 | + * @return boolean |
|
| 2422 | 2422 | */ |
| 2423 | 2423 | private function lesson_delete_question( $data = array() ) { |
| 2424 | 2424 | |
@@ -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 ) { |