Completed
Push — 1.11.x ( 120723...3bdcfd )
by José
101:01 queued 52:25
created
main/inc/lib/exercise_show_functions.lib.php 1 patch
Doc Comments   +36 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@  discard block
 block discarded – undo
25 25
 	 * @param int $questionId      Question ID
26 26
      * @param int $resultsDisabled
27 27
      * @param string $originalStudentAnswer
28
+     * @param boolean $showTotalScoreAndUserChoices
28 29
      *
29 30
 	 * @return void
30 31
 	 */
@@ -71,6 +72,11 @@  discard block
 block discarded – undo
71 72
      * @param string    Answer text
72 73
      * @param int       Exercise ID
73 74
      * @param int       Question ID
75
+     * @param integer $feedback_type
76
+     * @param string $answer
77
+     * @param integer $id
78
+     * @param integer $questionId
79
+     * @param boolean|string $showTotalScoreAndUserChoices
74 80
      * @return void
75 81
      */
76 82
     public static function display_calculated_answer(
@@ -110,6 +116,9 @@  discard block
 block discarded – undo
110 116
 	 * @param string    Answer text
111 117
 	 * @param int       Exercise ID
112 118
 	 * @param int       Question ID
119
+	 * @param integer $feedback_type
120
+	 * @param integer $exe_id
121
+	 * @param integer $questionId
113 122
 	 * @return void
114 123
 	 */
115 124
 	public static function display_free_answer(
@@ -139,11 +148,10 @@  discard block
 block discarded – undo
139 148
 	}
140 149
 
141 150
     /**
142
-    * @param $feedback_type
151
+    * @param integer $feedback_type
143 152
     * @param $answer
144
-    * @param $id
145
-    * @param $questionId
146
-    * @param null $nano
153
+    * @param integer $id
154
+    * @param integer $questionId
147 155
     * @param int $results_disabled
148 156
      */
149 157
 	public static function display_oral_expression_answer($feedback_type, $answer, $id, $questionId, $fileUrl = null, $results_disabled = 0)
@@ -193,6 +201,7 @@  discard block
 block discarded – undo
193 201
      * @param string $answerComment
194 202
      * @param int $resultsDisabled
195 203
      * @param int $orderColor
204
+     * @param boolean $showTotalScoreAndUserChoices
196 205
      */
197 206
 	public static function display_hotspot_answer(
198 207
         $feedback_type,
@@ -277,6 +286,13 @@  discard block
 block discarded – undo
277 286
 	 * @param integer Exercise ID
278 287
 	 * @param integer Question ID
279 288
 	 * @param boolean Whether to show the answer comment or not
289
+	 * @param integer $answerType
290
+	 * @param string $answer
291
+	 * @param string $answerComment
292
+	 * @param integer $answerCorrect
293
+	 * @param integer $id
294
+	 * @param integer $questionId
295
+	 * @param boolean $showTotalScoreAndUserChoices
280 296
 	 * @return void
281 297
 	 */
282 298
 	public static function display_unique_or_multiple_answer(
@@ -373,6 +389,14 @@  discard block
 block discarded – undo
373 389
      * @param integer Exercise ID
374 390
      * @param integer Question ID
375 391
      * @param boolean Whether to show the answer comment or not
392
+     * @param integer $feedback_type
393
+     * @param integer $answerType
394
+     * @param string $answer
395
+     * @param string $answerComment
396
+     * @param integer $answerCorrect
397
+     * @param integer $id
398
+     * @param integer $questionId
399
+     * @param boolean $showTotalScoreAndUserChoices
376 400
      * @return void
377 401
      */
378 402
     public static function display_multiple_answer_true_false(
@@ -477,6 +501,14 @@  discard block
 block discarded – undo
477 501
      * @param integer Exercise ID
478 502
      * @param integer Question ID
479 503
      * @param boolean Whether to show the answer comment or not
504
+     * @param integer $feedback_type
505
+     * @param integer $answerType
506
+     * @param string $answer
507
+     * @param string $answerComment
508
+     * @param integer $answerCorrect
509
+     * @param integer $id
510
+     * @param integer $questionId
511
+     * @param boolean $showTotalScoreAndUserChoices
480 512
      * @return void
481 513
      */
482 514
     public static function display_multiple_answer_combination_true_false(
Please login to merge, or discard this patch.
main/inc/lib/plugin.lib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     * @param string $template
257 257
     * @param bool   $forced
258 258
     *
259
-    * @return null|string
259
+    * @return string
260 260
     */
261 261
     public function load_region($region, $template, $forced = false)
262 262
     {
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
 
629 629
     /**
630 630
      * Get first SMS plugin name
631
-     * @return string|boolean
631
+     * @return string|false
632 632
      */
633 633
     public function getSMSPluginName()
634 634
     {
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/select.php 1 patch
Doc Comments   +7 added lines, -10 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * @param     mixed     $param4     (optional) See function detail
122 122
      * @since     1.1
123 123
      * @access    public
124
-     * @return    PEAR_Error on error or true
124
+     * @return    boolean|null on error or true
125 125
      * @throws    PEAR_Error
126 126
      */
127 127
     private function load(&$options, $param1=null, $param2=null, $param3=null, $param4=null)
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      * @param     mixed    $values  (optional) Array or comma delimited string of selected values
141 141
      * @since     1.0
142 142
      * @access    public
143
-     * @return    PEAR_Error on error or true
143
+     * @return    boolean on error or true
144 144
      * @throws    PEAR_Error
145 145
      */
146 146
     private function loadArray($arr, $values = null)
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      *
208 208
      * @since     1.0
209 209
      * @access    public
210
-     * @return    array of selected values
210
+     * @return    string of selected values
211 211
      */
212 212
     function getSelected()
213 213
     {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     /**
271 271
      * Sets the value of the form element
272 272
      *
273
-     * @param     mixed    $values  Array or comma delimited string of selected values
273
+     * @param     mixed    $value  Array or comma delimited string of selected values
274 274
      * @since     1.0
275 275
      * @access    public
276 276
      * @return    void
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      *
289 289
      * @since     1.0
290 290
      * @access    public
291
-     * @return    array of selected values
291
+     * @return    string of selected values
292 292
      */
293 293
     function getValue()
294 294
     {
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
      *
320 320
      * @since     1.0
321 321
      * @access    public
322
-     * @return    int
322
+     * @return    string|null
323 323
      */
324 324
     function getSize()
325 325
     {
@@ -419,12 +419,9 @@  discard block
 block discarded – undo
419 419
         /**
420 420
      * Adds a new OPTION to the SELECT
421 421
      *
422
-     * @param     string    $text       Display text for the OPTION
423
-     * @param     string    $value      Value for the OPTION
424
-     * @param     mixed     $attributes Either a typical HTML attribute string
425
-     *                                  or an associative array
426 422
      * @since     1.0
427 423
      * @access    public
424
+     * @param string $label
428 425
      * @return    void
429 426
      */
430 427
     function addOptGroup($options, $label)
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Filesystem/Data.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     /**
118 118
      * Create folders
119
-     * @param array            $folderList
119
+     * @param string[]            $folderList
120 120
      * @param OutputInterface  $output
121 121
      * @param string           $folderPermissions
122 122
      */
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      * http://chamilo/courses/ABC/document/file.jpg
201 201
      * @param string $content
202 202
      *
203
-     * @return string
203
+     * @return \simplehtmldom_1_5\simple_html_dom
204 204
      */
205 205
     public function convertRelativeToAbsoluteUrl($content)
206 206
     {
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/SkillRelUser.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 
198 198
     /**
199 199
      * Get user
200
-     * @return \User
200
+     * @return User
201 201
      */
202 202
     public function getUser()
203 203
     {
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
 
513 513
     /**
514 514
      * Calculate the average value from the feedback comments
515
-     * @return int
515
+     * @return string
516 516
      */
517 517
     public function getAverage()
518 518
     {
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/SkillRelUserComment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
 
115 115
     /**
116 116
      * Get feedbackDateTime
117
-     * @return type
117
+     * @return \DateTime
118 118
      */
119 119
     public function getFeedbackDateTime()
120 120
     {
Please login to merge, or discard this patch.
main/survey/survey.lib.php 1 patch
Doc Comments   +17 added lines, -14 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * Deletes all survey invitations of a user
48 48
      * @param int $user_id
49 49
      *
50
-     * @return boolean
50
+     * @return false|null
51 51
      * @assert ('') === false
52 52
      */
53 53
     public static function delete_all_survey_invitations_by_user($user_id)
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * Retrieves all the survey information
105 105
      *
106 106
      * @param integer $survey_id the id of the survey
107
-     * @param boolean $shared this parameter determines if
107
+     * @param integer $shared this parameter determines if
108 108
      * we have to get the information of a survey from the central (shared) database or from the
109 109
      * 		  course database
110 110
      * @param string course code optional
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
      * This function deletes a survey (and also all the question in that survey
572 572
      *
573 573
      * @param int $survey_id id of the survey that has to be deleted
574
-     * @return true
574
+     * @return boolean
575 575
      *
576 576
      * @author Patrick Cool <[email protected]>, Ghent University
577 577
      * @version January 2007
@@ -756,7 +756,7 @@  discard block
 block discarded – undo
756 756
      *
757 757
      * @param int $survey_id id of the survey that has to be duplicated
758 758
      * @param int $courseId id of the course which survey has to be duplicated
759
-     * @return true
759
+     * @return boolean
760 760
      *
761 761
      * @author Eric Marguin <[email protected]>, Elixir Interactive
762 762
      * @version October 2007
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
     /**
797 797
      * This function recalculates the number of people who have taken the survey (=filled at least one question)
798 798
      *
799
-     * @param int $survey_id the id of the survey somebody
799
+     * @param int $survey_data the id of the survey somebody
800 800
      * @return true
801 801
      *
802 802
      * @author Patrick Cool <[email protected]>, Ghent University
@@ -1367,7 +1367,7 @@  discard block
 block discarded – undo
1367 1367
      * This function deletes a shared survey question from the main database and all its options
1368 1368
      *
1369 1369
      * @param int $question_id the id of the question
1370
-     * @param int $shared
1370
+     * @param integer $survey_id
1371 1371
      *
1372 1372
      * @todo delete all the options of this question
1373 1373
      *
@@ -1494,8 +1494,8 @@  discard block
 block discarded – undo
1494 1494
      * This function deletes all the options of the questions of a given survey
1495 1495
      * This function is normally only called when a survey is deleted
1496 1496
      *
1497
-     * @param $survey_id the id of the survey that has to be deleted
1498
-     * @return true
1497
+     * @param integer $survey_id the id of the survey that has to be deleted
1498
+     * @return boolean
1499 1499
      *
1500 1500
      * @author Patrick Cool <[email protected]>, Ghent University
1501 1501
      * @version January 2007
@@ -1562,8 +1562,8 @@  discard block
 block discarded – undo
1562 1562
      * This function deletes all the answers anyone has given on this survey
1563 1563
      * This function is normally only called when a survey is deleted
1564 1564
      *
1565
-     * @param $survey_id the id of the survey that has to be deleted
1566
-     * @return true
1565
+     * @param integer $survey_id the id of the survey that has to be deleted
1566
+     * @return boolean
1567 1567
      *
1568 1568
      * @todo write the function
1569 1569
      *
@@ -1832,7 +1832,7 @@  discard block
 block discarded – undo
1832 1832
     /**
1833 1833
      * This function checks the parameters that are used in this page
1834 1834
      *
1835
-     * @return 	string 	The header, an error and the footer if any parameter fails, else it returns true
1835
+     * @return 	null|boolean 	The header, an error and the footer if any parameter fails, else it returns true
1836 1836
      * @author Patrick Cool <[email protected]>, Ghent University
1837 1837
      * @version February 2007
1838 1838
      */
@@ -2383,6 +2383,7 @@  discard block
 block discarded – undo
2383 2383
      * Display score data about a survey question
2384 2384
      * @param	array	Question info
2385 2385
      * @param	integer	The offset of results shown
2386
+     * @param integer $offset
2386 2387
      * @return	void 	(direct output)
2387 2388
      */
2388 2389
     public static function display_question_report_score($survey_data, $question, $offset)
@@ -3223,7 +3224,7 @@  discard block
 block discarded – undo
3223 3224
      * @param	array	User's answers
3224 3225
      * @param 	mixed	User ID or user details as string - Used as a string in the result string
3225 3226
      * @param	boolean	Whether to display user fields or not
3226
-     * @return	string	One line of the csv file
3227
+     * @return	string[]	One line of the csv file
3227 3228
      */
3228 3229
     public static function export_complete_report_row_xls(
3229 3230
         $survey_data,
@@ -3532,6 +3533,7 @@  discard block
 block discarded – undo
3532 3533
      *
3533 3534
      * @param	integer	Survey ID
3534 3535
      * @param	integer	Question ID
3536
+     * @param integer $survey_id
3535 3537
      * @return 	Array	Array containing all answers of all users, grouped by user
3536 3538
      *
3537 3539
      * @author Patrick Cool <[email protected]>, Ghent University
@@ -3826,7 +3828,7 @@  discard block
 block discarded – undo
3826 3828
 
3827 3829
     /**
3828 3830
      * @param $params
3829
-     * @return bool|int
3831
+     * @return false|string
3830 3832
      */
3831 3833
     public static function save_invitation($params)
3832 3834
     {
@@ -3880,6 +3882,7 @@  discard block
 block discarded – undo
3880 3882
      *
3881 3883
      * @param int invitedUser - the userId (course user) or emailaddress of additional user
3882 3884
      * $param string $invitation_code - the unique invitation code for the URL
3885
+     * @param string|null $invitation_text
3883 3886
      * @return	void
3884 3887
      */
3885 3888
     public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text)
@@ -4786,7 +4789,7 @@  discard block
 block discarded – undo
4786 4789
      * @author Isaac Flores Paz <[email protected]>
4787 4790
      * @param int $user_id - User ID
4788 4791
      * @param string $survey_code
4789
-     * @param int $user_id_answer - User in survey answer table (user id or anonymus)
4792
+     * @param int $user_answer - User in survey answer table (user id or anonymus)
4790 4793
      *
4791 4794
      * @return boolean
4792 4795
      */
Please login to merge, or discard this patch.
main/admin/class_import.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -11,6 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 /**
13 13
  * Validates imported data.
14
+ * @param Ddeboer\DataImport\Reader\CsvReader $classes
14 15
  */
15 16
 function validate_data($classes) {
16 17
     $errors = array();
@@ -35,6 +36,7 @@  discard block
 block discarded – undo
35 36
 
36 37
 /**
37 38
  * Save imported class data to database
39
+ * @param Ddeboer\DataImport\Reader\CsvReader $classes
38 40
  */
39 41
 function save_data($classes) {
40 42
     $number_of_added_classes = 0;
Please login to merge, or discard this patch.
main/admin/course_import.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
 /**
152 152
  * Read the CSV-file
153 153
  * @param string $file Path to the CSV-file
154
- * @return array All course-information read from the file
154
+ * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file
155 155
  */
156 156
 function parse_csv_data($file)
157 157
 {
Please login to merge, or discard this patch.