Completed
Push — 1.10.x ( 9e3317...fcbc7e )
by Angel Fernando Quiroz
31:56
created
plugin/bbb/lib/bbb.lib.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      * Save a participant in a meeting room
280 280
      * @param int $meetingId
281 281
      * @param int $participantId
282
-     * @return false|int The last inserted ID. Otherwise return false
282
+     * @return false|string The last inserted ID. Otherwise return false
283 283
      */
284 284
     public function saveParticipant($meetingId, $participantId)
285 285
     {
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     /**
353 353
      * Returns a meeting "join" URL
354 354
      * @param string The name of the meeting (usually the course code)
355
-     * @return mixed The URL to join the meeting, or false on error
355
+     * @return false|string The URL to join the meeting, or false on error
356 356
      * @todo implement moderator pass
357 357
      * @assert ('') === false
358 358
      * @assert ('abcdefghijklmnopqrstuvwxyzabcdefghijklmno') === false
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
      * Closes a meeting (usually when the user click on the close button from
661 661
      * the conferences listing.
662 662
      * @param string The internal ID of the meeting (id field for this meeting)
663
-     * @return void
663
+     * @return false|null
664 664
      * @assert (0) === false
665 665
      */
666 666
     public function endMeeting($id)
@@ -1077,7 +1077,7 @@  discard block
 block discarded – undo
1077 1077
      * @param array $recordInfo
1078 1078
      * @param bool $isGlobal
1079 1079
      * @param bool $isAdminReport
1080
-     * @return array
1080
+     * @return string[]
1081 1081
      */
1082 1082
     private function getActionLinks($meetingInfo, $recordInfo, $isGlobal = false, $isAdminReport = false)
1083 1083
     {
Please login to merge, or discard this patch.
main/newscorm/learnpath.class.php 1 patch
Doc Comments   +31 added lines, -26 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param	string	$course Course code
87 87
      * @param	integer	$lp_id
88 88
      * @param	integer	$user_id
89
-     * @return mixed True on success, false on error
89
+     * @return boolean True on success, false on error
90 90
      */
91 91
     public function __construct($course, $lp_id, $user_id)
92 92
     {
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      * @param int $max_time_allowed
488 488
      * @param int $userId
489 489
      *
490
-     * @return int
490
+     * @return false|string
491 491
      */
492 492
     public function add_item(
493 493
         $parent,
@@ -1038,7 +1038,7 @@  discard block
 block discarded – undo
1038 1038
      * @param	array $courseInfo
1039 1039
      * @param	integer	Learnpath ID
1040 1040
      * @param	string	Whether to delete data or keep it (default: 'keep', others: 'remove')
1041
-     * @return	boolean	True on success, false on failure (might change that to return number of elements deleted)
1041
+     * @return	false|null	True on success, false on failure (might change that to return number of elements deleted)
1042 1042
      */
1043 1043
     public function delete($courseInfo = null, $id = null, $delete = 'keep')
1044 1044
     {
@@ -1172,7 +1172,7 @@  discard block
 block discarded – undo
1172 1172
      * @param	integer	$id Elem ID (0 if first)
1173 1173
      * @param	integer	$remove Whether to remove the resource/data from the
1174 1174
      * system or leave it (default: 'keep', others 'remove')
1175
-     * @return	integer	Number of elements moved
1175
+     * @return	false|null	Number of elements moved
1176 1176
      * @todo implement resource removal
1177 1177
      */
1178 1178
     public function delete_item($id, $remove = 'keep')
@@ -1254,7 +1254,7 @@  discard block
 block discarded – undo
1254 1254
      * @param   array   $audio The array resulting of the $_FILES[mp3] element
1255 1255
      * @param   int     $max_time_allowed
1256 1256
      * @param   string  $url
1257
-     * @return  boolean True on success, false on error
1257
+     * @return  false|null True on success, false on error
1258 1258
      */
1259 1259
     public function edit_item(
1260 1260
         $id,
@@ -1785,7 +1785,7 @@  discard block
 block discarded – undo
1785 1785
 
1786 1786
     /**
1787 1787
      * Gets the first element URL.
1788
-     * @return	string	URL to load into the viewer
1788
+     * @return	false|null	URL to load into the viewer
1789 1789
      */
1790 1790
     public function first()
1791 1791
     {
@@ -2301,6 +2301,7 @@  discard block
 block discarded – undo
2301 2301
      * @param int $student_id
2302 2302
      * @param string Course code (optional)
2303 2303
      * @param int $sessionId
2304
+     * @param string $courseCode
2304 2305
      * @return	bool
2305 2306
      */
2306 2307
     public static function is_lp_visible_for_student(
@@ -2600,7 +2601,7 @@  discard block
 block discarded – undo
2600 2601
 
2601 2602
     /**
2602 2603
      * Gets the learnpath session id
2603
-     * @return	string	Learnpath theme
2604
+     * @return	integer	Learnpath theme
2604 2605
      */
2605 2606
     public function get_lp_session_id()
2606 2607
     {
@@ -2633,7 +2634,7 @@  discard block
 block discarded – undo
2633 2634
     /**
2634 2635
      * @param string $size
2635 2636
      * @param string $path_type
2636
-     * @return bool|string
2637
+     * @return string|false
2637 2638
      */
2638 2639
     public function get_preview_image_path($size = null, $path_type = 'web')
2639 2640
     {
@@ -2779,6 +2780,8 @@  discard block
 block discarded – undo
2779 2780
      * Returns the XML DOM document's node
2780 2781
      * @param	resource	Reference to a list of objects to search for the given ITEM_*
2781 2782
      * @param	string		The identifier to look for
2783
+     * @param DOMNodeList $children
2784
+     * @param string $id
2782 2785
      * @return	mixed		The reference to the element found with that identifier. False if not found
2783 2786
      */
2784 2787
     public function get_scorm_xml_node(& $children, $id)
@@ -3026,7 +3029,7 @@  discard block
 block discarded – undo
3026 3029
     /**
3027 3030
      * Generate and return the table of contents for this learnpath. The (flat) table returned can be
3028 3031
      * used by get_html_toc() to be ready to display
3029
-     * @return	array	TOC as a table with 4 elements per row: title, link, status and level
3032
+     * @return	boolean	TOC as a table with 4 elements per row: title, link, status and level
3030 3033
      */
3031 3034
     public function get_toc()
3032 3035
     {
@@ -3162,7 +3165,7 @@  discard block
 block discarded – undo
3162 3165
     }
3163 3166
 
3164 3167
     /**
3165
-     * @return array
3168
+     * @return string[]
3166 3169
      */
3167 3170
     public static function getChapterTypes()
3168 3171
     {
@@ -4065,7 +4068,7 @@  discard block
 block discarded – undo
4065 4068
      * Open a resource = initialise all local variables relative to this resource. Depending on the child
4066 4069
      * class, this might be redefined to allow several behaviours depending on the document type.
4067 4070
      * @param integer Resource ID
4068
-     * @return boolean True on success, false otherwise
4071
+     * @return boolean|null True on success, false otherwise
4069 4072
      */
4070 4073
     public function open($id)
4071 4074
     {
@@ -4194,7 +4197,7 @@  discard block
 block discarded – undo
4194 4197
      * Can be used as abstract
4195 4198
      * @param	integer	$lp_id Learnpath id
4196 4199
      * @param	string	$set_visibility New visibility (v/i - visible/invisible)
4197
-     * @return bool
4200
+     * @return false|null
4198 4201
      */
4199 4202
     public static function toggle_publish($lp_id, $set_visibility = 'v')
4200 4203
     {
@@ -4279,7 +4282,7 @@  discard block
 block discarded – undo
4279 4282
      * Make sure the results are saved with anoter method. This method should probably be
4280 4283
      * redefined in children classes.
4281 4284
      * To use a similar method  statically, use the create_new_attempt() method
4282
-     * @return string URL to load in the viewer
4285
+     * @return boolean URL to load in the viewer
4283 4286
      */
4284 4287
     public function restart()
4285 4288
     {
@@ -4357,6 +4360,7 @@  discard block
 block discarded – undo
4357 4360
      * Saves the given item
4358 4361
      * @param	integer	$item_id. Optional (will take from $_REQUEST if null)
4359 4362
      * @param	boolean	$from_outside Save from url params (true) or from current attributes (false). Optional. Defaults to true
4363
+     * @param integer $item_id
4360 4364
      * @return	boolean
4361 4365
      */
4362 4366
     public function save_item($item_id = null, $from_outside = true)
@@ -4854,7 +4858,7 @@  discard block
 block discarded – undo
4854 4858
 
4855 4859
     /**
4856 4860
      * Sets use_max_score
4857
-     * @param   string  $use_max_score Optional string giving the new location of this learnpath
4861
+     * @param   integer  $use_max_score Optional string giving the new location of this learnpath
4858 4862
      * @return  boolean True on success / False on error
4859 4863
      */
4860 4864
     public function set_use_max_score($use_max_score = 1)
@@ -5255,6 +5259,7 @@  discard block
 block discarded – undo
5255 5259
      * Register the attempt mode into db thanks to flags prevent_reinit and seriousgame_mode flags
5256 5260
      *
5257 5261
      * @param string 'seriousgame', 'single' or 'multiple'
5262
+     * @param string $mode
5258 5263
      * @return boolean
5259 5264
      * @author ndiechburg <[email protected]>
5260 5265
      **/
@@ -5297,7 +5302,7 @@  discard block
 block discarded – undo
5297 5302
     /**
5298 5303
      * Switch between multiple attempt, single attempt or serious_game mode (only for scorm)
5299 5304
      *
5300
-     * @return boolean
5305
+     * @return boolean|null
5301 5306
      * @author ndiechburg <[email protected]>
5302 5307
      **/
5303 5308
     public function switch_attempt_mode()
@@ -5488,7 +5493,6 @@  discard block
 block discarded – undo
5488 5493
     /**
5489 5494
      * Function that creates a html list of learning path items so that we can add audio files to them
5490 5495
      * @author Kevin Van Den Haute
5491
-     * @param int $lp_id
5492 5496
      * @return string
5493 5497
      */
5494 5498
     public function overview()
@@ -5860,7 +5864,7 @@  discard block
 block discarded – undo
5860 5864
     /**
5861 5865
      * This function builds the action menu
5862 5866
      * @param bool $returnContent
5863
-     * @return void
5867
+     * @return string|null
5864 5868
      */
5865 5869
     public function build_action_menu($returnContent = false)
5866 5870
     {
@@ -6379,7 +6383,7 @@  discard block
 block discarded – undo
6379 6383
     /**
6380 6384
      * Function that displays a list with al the resources that
6381 6385
      * could be added to the learning path
6382
-     * @return string
6386
+     * @return boolean
6383 6387
      */
6384 6388
     public function display_resources()
6385 6389
     {
@@ -6426,6 +6430,7 @@  discard block
 block discarded – undo
6426 6430
     /**
6427 6431
      * Returns the extension of a document
6428 6432
      * @param string filename
6433
+     * @param string $filename
6429 6434
      * @return string Extension (part after the last dot)
6430 6435
      */
6431 6436
     public function get_extension($filename)
@@ -8886,7 +8891,7 @@  discard block
 block discarded – undo
8886 8891
 
8887 8892
     /**
8888 8893
      * Creates a list with all the student publications in it
8889
-     * @return unknown
8894
+     * @return string
8890 8895
      */
8891 8896
     public function get_student_publications()
8892 8897
     {
@@ -9932,7 +9937,7 @@  discard block
 block discarded – undo
9932 9937
 
9933 9938
     /**
9934 9939
      * @param int $lp_id
9935
-     * @return bool
9940
+     * @return false|null
9936 9941
      */
9937 9942
     public function scorm_export_to_pdf($lp_id)
9938 9943
     {
@@ -10449,6 +10454,7 @@  discard block
 block discarded – undo
10449 10454
     }
10450 10455
 
10451 10456
     /**
10457
+     * @param string $courseCode
10452 10458
      * @return \learnpath
10453 10459
      */
10454 10460
     public static function getLpFromSession($courseCode, $lp_id, $user_id)
@@ -10468,7 +10474,7 @@  discard block
 block discarded – undo
10468 10474
 
10469 10475
     /**
10470 10476
      * @param int $itemId
10471
-     * @return learnpathItem|false
10477
+     * @return string
10472 10478
      */
10473 10479
     public function getItem($itemId)
10474 10480
     {
@@ -10518,7 +10524,6 @@  discard block
 block discarded – undo
10518 10524
     /**
10519 10525
      * Set whether this is a learning path with the possibility to subscribe
10520 10526
      * users or not
10521
-     * @param int $subscribeUsers (0 = false, 1 = true)
10522 10527
      */
10523 10528
     public function setSubscribeUsers($value)
10524 10529
     {
@@ -10643,7 +10648,7 @@  discard block
 block discarded – undo
10643 10648
 
10644 10649
     /**
10645 10650
      * Get the item of exercise type (evaluation type)
10646
-     * @return array The final evaluation. Otherwise return false
10651
+     * @return integer The final evaluation. Otherwise return false
10647 10652
      */
10648 10653
     public function getFinalEvaluationItem()
10649 10654
     {
@@ -10867,7 +10872,7 @@  discard block
 block discarded – undo
10867 10872
     /**
10868 10873
      * Create a forum for this learning path
10869 10874
      * @param type $forumCategoryId
10870
-     * @return int The forum ID if was created. Otherwise return false
10875
+     * @return false|string The forum ID if was created. Otherwise return false
10871 10876
      */
10872 10877
     public function createForum($forumCategoryId)
10873 10878
     {
@@ -10916,7 +10921,7 @@  discard block
 block discarded – undo
10916 10921
     /**
10917 10922
      * Get the LP Final Item Template
10918 10923
      *
10919
-     * @return html
10924
+     * @return string
10920 10925
      */
10921 10926
     private function getFinalItemTemplate()
10922 10927
     {
@@ -10939,7 +10944,7 @@  discard block
 block discarded – undo
10939 10944
     /**
10940 10945
      * Get the LP Final Item form
10941 10946
      *
10942
-     * @return html
10947
+     * @return string
10943 10948
      */
10944 10949
     public function getFinalItemForm()
10945 10950
     {
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/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/webservices/webservice_course.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -342,6 +342,7 @@
 block discarded – undo
342 342
 	 * @param string User id value
343 343
 	 * @param int Set to 1 to subscribe, 0 to unsubscribe
344 344
 	 * @param int Status (STUDENT or TEACHER) Used for subscription only
345
+	 * @param integer $state
345 346
 	 * @return mixed True if subscription or unsubscription was successful, false otherwise
346 347
 	 */
347 348
 	protected function changeUserSubscription($course_id_field_name, $course_id_value, $user_id_field_name, $user_id_value, $state, $status = STUDENT) {
Please login to merge, or discard this patch.
main/work/downloadfolder.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
327 327
  * @param array $arr1 first array
328 328
  * @param array $arr2 second array
329 329
  *
330
- * @return array difference between the two arrays
330
+ * @return string difference between the two arrays
331 331
  */
332 332
 function diff($arr1, $arr2)
333 333
 {
Please login to merge, or discard this patch.
main/coursecopy/classes/DummyCourseCreator.class.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -272,6 +272,7 @@
 block discarded – undo
272 272
     }
273 273
     /**
274 274
      * Get dummy titles, descriptions and texts
275
+     * @param string $type
275 276
      */
276 277
     function get_dummy_content($type)
277 278
     {
Please login to merge, or discard this patch.
main/exercice/export/exercise_import.inc.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -1003,7 +1003,6 @@
 block discarded – undo
1003 1003
 /**
1004 1004
  * Processes an IMS/QTI manifest file: store links to new files to be able to transform them into the questions text
1005 1005
  * @param string $filePath The absolute filepath
1006
- * @param array $links List of filepaths changes
1007 1006
  * @return bool
1008 1007
  */
1009 1008
 function qtiProcessManifest($filePath)
Please login to merge, or discard this patch.