Completed
Pull Request — master (#1537)
by José
29:27
created
main/survey/survey.lib.php 1 patch
Doc Comments   +18 added lines, -15 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
      *
@@ -1838,7 +1838,7 @@  discard block
 block discarded – undo
1838 1838
     /**
1839 1839
      * This function checks the parameters that are used in this page
1840 1840
      *
1841
-     * @return 	string 	The header, an error and the footer if any parameter fails, else it returns true
1841
+     * @return 	null|boolean 	The header, an error and the footer if any parameter fails, else it returns true
1842 1842
      * @author Patrick Cool <[email protected]>, Ghent University
1843 1843
      * @version February 2007
1844 1844
      */
@@ -2389,6 +2389,7 @@  discard block
 block discarded – undo
2389 2389
      * Display score data about a survey question
2390 2390
      * @param	array	Question info
2391 2391
      * @param	integer	The offset of results shown
2392
+     * @param integer $offset
2392 2393
      * @return	void 	(direct output)
2393 2394
      */
2394 2395
     public static function display_question_report_score($survey_data, $question, $offset)
@@ -3024,7 +3025,7 @@  discard block
 block discarded – undo
3024 3025
      * Quite similar to display_complete_report(), returns an HTML string
3025 3026
      * that can be used in a csv file
3026 3027
      * @todo consider merging this function with display_complete_report
3027
-     * @return	string	The contents of a csv file
3028
+     * @return	false|null	The contents of a csv file
3028 3029
      * @author Patrick Cool <[email protected]>, Ghent University
3029 3030
      * @version February 2007
3030 3031
      */
@@ -3246,7 +3247,7 @@  discard block
 block discarded – undo
3246 3247
      * @param	array	User's answers
3247 3248
      * @param 	mixed	User ID or user details as string - Used as a string in the result string
3248 3249
      * @param	boolean	Whether to display user fields or not
3249
-     * @return	string	One line of the csv file
3250
+     * @return	string[]	One line of the csv file
3250 3251
      */
3251 3252
     public static function export_complete_report_row_xls(
3252 3253
         $survey_data,
@@ -3552,6 +3553,7 @@  discard block
 block discarded – undo
3552 3553
      *
3553 3554
      * @param	integer	Survey ID
3554 3555
      * @param	integer	Question ID
3556
+     * @param integer $survey_id
3555 3557
      * @return 	Array	Array containing all answers of all users, grouped by user
3556 3558
      *
3557 3559
      * @author Patrick Cool <[email protected]>, Ghent University
@@ -3846,7 +3848,7 @@  discard block
 block discarded – undo
3846 3848
 
3847 3849
     /**
3848 3850
      * @param $params
3849
-     * @return bool|int
3851
+     * @return false|string
3850 3852
      */
3851 3853
     public static function save_invitation($params)
3852 3854
     {
@@ -3900,6 +3902,7 @@  discard block
 block discarded – undo
3900 3902
      *
3901 3903
      * @param int invitedUser - the userId (course user) or emailaddress of additional user
3902 3904
      * $param string $invitation_code - the unique invitation code for the URL
3905
+     * @param string|null $invitation_text
3903 3906
      * @return	void
3904 3907
      */
3905 3908
     public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text)
@@ -4794,7 +4797,7 @@  discard block
 block discarded – undo
4794 4797
      * @author Isaac Flores Paz <[email protected]>
4795 4798
      * @param int $user_id - User ID
4796 4799
      * @param string $survey_code
4797
-     * @param int $user_id_answer - User in survey answer table (user id or anonymus)
4800
+     * @param int $user_answer - User in survey answer table (user id or anonymus)
4798 4801
      *
4799 4802
      * @return boolean
4800 4803
      */
Please login to merge, or discard this patch.
main/inc/lib/events.lib.php 1 patch
Doc Comments   +20 added lines, -9 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     }
240 240
 
241 241
     /**
242
-     * @param doc_id id of document (id in mainDb.document table)
242
+     * @param doc_id string of document (id in mainDb.document table)
243 243
      * @author Sebastien Piraux <[email protected]>
244 244
      * @desc Record information for upload event
245 245
      * used in the works tool to record informations when
@@ -313,6 +313,9 @@  discard block
 block discarded – undo
313 313
      * @param   int     session_id
314 314
      * @param   int     learnpath_id (id of the learnpath)
315 315
      * @param   int     learnpath_item_id (id of the learnpath_item)
316
+     * @param integer $score
317
+     * @param integer $weighting
318
+     * @param integer $session_id
316 319
      *
317 320
      * @author Sebastien Piraux <[email protected]>
318 321
      * @author Julio Montoya Armas <[email protected]> Reworked 2010
@@ -414,7 +417,9 @@  discard block
 block discarded – undo
414 417
      * @param	integer	Session ID (from the session table). Default value of null means "get from context".
415 418
      * @param	integer	Learnpath ID (from c_lp table). Default value of null means "get from context".
416 419
      * @param	integer	Learnpath item ID (from the c_lp_item table). Default value of null means "get from context".
417
-     * @return	boolean	Result of the insert query
420
+     * @param integer $exe_id
421
+     * @param integer $position
422
+     * @return	false|string	Result of the insert query
418 423
      */
419 424
     public static function saveQuestionAttempt(
420 425
         $score,
@@ -588,6 +593,8 @@  discard block
 block discarded – undo
588 593
      * @param	int		Whether this answer is correct (1) or not (0)
589 594
      * @param	string	Coordinates of this point (e.g. 123;324)
590 595
      * @param	bool update results?
596
+     * @param integer $exe_id
597
+     * @param integer $correct
591 598
      * @return	boolean	Result of the insert query
592 599
      * @uses Course code and user_id from global scope $_cid and $_user
593 600
      */
@@ -800,11 +807,11 @@  discard block
 block discarded – undo
800 807
     /**
801 808
      * Save the new message for one event and for one language
802 809
      *
803
-     * @param string $eventName
810
+     * @param string $event_name
804 811
      * @param array $users
805 812
      * @param string $message
806 813
      * @param string $subject
807
-     * @param string $eventMessageLanguage
814
+     * @param string $event_message_language
808 815
      * @param int $activated
809 816
      */
810 817
     public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated)
@@ -938,10 +945,10 @@  discard block
 block discarded – undo
938 945
     }
