Completed
Push — master ( 8be9e6...40c911 )
by Angel Fernando Quiroz
76:02 queued 40:43
created
main/inc/lib/AnnouncementManager.php 1 patch
Doc Comments   +11 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     }
21 21
 
22 22
     /**
23
-     * @return array
23
+     * @return string[]
24 24
      */
25 25
     public static function get_tags()
26 26
     {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param string    $course_code
43 43
      * @param int       $session_id
44 44
      *
45
-     * @return mixed
45
+     * @return string
46 46
      */
47 47
     public static function parse_content($userId, $content, $course_code, $session_id = 0)
48 48
     {
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      * @param int $courseId
231 231
      * @param int $userId
232 232
      *
233
-     * @return array
233
+     * @return integer
234 234
      */
235 235
     public static function getAnnouncementInfoById($announcementId, $courseId, $userId)
236 236
     {
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
      * @param bool $sendToUsersInSession
451 451
      * @param int $authorId
452 452
      *
453
-     * @return int      false on failure, ID of the announcement on success
453
+     * @return false|string      false on failure, ID of the announcement on success
454 454
      */
455 455
     public static function add_announcement(
456 456
         $courseInfo,
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
      * @param string $file_comment
586 586
      * @param bool $sendToUsersInSession
587 587
      *
588
-     * @return bool|int
588
+     * @return false|string
589 589
      */
590 590
     public static function add_group_announcement(
591 591
         $title,
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
 
827 827
     /**
828 828
      * @param int $insert_id
829
-     * @return bool
829
+     * @return false|null
830 830
      */
831 831
     public static function update_mail_sent($insert_id)
832 832
     {
@@ -846,6 +846,7 @@  discard block
 block discarded – undo
846 846
      * Gets all announcements from a user by course
847 847
      * @param	string course db
848 848
      * @param	int user id
849
+     * @param integer $user_id
849 850
      * @return	array html with the content and count of announcements or false otherwise
850 851
      */
851 852
     public static function get_all_annoucement_by_user_course($course_code, $user_id)
@@ -1099,6 +1100,7 @@  discard block
 block discarded – undo
1099 1100
      * has been sent to
1100 1101
      * @param    string  The tool (announcement, agenda, ...)
1101 1102
      * @param    int     ID of the element of the corresponding type
1103
+     * @param string $tool
1102 1104
      * @return   array   Array of users and groups to whom the element has been sent
1103 1105
      */
1104 1106
     public static function sent_to($tool, $id)
@@ -1170,6 +1172,7 @@  discard block
 block discarded – undo
1170 1172
      * @param int  announcement id
1171 1173
      * @param string file comment
1172 1174
      * @param array  uploaded file $_FILES
1175
+     * @param string|null $file_comment
1173 1176
      * @return int  -1 if failed, 0 if unknown (should not happen), 1 if success
1174 1177
      */
1175 1178
     public static function add_announcement_attachment_file($announcement_id, $file_comment, $file)
@@ -1228,6 +1231,8 @@  discard block
 block discarded – undo
1228 1231
      * @param int attach id
1229 1232
      * @param array uploaded file $_FILES
1230 1233
      * @param string file comment
1234
+     * @param integer $id_attach
1235
+     * @param string $file_comment
1231 1236
      * @return int
1232 1237
      */
1233 1238
     public static function edit_announcement_attachment_file($id_attach, $file, $file_comment)
Please login to merge, or discard this patch.
main/inc/lib/career.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     }
87 87
 
88 88
     /**
89
-     * @return array
89
+     * @return string[]
90 90
      */
91 91
     public function get_status_list()
92 92
     {
Please login to merge, or discard this patch.
main/inc/lib/diagnoser.lib.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -435,6 +435,12 @@
 block discarded – undo
435 435
 
436 436
     /**
437 437
      * Additional functions needed for fast integration
438
+     * @param integer $status
439
+     * @param string $section
440
+     * @param string $title
441
+     * @param string $url
442
+     * @param string|null $formatter
443
+     * @param string $comment
438 444
      */
439 445
     public function build_setting(
440 446
         $status,
Please login to merge, or discard this patch.
main/inc/lib/event_email_template.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 	}
60 60
 
61 61
     /**
62
-     * @return array
62
+     * @return string[]
63 63
      */
64 64
     public function get_status_list()
65 65
     {
Please login to merge, or discard this patch.
main/inc/lib/events_dispatcher.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * @param string $event_name
15 15
      * @param array $event_data
16
-     * @return bool
16
+     * @return false|null
17 17
      */
18 18
     public static function events($event_name, $event_data = array())
19 19
     {
Please login to merge, or discard this patch.
main/inc/lib/exercise.lib.php 1 patch
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1276,6 +1276,7 @@  discard block
 block discarded – undo
1276 1276
 
1277 1277
     /**
1278 1278
      * Validates the time control key
1279
+     * @param integer $exercise_id
1279 1280
      */
1280 1281
     public static function exercise_time_control_is_valid(
1281 1282
         $exercise_id,
@@ -1412,7 +1413,7 @@  discard block
 block discarded – undo
1412 1413
      * @param int $in_direction
1413 1414
      * @param string $in_hotpot_path
1414 1415
      * @param bool $in_get_count
1415
-     * @param null $where_condition
1416
+     * @param string $where_condition
1416 1417
      * @return array|int
1417 1418
      */
1418 1419
     public static function get_exam_results_hotpotatoes_data(
@@ -2215,7 +2216,7 @@  discard block
 block discarded – undo
2215 2216
     /**
2216 2217
      * Return true if pass_pourcentage activated (we use the pass pourcentage feature
2217 2218
      * return false if pass_percentage = 0 (we don't use the pass pourcentage feature
2218
-     * @param $in_pass_pourcentage
2219
+     * @param string $in_pass_pourcentage
2219 2220
      * @return boolean
2220 2221
      * In this version, pass_percentage and show_success_message are disabled if
2221 2222
      * pass_percentage is set to 0
@@ -2228,7 +2229,7 @@  discard block
 block discarded – undo
2228 2229
     /**
2229 2230
      * Converts a numeric value in a percentage example 0.66666 to 66.67 %
2230 2231
      * @param $value
2231
-     * @return float Converted number
2232
+     * @return string Converted number
2232 2233
      */
2233 2234
     public static function convert_to_percentage($value)
2234 2235
     {
@@ -2244,7 +2245,7 @@  discard block
 block discarded – undo
2244 2245
      * @param   float $score
2245 2246
      * @param   float $weight
2246 2247
      * @deprecated seem not to be used
2247
-     * @return  float   the score rounded converted to the new range
2248
+     * @return  string|null   the score rounded converted to the new range
2248 2249
      */
2249 2250
     public static function convert_score($score, $weight)
2250 2251
     {
@@ -2801,6 +2802,7 @@  discard block
 block discarded – undo
2801 2802
      * @param    int        exercise id
2802 2803
      * @param    int $courseId
2803 2804
      * @param    int        session id
2805
+     * @param integer $user_count
2804 2806
      * @return    float    Best average score
2805 2807
      */
2806 2808
     public static function get_best_average_score_by_exercise(
@@ -3230,8 +3232,9 @@  discard block
 block discarded – undo
3230 3232
     }
3231 3233
 
3232 3234
     /**
3233
-     * @param array $answer
3235
+     * @param string|null $answer
3234 3236
      * @param string $user_answer
3237
+     * @param string|null $current_answer
3235 3238
      * @return array
3236 3239
      */
3237 3240
     public static function check_fill_in_blanks($answer, $user_answer, $current_answer)
@@ -3858,7 +3861,7 @@  discard block
 block discarded – undo
3858 3861
 
3859 3862
     /**
3860 3863
      * @param int $countLetter
3861
-     * @return mixed
3864
+     * @return string
3862 3865
      */
3863 3866
     public static function detectInputAppropriateClass($countLetter)
3864 3867
     {
Please login to merge, or discard this patch.
main/inc/lib/extra_field_value.lib.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * This function is used with $extraField->addElements()
76 76
      * @param array $params array for the insertion into the *_field_values table
77 77
      * @param bool $showQuery
78
-     * @return mixed false on empty params, void otherwise
78
+     * @return false|null false on empty params, void otherwise
79 79
      * @assert (array()) === false
80 80
      */
81 81
     public function saveFieldValues($params, $showQuery = false)
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
      * @param int $item_id Item ID (It could be a session_id, course_id or user_id)
532 532
      * @param int $field_id Field ID (the ID from the *_field table)
533 533
      * @param bool $transform Whether to transform the result to a human readable strings
534
-     * @return mixed A structured array with the field_id and field_value, or false on error
534
+     * @return string A structured array with the field_id and field_value, or false on error
535 535
      * @assert (-1,-1) === false
536 536
      */
537 537
     public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
      * @param int $item_id Item ID from the original table
625 625
      * @param string $field_variable The name of the field we are looking for
626 626
      * @param bool $transform
627
-     * @param bool $allVisibility
627
+     * @param bool $visibility
628 628
      *
629 629
      * @return mixed Array of results, or false on error or not found
630 630
      * @assert (-1,'') === false
Please login to merge, or discard this patch.
main/inc/lib/fileManage.lib.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
  * Deletes a file or a directory
40 40
  *
41 41
  * @author - Hugues Peeters
42
- * @param  $file (String) - the path of file or directory to delete
43
- * @return boolean - true if the delete succeed, false otherwise.
42
+ * @param  string $file (String) - the path of file or directory to delete
43
+ * @return boolean|null - true if the delete succeed, false otherwise.
44 44
  * @see    - delete() uses check_name_exist() and removeDir() functions
45 45
  */
46 46
 function my_delete($file)
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
  * @author Hugues Peeters <[email protected]>
128 128
  * @param  string $file_path complete path of the file or the directory
129 129
  * @param  string $new_file_name new name for the file or the directory
130
- * @return boolean true if succeed, false otherwise
130
+ * @return string|false true if succeed, false otherwise
131 131
  * @see rename() uses the check_name_exist() and php2phps() functions
132 132
  */
133 133
 function my_rename($file_path, $new_file_name) {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
  * @param  string $target the path of the new area
175 175
  * @param  bool $forceMove Whether to force a move or to make a copy (safer but slower) and then delete the original
176 176
  * @param	bool $moveContent In some cases (including migrations), we need to move the *content* and not the folder itself
177
- * @return bool true if the move succeed, false otherwise.
177
+ * @return boolean|null true if the move succeed, false otherwise.
178 178
  * @see move() uses check_name_exist() and copyDirTo() functions
179 179
  */
180 180
 function move($source, $target, $forceMove = true, $moveContent = false)
Please login to merge, or discard this patch.
main/inc/lib/fileUpload.lib.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
  * Returns the name without extension, used for the title
54 54
  *
55 55
  * @param string $name
56
- * @return name without the extension
56
+ * @return string without the extension
57 57
  */
58 58
 function get_document_title($name)
59 59
 {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
  * This function checks if the upload succeeded
68 68
  *
69 69
  * @param array $uploaded_file ($_FILES)
70
- * @return true if upload succeeded
70
+ * @return boolean if upload succeeded
71 71
  */
72 72
 function process_uploaded_file($uploaded_file, $show_output = true)
73 73
 {
@@ -1032,7 +1032,7 @@  discard block
 block discarded – undo
1032 1032
  * @param array  $courseInfo
1033 1033
  * @param array  $userInfo
1034 1034
  * @param array  $uploaded_file - follows the $_FILES Structure
1035
- * @param string $upload_path   - destination of the upload.
1035
+ * @param string $uploadPath   - destination of the upload.
1036 1036
  *                               This path is to append to $base_work_dir
1037 1037
  * @param string $base_work_dir  - base working directory of the module
1038 1038
  * @param int    $maxFilledSpace  - amount of bytes to not exceed in the base
@@ -1219,7 +1219,7 @@  discard block
 block discarded – undo
1219 1219
  * @param int $session_id Session ID, if any
1220 1220
  * @param int $userId creator id
1221 1221
  *
1222
- * @return int id if inserted document
1222
+ * @return string|false id if inserted document
1223 1223
  */
1224 1224
 function add_document(
1225 1225
     $_course,
@@ -1360,7 +1360,7 @@  discard block
 block discarded – undo
1360 1360
  *
1361 1361
  * @author	Olivier Cauberghe <[email protected]>
1362 1362
  * @param	path+filename eg: /main/document/document.php
1363
- * @return	The directory depth
1363
+ * @return	integer directory depth
1364 1364
  */
1365 1365
 function get_levels($filename) {
1366 1366
     $levels = explode('/', $filename);
@@ -1377,6 +1377,8 @@  discard block
 block discarded – undo
1377 1377
  * @author	Olivier Cauberghe <[email protected]>
1378 1378
  * @param	path,filename
1379 1379
  * action:	Adds an entry to the document table with the default settings.
1380
+ * @param string $upload_path
1381
+ * @param string $filename
1380 1382
  */
1381 1383
 function set_default_settings($upload_path, $filename, $filetype = 'file')
1382 1384
 {
@@ -1838,7 +1840,6 @@  discard block
 block discarded – undo
1838 1840
  * @param int $groupId group.id
1839 1841
  * @param bool $output
1840 1842
  * @param array $parent
1841
- * @param string $uploadPath
1842 1843
  *
1843 1844
  */
1844 1845
 function add_all_documents_in_folder_to_database(
Please login to merge, or discard this patch.