Passed
Push — 1.10.x ( ef00db...25211a )
by Yannick
279:14 queued 234:31
created
main/gradebook/lib/be/evaluation.class.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@  discard block
 block discarded – undo
81 81
 		return $this->name;
82 82
 	}
83 83
 
84
+	/**
85
+	 * @return string
86
+	 */
84 87
 	public function get_description()
85 88
 	{
86 89
 		return $this->description;
@@ -208,7 +211,7 @@  discard block
 block discarded – undo
208 211
 	 * @param int $user_id user id (evaluation owner)
209 212
 	 * @param string $course_code course code
210 213
 	 * @param int $category_id parent category
211
-	 * @param $visible visible
214
+	 * @param integer $visible visible
212 215
 	 */
213 216
 	public static function load(
214 217
 		$id = null,
@@ -270,7 +273,7 @@  discard block
 block discarded – undo
270 273
 
271 274
 
272 275
 	/**
273
-	 * @param array $result
276
+	 * @param Doctrine\DBAL\Driver\Statement|null $result
274 277
 	 * @return array
275 278
 	 */
276 279
 	private static function create_evaluation_objects_from_sql_result($result)
@@ -658,6 +661,7 @@  discard block
 block discarded – undo
658 661
 
659 662
 	/**
660 663
 	 * Internal function used by get_target_categories()
664
+	 * @param integer $level
661 665
 	 */
662 666
 	private function add_target_subcategories($targets, $level, $catid)
663 667
 	{
Please login to merge, or discard this patch.
main/gradebook/lib/be/exerciselink.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@
 block discarded – undo
372 372
     }
373 373
 
374 374
     /**
375
-     * @return array|string
375
+     * @return string
376 376
      */
377 377
     public function get_type_name()
378 378
     {
Please login to merge, or discard this patch.
main/gradebook/lib/be/forumthreadlink.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 
122 122
     /**
123 123
     * Has anyone done this exercise yet ?
124
-    * @return int
124
+    * @return boolean
125 125
     */
126 126
     public function has_results()
127 127
     {
Please login to merge, or discard this patch.
main/gradebook/lib/be/learnpathlink.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 
96 96
 	/**
97 97
 	 * Get the progress of this learnpath. Only the last attempt are taken into account.
98
-	 * @param $stud_id student id (default: all students who have results - then the average is returned)
98
+	 * @param integer $stud_id student id (default: all students who have results - then the average is returned)
99 99
 	 * @return	array (score, max) if student is given
100 100
 	 * 			array (sum of scores, number of scores) otherwise
101 101
 	 * 			or null if no scores available
Please login to merge, or discard this patch.
main/gradebook/lib/be/result.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@
 block discarded – undo
59 59
         $this->evaluation = $evaluation_id;
60 60
     }
61 61
 
62
+    /**
63
+     * @param string $creation_date
64
+     */
62 65
     public function set_date($creation_date)
63 66
     {
64 67
         $this->created_at = $creation_date;
Please login to merge, or discard this patch.
main/gradebook/lib/fe/gradebooktable.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,8 @@  discard block
 block discarded – undo
32 32
      * @param array $evals
33 33
      * @param array $links
34 34
      * @param null $addparams
35
+     * @param boolean $showTeacherView
36
+     * @param integer $userId
35 37
      */
36 38
     public function __construct(
37 39
         $currentcat,
@@ -895,7 +897,7 @@  discard block
 block discarded – undo
895 897
 
896 898
     /**
897 899
      * @param $item
898
-     * @return mixed
900
+     * @return string|null
899 901
      */
900 902
     private function build_course_code($item)
901 903
     {
Please login to merge, or discard this patch.
main/gradebook/lib/fe/linkform.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,8 +124,8 @@
 block discarded – undo
124 124
 	}
125 125
 
126 126
 	/**
127
-	 * @param $link
128
-	 * @param $courseCode
127
+	 * @param integer $link
128
+	 * @param null|string $courseCode
129 129
 	 * @return AttendanceLink|DropboxLink|ExerciseLink|ForumThreadLink|LearnpathLink|null|StudentPublicationLink|SurveyLink
130 130
 	 */
131 131
 	private function createLink($link, $courseCode)
Please login to merge, or discard this patch.
main/gradebook/lib/flatview_data_generator.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param array $evals
31 31
      * @param array $links
32 32
      * @param array $params
33
-     * @param null $mainCourseCategory
33
+     * @param Category|null $mainCourseCategory
34 34
      */
35 35
     public function FlatViewDataGenerator(
36 36
         $users = array(),
@@ -276,6 +276,8 @@  discard block
 block discarded – undo
276 276
 
277 277
     /**
278 278
      * Get actual array data
279
+     * @param integer $users_count
280
+     * @param integer $items_count
279 281
      * @return array 2-dimensional array - each array contains the elements:
280 282
      * 0: user id
281 283
      * 1: user lastname
Please login to merge, or discard this patch.
main/gradebook/lib/gradebook_data_generator.class.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,6 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     /**
73 73
      * Get actual array data
74
+     * @param integer $count
74 75
      * @return array 2-dimensional array - each array contains the elements:
75 76
      * 0: cat/eval/link object
76 77
      * 1: item name
@@ -304,7 +305,7 @@  discard block
 block discarded – undo
304 305
     /**
305 306
      * @param int $userId
306 307
      * @param GradebookItem $item
307
-     * @param $ignore_score_color
308
+     * @param boolean $ignore_score_color
308 309
      * @return null|string
309 310
      */
310 311
     private function build_result_column(
Please login to merge, or discard this patch.