939 946
 
940 947
     /**
941
-     * @param $user_id
948
+     * @param integer $user_id
942 949
      * @param $exerciseId
943
-     * @param $lp_id
944
-     * @param $lp_item_id
950
+     * @param integer $lp_id
951
+     * @param integer $lp_item_id
945 952
      * @return int
946 953
      */
947 954
     public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id)
@@ -1118,6 +1125,7 @@  discard block
 block discarded – undo
1118 1125
      * @param   int     exercise id
1119 1126
      * @param   int $courseId
1120 1127
      * @param   int     session id
1128
+     * @param integer $user_id
1121 1129
      * @return  array   with the results
1122 1130
      *
1123 1131
      */
@@ -1213,6 +1221,7 @@  discard block
 block discarded – undo
1213 1221
      * @param   int     exercise id
1214 1222
      * @param   int  $courseId
1215 1223
      * @param   int     session id
1224
+     * @param integer $user_id
1216 1225
      * @return  array   with the results
1217 1226
      *
1218 1227
      */
@@ -1301,6 +1310,8 @@  discard block
 block discarded – undo
1301 1310
      * @param   int     lp id
1302 1311
      * @param   int     lp item id
1303 1312
      * @param   string 	order asc or desc
1313
+     * @param integer $courseId
1314
+     * @param string $order
1304 1315
      * @return  array   with the results
1305 1316
      *
1306 1317
      */
@@ -1367,7 +1378,7 @@  discard block
 block discarded – undo
