Completed
Push — 1.11.x ( 7ffd51...902ebd )
by José
50:21 queued 21:28
created
main/exercise/export/qti2/qti2_classes.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -77,6 +77,8 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * Return the XML flow for the possible answers.
79 79
      *
80
+     * @param string $questionIdent
81
+     * @param string $questionStatment
80 82
      */
81 83
     public function imsExportResponses($questionIdent, $questionStatment)
82 84
     {
@@ -104,6 +106,7 @@  discard block
 block discarded – undo
104 106
     /**
105 107
      * Return the XML flow of answer ResponsesDeclaration
106 108
      *
109
+     * @param string $questionIdent
107 110
      */
108 111
     public function imsExportResponsesDeclaration($questionIdent)
109 112
     {
@@ -155,6 +158,8 @@  discard block
 block discarded – undo
155 158
      * Export the text with missing words.
156 159
      *
157 160
      *
161
+     * @param string $questionIdent
162
+     * @param string $questionStatment
158 163
      */
159 164
     public function imsExportResponses($questionIdent, $questionStatment)
160 165
     {
@@ -174,6 +179,7 @@  discard block
 block discarded – undo
174 179
 
175 180
     /**
176 181
      *
182
+     * @param string $questionIdent
177 183
      */
178 184
     public function imsExportResponsesDeclaration($questionIdent)
179 185
     {
@@ -213,6 +219,8 @@  discard block
 block discarded – undo
213 219
 
214 220
     /**
215 221
      * Export the question part as a matrix-choice, with only one possible answer per line.
222
+     * @param string $questionIdent
223
+     * @param string $questionStatment
216 224
      */
217 225
     public function imsExportResponses($questionIdent, $questionStatment)
218 226
     {
@@ -255,6 +263,7 @@  discard block
 block discarded – undo
255 263
 
256 264
     /**
257 265
      *
266
+     * @param string $questionIdent
258 267
      */
259 268
     public function imsExportResponsesDeclaration($questionIdent)
260 269
     {
@@ -300,6 +309,8 @@  discard block
 block discarded – undo
300 309
     /**
301 310
      * TODO update this to match hot spots instead of copying matching
302 311
      * Export the question part as a matrix-choice, with only one possible answer per line.
312
+     * @param string $questionIdent
313
+     * @param string $questionStatment
303 314
      */
304 315
     public function imsExportResponses($questionIdent, $questionStatment, $questionDesc = '', $questionMedia = '')
305 316
     {
@@ -354,6 +365,7 @@  discard block
 block discarded – undo
354 365
 
355 366
     /**
356 367
      *
368
+     * @param string $questionIdent
357 369
      */
358 370
     public function imsExportResponsesDeclaration($questionIdent)
359 371
     {
@@ -384,6 +396,8 @@  discard block
 block discarded – undo
384 396
     /**
385 397
      * TODO implement
386 398
      * Export the question part as a matrix-choice, with only one possible answer per line.
399
+     * @param string $questionIdent
400
+     * @param string $questionStatment
387 401
      */
388 402
     public function imsExportResponses(
389 403
         $questionIdent,
@@ -400,6 +414,8 @@  discard block
 block discarded – undo
400 414
     }
401 415
     /**
402 416
      *
417
+     * @param string $questionIdent
418
+     * @param Ims2Question $question
403 419
      */
404 420
     public function imsExportResponsesDeclaration($questionIdent, $question)
405 421
     {
Please login to merge, or discard this patch.
main/inc/lib/skill.lib.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -365,6 +365,7 @@  discard block
 block discarded – undo
365 365
 
366 366
     /**
367 367
      * Gets an element
368
+     * @param integer $gradebook_id
368 369
      */
369 370
     public function get_skill_info($skill_id, $gradebook_id)
370 371
     {
@@ -612,7 +613,7 @@  discard block
 block discarded – undo
612 613
      * Gets an element
613 614
      * @param int $id
614 615
      *
615
-     * @return array|mixed
616
+     * @return integer
616 617
      */
617 618
     public function get($id)
618 619
     {
@@ -1182,7 +1183,7 @@  discard block
 block discarded – undo
1182 1183
      * @param int skill id
1183 1184
      * @param bool return a flat array or not
1184 1185
      * @param int depth of the skills
1185
-     * @return json
1186
+     * @return string
1186 1187
      */
1187 1188
     public function get_skills_tree_json(
1188 1189
         $user_id = null,
@@ -1677,8 +1678,8 @@  discard block
 block discarded – undo
1677 1678
     }
1678 1679
 
1679 1680
     /**
1680
-     * @param $currentUserId
1681
-     * @param $studentId
1681
+     * @param integer $currentUserId
1682
+     * @param integer $studentId
1682 1683
      * @return bool
1683 1684
      */
1684 1685
     public static function hasAccessToUserSkill($currentUserId, $studentId)
Please login to merge, or discard this patch.
main/survey/survey.lib.php 1 patch
Doc Comments   +10 added lines, -9 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * Deletes all survey invitations of a user
51 51
      * @param int $user_id
52 52
      *
53
-     * @return boolean
53
+     * @return false|null
54 54
      * @assert ('') === false
55 55
      */
56 56
     public static function delete_all_survey_invitations_by_user($user_id)
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      * Retrieves all the survey information
108 108
      *
109 109
      * @param integer $survey_id the id of the survey
110
-     * @param boolean $shared this parameter determines if
110
+     * @param integer $shared this parameter determines if
111 111
      * we have to get the information of a survey from the central (shared) database or from the
112 112
      *          course database
113 113
      * @param string course code optional
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
      * This function deletes a survey (and also all the question in that survey
578 578
      *
579 579
      * @param int $survey_id id of the survey that has to be deleted
580
-     * @return true
580
+     * @return boolean
581 581
      *
582 582
      * @author Patrick Cool <[email protected]>, Ghent University
583 583
      * @version January 2007
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
      *
766 766
      * @param int $survey_id id of the survey that has to be duplicated
767 767
      * @param int $courseId id of the course which survey has to be duplicated
768
-     * @return true
768
+     * @return boolean
769 769
      *
770 770
      * @author Eric Marguin <[email protected]>, Elixir Interactive
771 771
      * @version October 2007
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
     /**
806 806
      * This function recalculates the number of people who have taken the survey (=filled at least one question)
807 807
      *
808
-     * @param int $survey_id the id of the survey somebody
808
+     * @param int $survey_data the id of the survey somebody
809 809
      * @return true
810 810
      *
811 811
      * @author Patrick Cool <[email protected]>, Ghent University
@@ -1385,6 +1385,7 @@  discard block
 block discarded – undo
1385 1385
      * This function deletes a shared survey question from the main database and all its options
1386 1386
      *
1387 1387
      * @param int $question_id the id of the question
1388
+     * @param integer $survey_id
1388 1389
      *
1389 1390
      * @todo delete all the options of this question
1390 1391
      *
@@ -1510,8 +1511,8 @@  discard block
 block discarded – undo
1510 1511
      * This function deletes all the options of the questions of a given survey
1511 1512
      * This function is normally only called when a survey is deleted
1512 1513
      *
1513
-     * @param $survey_id the id of the survey that has to be deleted
1514
-     * @return true
1514
+     * @param integer $survey_id the id of the survey that has to be deleted
1515
+     * @return boolean
1515 1516
      *
1516 1517
      * @author Patrick Cool <[email protected]>, Ghent University
1517 1518
      * @version January 2007
@@ -1581,8 +1582,8 @@  discard block
 block discarded – undo
1581 1582
      * This function deletes all the answers anyone has given on this survey
1582 1583
      * This function is normally only called when a survey is deleted
1583 1584
      *
1584
-     * @param $survey_id the id of the survey that has to be deleted
1585
-     * @return true
1585
+     * @param integer $survey_id the id of the survey that has to be deleted
1586
+     * @return boolean
1586 1587
      *
1587 1588
      * @todo write the function
1588 1589
      *
Please login to merge, or discard this patch.
main/inc/lib/exercise.lib.php 1 patch
Doc Comments   +11 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1454,6 +1454,7 @@  discard block
 block discarded – undo
1454 1454
 
1455 1455
     /**
1456 1456
      * Generates the time control key
1457
+     * @param integer $exercise_id
1457 1458
      */
1458 1459
     public static function get_time_control_key(
1459 1460
         $exercise_id,
@@ -1541,7 +1542,7 @@  discard block
 block discarded – undo
1541 1542
      * @param int $in_direction
1542 1543
      * @param string $in_hotpot_path
1543 1544
      * @param bool $in_get_count
1544
-     * @param null $where_condition
1545
+     * @param string $where_condition
1545 1546
      * @return array|int
1546 1547
      */
1547 1548
     public static function get_exam_results_hotpotatoes_data(
@@ -2443,7 +2444,7 @@  discard block
 block discarded – undo
2443 2444
      * @param string $name
2444 2445
      * @param $weight
2445 2446
      * @param $selected
2446
-     * @return bool
2447
+     * @return false|null
2447 2448
      */
2448 2449
     public static function addScoreModelInput(
2449 2450
         FormValidator & $form,
@@ -2569,7 +2570,7 @@  discard block
 block discarded – undo
2569 2570
     /**
2570 2571
      * Return true if pass_pourcentage activated (we use the pass pourcentage feature
2571 2572
      * return false if pass_percentage = 0 (we don't use the pass pourcentage feature
2572
-     * @param $value
2573
+     * @param string $value
2573 2574
      * @return boolean
2574 2575
      * In this version, pass_percentage and show_success_message are disabled if
2575 2576
      * pass_percentage is set to 0
@@ -2582,7 +2583,7 @@  discard block
 block discarded – undo
2582 2583
     /**
2583 2584
      * Converts a numeric value in a percentage example 0.66666 to 66.67 %
2584 2585
      * @param $value
2585
-     * @return float Converted number
2586
+     * @return string Converted number
2586 2587
      */
2587 2588
     public static function convert_to_percentage($value)
2588 2589
     {
@@ -2598,7 +2599,7 @@  discard block
 block discarded – undo
2598 2599
      * @param   float $score
2599 2600
      * @param   float $weight
2600 2601
      * @deprecated seem not to be used
2601
-     * @return  float   the score rounded converted to the new range
2602
+     * @return  string|null   the score rounded converted to the new range
2602 2603
      */
2603 2604
     public static function convert_score($score, $weight)
2604 2605
     {
@@ -3152,6 +3153,7 @@  discard block
 block discarded – undo
3152 3153
      * @param    int        exercise id
3153 3154
      * @param    int $courseId
3154 3155
      * @param    int        session id
3156
+     * @param integer $user_count
3155 3157
      * @return    float    Best average score
3156 3158
      */
3157 3159
     public static function get_best_average_score_by_exercise(
@@ -3579,8 +3581,9 @@  discard block
 block discarded – undo
3579 3581
     }
3580 3582
 
3581 3583
     /**
3582
-     * @param array $answer
3584
+     * @param string|null $answer
3583 3585
      * @param string $user_answer
3586
+     * @param string|null $current_answer
3584 3587
      * @return array
3585 3588
      */
3586 3589
     public static function check_fill_in_blanks($answer, $user_answer, $current_answer)
@@ -4275,7 +4278,7 @@  discard block
 block discarded – undo
4275 4278
 
4276 4279
     /**
4277 4280
      * @param int $countLetter
4278
-     * @return mixed
4281
+     * @return string
4279 4282
      */
4280 4283
     public static function detectInputAppropriateClass($countLetter)
4281 4284
     {
@@ -4401,7 +4404,7 @@  discard block
 block discarded – undo
4401 4404
     }
4402 4405
 
4403 4406
     /**
4404
-     * @return array
4407
+     * @return string[]
4405 4408
      */
4406 4409
     public static function getNotificationSettings()
4407 4410
     {
Please login to merge, or discard this patch.
main/forum/forumfunction.inc.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
  * called but this make the code there cleaner.
92 92
  * @param int $lp_id Learning path Id
93 93
  *
94
- * @return void
94
+ * @return null|string
95 95
  * @author Patrick Cool <[email protected]>, Ghent University
96 96
  * @author Juan Carlos Raña Trabado (return to lp_id)
97 97
  * @version may 2011, Chamilo 1.8.8
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
  *
223 223
  * @param array $inputvalues
224 224
  * @param int $lp_id
225
- * @return void HTML
225
+ * @return null|string HTML
226 226
  *
227 227
  * @author Patrick Cool <[email protected]>, Ghent University
228 228
  * @author Juan Carlos Raña Trabado (return to lp_id)
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
  * (storing was done twice)
464 464
  *
465 465
  * @param array
466
- * @return void HTML
466
+ * @return null|string HTML
467 467
  *
468 468
  * @author Patrick Cool <[email protected]>, Ghent University
469 469
  * @version february 2006, dokeos 1.8
@@ -2437,7 +2437,7 @@  discard block
 block discarded – undo
2437 2437
  * This function update a thread
2438 2438
  *
2439 2439
  * @param array $values - The form Values
2440
- * @return void HTML
2440
+ * @return string|null HTML
2441 2441
  *
2442 2442
  */
2443 2443
 function updateThread($values)
@@ -3103,7 +3103,7 @@  discard block
 block discarded – undo
3103 3103
  * @param integer $thread_qualify
3104 3104
  * @param integer $qualify_time
3105 3105
  * @param integer $session_id
3106
- * @return array optional
3106
+ * @return string|null optional
3107 3107
  * @author Isaac Flores <[email protected]>, U.N.A.S University
3108 3108
  * @version October 2008, dokeos  1.8.6
3109 3109
  */
@@ -3848,7 +3848,7 @@  discard block
 block discarded – undo
3848 3848
 
3849 3849
 /**
3850 3850
  * This function is used to find all the information about what's new in the forum tool
3851
- * @return void
3851
+ * @return false|null
3852 3852
  *
3853 3853
  * @author Patrick Cool <[email protected]>, Ghent University
3854 3854
  * @version february 2006, dokeos 1.8
Please login to merge, or discard this patch.
main/lp/lp_final_item.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
  * @param int $sessionId
201 201
  * @param string $downloadCertificateLink
202 202
  * @param string $badgeLink
203
- * @return mixed|string
203
+ * @return string
204 204
  */
205 205
 function generateLPFinalItemTemplate(
206 206
     $lpItemId,
Please login to merge, or discard this patch.
main/gradebook/lib/be/category.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
     }
285 285
 
286 286
     /**
287
-     * @return null
287
+     * @return null|integer
288 288
      */
289 289
     public function getMinimumToValidate()
290 290
     {
Please login to merge, or discard this patch.
main/inc/lib/grade_model.lib.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -258,10 +258,10 @@
 block discarded – undo
258 258
     }
259 259
 
260 260
     /**
261
-     * @param $form
261
+     * @param CatForm $form
262 262
      * @param string $name
263
-     * @param null $default_value
264
-     * @return bool
263
+     * @param null|integer $default_value
264
+     * @return false|null
265 265
      */
266 266
     public function fill_grade_model_select_in_form(&$form, $name = 'gradebook_model_id', $default_value = null)
267 267
     {
Please login to merge, or discard this patch.
main/survey/surveyUtil.class.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * This function checks the parameters that are used in this page
139 139
      *
140
-     * @return string $people_filled The header, an error and the footer if any parameter fails, else it returns true
140
+     * @return null|boolean $people_filled The header, an error and the footer if any parameter fails, else it returns true
141 141
      * @author Patrick Cool <[email protected]>, Ghent University
142 142
      * @version February 2007
143 143
      */
@@ -729,6 +729,7 @@  discard block
 block discarded – undo
729 729
      * Display score data about a survey question
730 730
      * @param    array    Question info
731 731
      * @param    integer    The offset of results shown
732
+     * @param integer $offset
732 733
      * @return   void    (direct output)
733 734
      */
734 735
     public static function display_question_report_score($survey_data, $question, $offset)
@@ -1431,7 +1432,7 @@  discard block
 block discarded – undo
1431 1432
      * Quite similar to display_complete_report(), returns an HTML string
1432 1433
      * that can be used in a csv file
1433 1434
      * @todo consider merging this function with display_complete_report
1434
-     * @return string The contents of a csv file
1435
+     * @return false|null The contents of a csv file
1435 1436
      * @author Patrick Cool <[email protected]>, Ghent University
1436 1437
      * @version February 2007
1437 1438
      */
@@ -2302,7 +2303,7 @@  discard block
 block discarded – undo
2302 2303
 
2303 2304
     /**
2304 2305
      * @param $params
2305
-     * @return bool|int
2306
+     * @return false|string
2306 2307
      */
2307 2308
     public static function save_invitation($params)
2308 2309
     {
@@ -2358,6 +2359,7 @@  discard block
 block discarded – undo
2358 2359
      *
2359 2360
      * @param int invitedUser - the userId (course user) or emailaddress of additional user
2360 2361
      * $param string $invitation_code - the unique invitation code for the URL
2362
+     * @param string|null $invitation_text
2361 2363
      * @return void
2362 2364
      */
2363 2365
     public static function send_invitation_mail(
Please login to merge, or discard this patch.