Completed
Push — master ( 92ad4d...5cef23 )
by Dwain
10:23
created
includes/class-sensei-grading.php 1 patch
Doc Comments   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 * Constructor
22 22
 	 * @since  1.3.0
23 23
      *
24
-     * @param $file
24
+     * @param string $file
25 25
 	 */
26 26
 	public function __construct ( $file ) {
27 27
 		$this->name = __( 'Grading', 'woothemes-sensei' );
@@ -328,6 +328,7 @@  discard block
 block discarded – undo
328 328
 	/**
329 329
 	 * Return array of valid statuses for either Course or Lesson
330 330
 	 * @since  1.7.0
331
+	 * @param string $type
331 332
 	 * @return array
332 333
 	 */
333 334
 	public function get_stati( $type ) {
@@ -527,7 +528,7 @@  discard block
 block discarded – undo
527 528
      * the grades as the Grader selected theme and saves the total grade and
528 529
      * individual question grades.
529 530
      *
530
-     * @return bool
531
+     * @return false|null
531 532
      */
532 533
     public function admin_process_grading_submission() {
533 534
 
@@ -904,8 +905,8 @@  discard block
 block discarded – undo
904 905
      * Grading logic specifically for the gap fill questions
905 906
      *
906 907
      * @since 1.9.0
907
-     * @param $question_id
908
-     * @param $user_answer
908
+     * @param integer $question_id
909
+     * @param string $user_answer
909 910
      *
910 911
      * @return bool | int false or the grade given to the user answer
911 912
      */
@@ -1009,7 +1010,7 @@  discard block
 block discarded – undo
1009 1010
      * Add together all the graded lesson grades
1010 1011
      *
1011 1012
      * @since 1.9.0
1012
-     * @return double $sum_of_all_grades
1013
+     * @return integer $sum_of_all_grades
1013 1014
      */
1014 1015
     public static function get_graded_lessons_sum(){
1015 1016
 
@@ -1032,7 +1033,7 @@  discard block
 block discarded – undo
1032 1033
      *
1033 1034
      * @since 1.9.0
1034 1035
      * @param $user_id
1035
-     * @return double
1036
+     * @return integer
1036 1037
      */
1037 1038
     public static function get_user_graded_lessons_sum( $user_id ){
1038 1039
         global $wpdb;
@@ -1055,7 +1056,7 @@  discard block
 block discarded – undo
1055 1056
      * @since 1.9.0
1056 1057
      *
1057 1058
      * @param int lesson_id
1058
-     * @return double
1059
+     * @return integer
1059 1060
      */
1060 1061
     public static function get_lessons_users_grades_sum( $lesson_id ){
1061 1062
 
@@ -1080,7 +1081,7 @@  discard block
 block discarded – undo
1080 1081
      * @since 1.9.0
1081 1082
      *
1082 1083
      * @param int $course_id
1083
-     * @return double
1084
+     * @return integer
1084 1085
      */
1085 1086
     public static function get_course_users_grades_sum( $course_id ){
1086 1087
 
Please login to merge, or discard this patch.