1367 1378
      * @param   int     exercise id
1368 1379
      * @param   int     $courseId
1369 1380
      * @param   int     session id
1370
-     * @return  array   with the results
1381
+     * @return  string   with the results
1371 1382
      *
1372 1383
      */
1373 1384
     public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0)
@@ -1538,7 +1549,7 @@  discard block
 block discarded – undo
1538 1549
      * @param   int     exercise id
1539 1550
      * @param   int   course id
1540 1551
      * @param   int     session id
1541
-     * @return  array   with the results
1552
+     * @return  integer   with the results
1542 1553
      *
1543 1554
      */
1544 1555
     public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0)
Please login to merge, or discard this patch.
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/inc/lib/social.lib.php 1 patch
Doc Comments   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,6 +67,8 @@  discard block
 block discarded – undo
67 67
      * @param int user id
68 68
      * @param int user friend id
69 69
      * @param string
70
+     * @param integer $user_id
71
+     * @param integer $user_friend
70 72
      * @author isaac flores paz
71 73
      */
72 74
     public static function get_relation_between_contacts($user_id, $user_friend)
@@ -98,6 +100,8 @@  discard block
 block discarded – undo
98 100
      * @param int group id
99 101
      * @param string name to search
100 102
      * @param bool true will load firstname, lastname, and image name
103
+     * @param integer $user_id
104
+     * @param integer $id_group
101 105
      * @return array
102 106
      * @author Julio Montoya <[email protected]> Cleaning code, function renamed, $load_extra_info option added
103 107
      * @author isaac flores paz
@@ -174,6 +178,9 @@  discard block
 block discarded – undo
174 178
      * @param int user friend id
175 179
      * @param string title of the message
176 180
      * @param string content of the message
181
+     * @param integer $user_id
182
+     * @param string $message_title
183
+     * @param string $message_content
177 184
      * @return boolean
178 185
      * @author isaac flores paz
179 186
      * @author Julio Montoya <[email protected]> Cleaning code
@@ -248,6 +255,7 @@  discard block
 block discarded – undo
248 255
      * Get number messages of the inbox
249 256
      * @author isaac flores paz
250 257
      * @param int user receiver id
258
+     * @param integer $user_receiver_id
251 259
      * @return int
252 260
      */
253 261
     public static function get_message_number_invitation_by_user_id($user_receiver_id)
@@ -290,6 +298,7 @@  discard block
 block discarded – undo
290 298
      * Get invitation list sent by user
291 299
      * @author Julio Montoya <[email protected]>
292 300
      * @param int user id
301
+     * @param integer $user_id
293 302
      * @return array()
294 303
      */
295 304
     public static function get_list_invitation_sent_by_user_id($user_id)
@@ -332,6 +341,7 @@  discard block
 block discarded – undo
332 341
      * Denies invitation
333 342
      * @param int user sender id
334 343
      * @param int user receiver id
344
+     * @param integer $user_receiver_id
335 345
      * @author isaac flores paz
336 346
      * @author Julio Montoya <[email protected]> Cleaning code
337 347
      */
@@ -426,7 +436,7 @@  discard block
 block discarded – undo
426 436
      * @param string $subject
427 437
      * @param string $content
428 438
      *
429
-     * @return string message invitation
439
+     * @return false|null message invitation
430 440
      */
431 441
     public static function sendInvitationToUser($userId, $subject = '', $content = '')
432 442
     {
@@ -1223,7 +1233,7 @@  discard block
 block discarded – undo
1223 1233
      * @param string $messageContent of the message
1224 1234
      * @param int $messageId id parent
1225 1235
      * @param string $messageStatus status type of message
1226
-     * @return boolean
1236
+     * @return false|string
1227 1237
      * @author Yannick Warnier
1228 1238
      */
1229 1239
     public static function sendWallMessage($userId, $friendId, $messageContent, $messageId = 0, $messageStatus = '')
@@ -1315,7 +1325,7 @@  discard block
 block discarded – undo
1315 1325
      * Gets all messages from someone's wall (within specific limits)
1316 1326
      * @param int $userId id of wall shown
1317 1327
      * @param string $messageStatus status wall message
1318
-     * @param int|string $parentId id message (Post main)
1328
+     * @param integer|null $parentId id message (Post main)
1319 1329
      * @param date $start Date from which we want to show the messages, in UTC time
1320 1330
      * @param int $limit Limit for the number of parent messages we want to show
1321 1331
      * @param int $offset Wall message query offset
@@ -1600,7 +1610,7 @@  discard block
 block discarded – undo
1600 1610
 
1601 1611
     /**
1602 1612
      * verify if Url Exist - Using Curl
1603
-     * @param $uri url
1613
+     * @param string $uri url
1604 1614
      *
1605 1615
      * @return boolean
1606 1616
      */
@@ -1626,7 +1636,7 @@  discard block
 block discarded – undo
1626 1636
     /**
1627 1637
     * Delete messages delete logic
1628 1638
     * @param int $id id message to delete.
1629
-    * @return bool status query
1639
+    * @return Statement|null status query
1630 1640
     */
1631 1641
     public static function deleteMessage($id)
1632 1642
     {
Please login to merge, or discard this patch.
main/inc/lib/TicketManager.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -640,10 +640,10 @@  discard block
 block discarded – undo
640 640
     /**
641 641
      * Insert message between Users and Admins
642 642
      * @param $ticket_id
643
-     * @param $subject
644
-     * @param $content
643
+     * @param string $subject
644
+     * @param string $content
645 645
      * @param $file_attachments
646
-     * @param $user_id
646
+     * @param integer $user_id
647 647
      * @param string $status
648 648
      * @param bool $sendConfirmation
649 649
      * @return bool
@@ -737,9 +737,9 @@  discard block
 block discarded – undo
737 737
     /**
738 738
      * Attachment files when a message is sent
739 739
      * @param $file_attach
740
-     * @param $ticket_id
741
-     * @param $message_id
742
-     * @param $message_attch_id
740
+     * @param integer $ticket_id
741
+     * @param integer $message_id
742
+     * @param integer $message_attch_id
743 743
      * @return array
744 744
      */
745 745
     public static function save_message_attachment_file(
@@ -2017,7 +2017,7 @@  discard block
 block discarded – undo
2017 2017
     }
2018 2018
 
2019 2019
     /**
2020
-     * @param $id
2020
+     * @param integer $id
2021 2021
      * @return Project
2022 2022
      */
2023 2023
     public static function getProject($id)
@@ -2137,7 +2137,7 @@  discard block
 block discarded – undo
2137 2137
     }
2138 2138
 
2139 2139
     /**
2140
-     * @param $id
2140
+     * @param integer $id
2141 2141
      * @return Project
2142 2142
      */
2143 2143
     public static function getStatus($id)
@@ -2260,7 +2260,7 @@  discard block
 block discarded – undo
2260 2260
     }
2261 2261
 
2262 2262
     /**
2263
-     * @param $id
2263
+     * @param integer $id
2264 2264
      * @return Priority
2265 2265
      */
2266 2266
     public static function getPriority($id)
@@ -2330,7 +2330,7 @@  discard block
 block discarded – undo
2330 2330
     }
2331 2331
 
2332 2332
     /**
2333
-     * @return array
2333
+     * @return string[]
2334 2334
      */
2335 2335
     public static function getDefaultStatusList() {
2336 2336
         return [
@@ -2343,7 +2343,7 @@  discard block
 block discarded – undo
2343 2343
     }
2344 2344
 
2345 2345
         /**
2346
-     * @return array
2346
+     * @return string[]
2347 2347
      */
2348 2348
     public static function getDefaultPriorityList() {
2349 2349
         return [
Please login to merge, or discard this patch.
main/inc/lib/agenda.lib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -573,14 +573,14 @@
 block discarded – undo
573 573
      * @param int $allDay is all day 'true' or 'false'
574 574
      * @param string $title
575 575
      * @param string $content
576
-     * @param array $usersToSend
576
+     * @param string[] $usersToSend
577 577
      * @param array $attachmentArray
578 578
      * @param array $attachmentCommentList
579 579
      * @param string $comment
580 580
      * @param string $color
581 581
      * @param bool $addAnnouncement
582 582
      *
583
-     * @return null|false
583
+     * @return null|boolean
584 584
      */
585 585
     public function editEvent(
586 586
         $id,
Please login to merge, or discard this patch.
main/inc/lib/dashboard.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -498,7 +498,7 @@
 block discarded – undo
498 498
 	 * @param int 		User id
499 499
 	 * @param string	plugin path
500 500
 	 * @param integer $user_id
501
-	 * @return bool
501
+	 * @return false|string
502 502
 	 */
503 503
 	public static function close_user_block($user_id, $path)
504 504
     {
Please login to merge, or discard this patch.
main/inc/lib/sessionmanager.lib.php 1 patch
Doc Comments   +18 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1652,7 +1652,7 @@  discard block
 block discarded – undo
1652 1652
      * @param array $user_list
1653 1653
      * @param int $session_visibility
1654 1654
      * @param bool $empty_users
1655
-     * @return bool
1655
+     * @return false|null
1656 1656
      */
1657 1657
     public static function subscribe_users_to_session(
1658 1658
         $id_session,
@@ -1925,7 +1925,7 @@  discard block
 block discarded – undo
1925 1925
      * @param array $courseInfo
1926 1926
      * @param int $status
1927 1927
      * @param bool $updateTotal
1928
-     * @return bool
1928
+     * @return false|null
1929 1929
      */
1930 1930
     public static function removeUsersFromCourseSession(
1931 1931
         $userList,
@@ -1991,7 +1991,7 @@  discard block
 block discarded – undo
1991 1991
      * @param string $course_code
1992 1992
      * @param int $session_visibility
1993 1993
      * @param bool $removeUsersNotInList
1994
-     * @return bool
1994
+     * @return false|null
1995 1995
      */
1996 1996
     public static function subscribe_users_to_session_course(
1997 1997
         $user_list,
@@ -2175,7 +2175,7 @@  discard block
 block discarded – undo
2175 2175
      * @param	bool	$removeExistingCoursesWithUsers Whether to unsubscribe
2176 2176
      * existing courses and users (true, default) or not (false)
2177 2177
      * @param $copyEvaluation from base course to session course
2178
-     * @return	void	Nothing, or false on error
2178
+     * @return	false|null	Nothing, or false on error
2179 2179
      * */
2180 2180
     public static function add_courses_to_session(
2181 2181
         $sessionId,
@@ -2424,7 +2424,7 @@  discard block
 block discarded – undo
2424 2424
      * @param	string	$variable Field's internal variable name
2425 2425
      * @param	int		$fieldType Field's type
2426 2426
      * @param	string	$displayText Field's language var name
2427
-     * @return int     new extra field id
2427
+     * @return boolean     new extra field id
2428 2428
      */
2429 2429
     public static function create_session_extra_field($variable, $fieldType, $displayText)
2430 2430
     {
@@ -2648,7 +2648,7 @@  discard block
 block discarded – undo
2648 2648
      * @param	array	id_checked
2649 2649
      * @param	bool	include delete session
2650 2650
      * @param	bool	optional, true if the function is called by a webservice, false otherwise.
2651
-     * @return	void	Nothing, or false on error
2651
+     * @return	boolean	Nothing, or false on error
2652 2652
      * The parameters is a array to delete sessions
2653 2653
      * */
2654 2654
     public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false)
@@ -3414,8 +3414,8 @@  discard block
 block discarded – undo
3414 3414
     /**
3415 3415
      * Gets the list of courses by session filtered by access_url
3416 3416
      *
3417
-     * @param $userId
3418
-     * @param $sessionId
3417
+     * @param integer $userId
3418
+     * @param null|integer $sessionId
3419 3419
      * @param null $from
3420 3420
      * @param null $limit
3421 3421
      * @param null $column
@@ -3540,6 +3540,7 @@  discard block
 block discarded – undo
3540 3540
     /**
3541 3541
      * Gets the count of courses by session filtered by access_url
3542 3542
      * @param int session id
3543
+     * @param integer $session_id
3543 3544
      * @return array list of courses
3544 3545
      */
3545 3546
     public static function getCourseCountBySessionId($session_id, $keyword = null)
@@ -3798,6 +3799,7 @@  discard block
 block discarded – undo
3798 3799
      * Updates a session status
3799 3800
      * @param	int 	session id
3800 3801
      * @param	int 	status
3802
+     * @param integer $status
3801 3803
      */
3802 3804
     public static function set_session_status($session_id, $status)
3803 3805
     {
@@ -4006,7 +4008,7 @@  discard block
 block discarded – undo
4006 4008
      * Protect a session to be edited.
4007 4009
      * @param int $id
4008 4010
      * @param bool $checkSession
4009
-     * @return mixed | bool true if pass the check, api_not_allowed otherwise
4011
+     * @return boolean|null | bool true if pass the check, api_not_allowed otherwise
4010 4012
      */
4011 4013
     public static function protectSession($id, $checkSession = true)
4012 4014
     {
@@ -4114,7 +4116,7 @@  discard block
 block discarded – undo
4114 4116
 
4115 4117
     /**
4116 4118
      * @param $id
4117
-     * @return bool
4119
+     * @return null|boolean
4118 4120
      */
4119 4121
     public static function protect_teacher_session_edit($id)
4120 4122
     {
@@ -4179,7 +4181,7 @@  discard block
 block discarded – undo
4179 4181
      *  true: if the session exists it will be updated.
4180 4182
      *  false: if session exists a new session will be created adding a counter session1, session2, etc
4181 4183
      * @param int $defaultUserId
4182
-     * @param mixed $logger
4184
+     * @param Logger $logger
4183 4185
      * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will
4184 4186
      * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id')
4185 4187
      * @param string $extraFieldId
@@ -5482,7 +5484,6 @@  discard block
 block discarded – undo
5482 5484
      * @param string $lastConnectionDate
5483 5485
      * @param array $sessionIdList
5484 5486
      * @param array $studentIdList
5485
-     * @param int $userStatus STUDENT|COURSEMANAGER constants
5486 5487
      *
5487 5488
      * @return array|int
5488 5489
      */
@@ -5634,7 +5635,7 @@  discard block
 block discarded – undo
5634 5635
     /**
5635 5636
      * Get the list of course tools that have to be dealt with in case of
5636 5637
      * registering any course to a session
5637
-     * @return array The list of tools to be dealt with (literal names)
5638
+     * @return string[] The list of tools to be dealt with (literal names)
5638 5639
      */
5639 5640
     public static function getCourseToolToBeManaged()
5640 5641
     {
@@ -5648,7 +5649,7 @@  discard block
 block discarded – undo
5648 5649
      * Calls the methods bound to each tool when a course is registered into a session
5649 5650
      * @param int $sessionId
5650 5651
      * @param int $courseId
5651
-     * @return void
5652
+     * @return boolean|null
5652 5653
      */
5653 5654
     public static function installCourse($sessionId, $courseId)
5654 5655
     {
@@ -6288,6 +6289,7 @@  discard block
 block discarded – undo
6288 6289
      * @param int $categoryId The internal ID of the session category
6289 6290
      * @param string $target Value to search for in the session field values
6290 6291
      * @param array $extraFields A list of fields to be scanned and returned
6292
+     * @param DateTime $publicationDate
6291 6293
      * @return mixed
6292 6294
      */
6293 6295
     public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null)
@@ -7618,7 +7620,7 @@  discard block
 block discarded – undo
7618 7620
     /**
7619 7621
      * Get link to the admin page for this session
7620 7622
      * @param   int $id Session ID
7621
-     * @return mixed    URL to the admin page to manage the session, or false on error
7623
+     * @return false|string    URL to the admin page to manage the session, or false on error
7622 7624
      */
7623 7625
     public static function getAdminPath($id)
7624 7626
     {
@@ -7635,7 +7637,7 @@  discard block
 block discarded – undo
7635 7637
      * If a course is provided, build the link to the course
7636 7638
      * @param   int $id Session ID
7637 7639
      * @param   int $courseId Course ID (optional) in case the link has to send straight to the course
7638
-     * @return mixed    URL to the page to use the session, or false on error
7640
+     * @return false|string    URL to the page to use the session, or false on error
7639 7641
      */
7640 7642
     public static function getPath($id, $courseId = 0)
7641 7643
     {
Please login to merge, or discard this patch.
plugin/vchamilo/lib/Virtual.php 1 patch
Doc Comments   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     * provides a side connection to a vchamilo database
147 147
     * @param array $_configuration
148 148
      *
149
-    * @return \Doctrine\DBAL\Driver\Connection
149
+    * @return string
150 150
     */
151 151
     public static function bootConnection(&$_configuration)
152 152
     {
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 
335 335
     /**
336 336
     * get a proper SQLdump command
337
-    * @param object $vchamilodata the complete new host information
337
+    * @param stdClass $vchamilodata the complete new host information
338 338
     * @return string the shell command
339 339
     */
340 340
     public static function getDatabaseDumpCmd($vchamilodata)
@@ -418,8 +418,8 @@  discard block
 block discarded – undo
418 418
 
419 419
     /**
420 420
      * Backups a database for having a snapshot.
421
-     * @param        $vchamilo    object        The Vchamilo object.
422
-     * @param        $outputfilerad    string        The output SQL file radical.
421
+     * @param        stdClass $vchamilo    object        The Vchamilo object.
422
+     * @param        string $outputfilerad    string        The output SQL file radical.
423 423
      * @return        bool    If TRUE, dumping database was a success, otherwise FALSE.
424 424
      */
425 425
     public static function backupDatabase($vchamilo, $outputfilerad)
@@ -581,6 +581,8 @@  discard block
 block discarded – undo
581 581
     * this function set will map standard moodle API calls to chamilo
582 582
     * internal primitives. This avoids too many changes to do in imported
583 583
     * code
584
+    * @param string $module
585
+    * @param string $key
584 586
     */
585 587
     public static function getConfig($module, $key, $isplugin = true)
586 588
     {
@@ -660,7 +662,7 @@  discard block
 block discarded – undo
660 662
     /**
661 663
      * @param string $path
662 664
      *
663
-     * @return mixed
665
+     * @return string
664 666
      */
665 667
     public static function chopLastSlash($path)
666 668
     {
@@ -812,7 +814,7 @@  discard block
 block discarded – undo
812 814
     }
813 815
 
814 816
     /**
815
-     * @param object $instance
817
+     * @param stdClass $instance
816 818
      * @return \Doctrine\DBAL\Connection
817 819
      */
818 820
     public static function getConnectionFromInstance($instance, $getManager = false)
@@ -1254,7 +1256,7 @@  discard block
 block discarded – undo
1254 1256
     /**
1255 1257
      * @param stdClass $instance
1256 1258
      *
1257
-     * @return bool|string returns the original version of the app
1259
+     * @return string|false returns the original version of the app
1258 1260
      */
1259 1261
     public static function canBeUpgraded($instance)
1260 1262
     {
Please login to merge, or discard this patch.