Completed
Push — 1.11.x ( c88e69...f2c079 )
by José
148:38 queued 115:17
created
main/lp/scorm.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      * @param int $userMaxScore
272 272
      * @param int $sessionId
273 273
      *
274
-     * @return bool	Returns -1 on error
274
+     * @return boolean|null	Returns -1 on error
275 275
      */
276 276
     public function import_manifest($courseCode, $userMaxScore = 1, $sessionId = 0, $userId = 0)
277 277
     {
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
      * @param	string	course Code
926 926
      * @param string	LP ID (in database)
927 927
      * @param string	Manifest file path (optional if lp_id defined)
928
-     * @return	integer	New LP ID or false on failure
928
+     * @return	boolean	New LP ID or false on failure
929 929
      * TODO @TODO Implement imsmanifest_path parameter
930 930
      */
931 931
     public function reimport_manifest($courseCode, $lp_id = null, $imsmanifest_path = '')
Please login to merge, or discard this patch.
main/admin/settings.lib.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1154,7 +1154,7 @@  discard block
 block discarded – undo
1154 1154
 /**
1155 1155
  * Returns an array containing the list of options used to populate the gradebook_number_decimals variable
1156 1156
  * This function is called through a call_user_func() in the generate_settings_form function.
1157
- * @return array List of gradebook_number_decimals options
1157
+ * @return string[] List of gradebook_number_decimals options
1158 1158
  *
1159 1159
  * @author Guillaume Viguier <[email protected]>
1160 1160
  */
@@ -1575,8 +1575,9 @@  discard block
 block discarded – undo
1575 1575
 }
1576 1576
 /**
1577 1577
  * Helper function to generates a form elements group
1578
- * @param object $form The form where the elements group has to be added
1578
+ * @param FormValidator $form The form where the elements group has to be added
1579 1579
  * @param array $values Values to browse through
1580
+ * @param string $elementName
1580 1581
  * @return array
1581 1582
  */
1582 1583
 function formGenerateElementsGroup($form, $values = array(), $elementName)
@@ -1592,7 +1593,7 @@  discard block
 block discarded – undo
1592 1593
 }
1593 1594
 /**
1594 1595
  * Helper function with allowed file types for CSS
1595
- * @return  array Array of file types (no indexes)
1596
+ * @return  string[] Array of file types (no indexes)
1596 1597
  */
1597 1598
 function getAllowedFileTypes()
1598 1599
 {
Please login to merge, or discard this patch.
main/inc/lib/attendance.lib.php 1 patch
Doc Comments   +23 added lines, -5 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      * Add attendances sheet inside table. This is the *list of* dates, not
278 278
      * a specific date in itself.
279 279
      * @param  bool   true for adding link in gradebook or false otherwise (optional)
280
-     * @return int    last attendance id
280
+     * @return false|string    last attendance id
281 281
      */
282 282
     public function attendance_add($link_to_gradebook = false)
283 283
     {
@@ -354,6 +354,7 @@  discard block
 block discarded – undo
354 354
      * edit attendances inside table
355 355
      * @param 	int	   attendance id
356 356
      * @param  	bool   true for adding link in gradebook or false otherwise (optional)
357
+     * @param integer $attendance_id
357 358
      * @return 	int    last id
358 359
      */
359 360
     public function attendance_edit($attendance_id, $link_to_gradebook = false)
@@ -429,6 +430,7 @@  discard block
 block discarded – undo
429 430
     /**
430 431
      * Restore attendance
431 432
      * @param 	int|array	   one or many attendances id
433
+     * @param integer $attendance_id
432 434
      * @return 	int    		   affected rows
433 435
      */
434 436
     public function attendance_restore($attendance_id)
@@ -530,7 +532,7 @@  discard block
 block discarded – undo
530 532
 
531 533
     /**
532 534
      * Changes visibility
533
-     * @param int|array	$attendanceId   one or many attendances id
535
+     * @param integer	$attendanceId   one or many attendances id
534 536
      * @param int status
535 537
      *
536 538
      * @return 	int affected rows
@@ -585,6 +587,7 @@  discard block
 block discarded – undo
585 587
      * Lock or unlock an attendance
586 588
      * @param   int     attendance id
587 589
      * @param   bool    True to lock or false otherwise
590
+     * @param integer $attendance_id
588 591
      */
589 592
     public function lock_attendance($attendance_id, $lock = true)
590 593
     {
@@ -917,7 +920,11 @@  discard block
 block discarded – undo
917 920
      * @param   string  Event type ('locked_attendance', 'done_attendance_sheet' ...)
918 921
      * @param   int     Last edit user id
919 922
      * @param   string  Calendar datetime value (optional, when event type is 'done_attendance_sheet')
920
-     * @return  int     Affected rows
923
+     * @param integer $attendance_id
924
+     * @param string $lastedit_date
925
+     * @param string $lastedit_type
926
+     * @param integer $lastedit_user_id
927
+     * @return  false|string     Affected rows
921 928
      */
922 929
     public function save_attendance_sheet_log(
923 930
         $attendance_id,
@@ -962,6 +969,7 @@  discard block
 block discarded – undo
962 969
     /**
963 970
      * Get number of done attendances inside current sheet
964 971
      * @param	int	   attendance id
972
+     * @param integer $attendance_id
965 973
      * @return 	int	   number of done attendances
966 974
      */
967 975
     public static function get_done_attendance_calendar($attendance_id)
@@ -1197,6 +1205,7 @@  discard block
 block discarded – undo
1197 1205
     /**
1198 1206
      * Get next attendance calendar without presences (done attendances)
1199 1207
      * @param	int	attendance id
1208
+     * @param integer $attendance_id
1200 1209
      * @return 	int attendance calendar id
1201 1210
      */
1202 1211
     public function get_next_attendance_calendar_id($attendance_id)
@@ -1225,6 +1234,7 @@  discard block
 block discarded – undo
1225 1234
     /**
1226 1235
      * Get next attendance calendar datetime without presences (done attendances)
1227 1236
      * @param	int	attendance id
1237
+     * @param integer $attendance_id
1228 1238
      * @return 	int UNIX time format datetime
1229 1239
      */
1230 1240
     public function get_next_attendance_calendar_datetime($attendance_id)
@@ -1253,6 +1263,7 @@  discard block
 block discarded – undo
1253 1263
      * Get user' score from current attendance
1254 1264
      * @param	int	$user_id
1255 1265
      * @param	int $attendance_id
1266
+     * @param integer $groupId
1256 1267
      * @return	int score
1257 1268
      */
1258 1269
     public function get_user_score($user_id, $attendance_id, $groupId = null)
@@ -1300,6 +1311,7 @@  discard block
 block discarded – undo
1300 1311
     /**
1301 1312
      * Get attendance calendar data by id
1302 1313
      * @param	int	attendance calendar id
1314
+     * @param integer $calendar_id
1303 1315
      * @return	array attendance calendar data
1304 1316
      */
1305 1317
     public function get_attendance_calendar_by_id($calendar_id)
@@ -1422,6 +1434,7 @@  discard block
 block discarded – undo
1422 1434
      * Get number of attendance calendar inside current attendance
1423 1435
      * @param	int	$attendance_id
1424 1436
      * @param	int	$groupId
1437
+     * @param boolean $done_attendance
1425 1438
      * @return	int number of dates in attendance calendar
1426 1439
      */
1427 1440
     public static function get_number_of_attendance_calendar($attendance_id, $groupId = 0, $done_attendance = NULL, $userId = 0)
@@ -1647,7 +1660,6 @@  discard block
 block discarded – undo
1647 1660
     /**
1648 1661
      * @param int $calendarId
1649 1662
      * @param int $courseId
1650
-     * @param int $groupId
1651 1663
      * @return array
1652 1664
      */
1653 1665
     public function getGroupListByAttendanceCalendar($calendarId, $courseId)
@@ -1687,7 +1699,6 @@  discard block
 block discarded – undo
1687 1699
     /**
1688 1700
      * @param int $calendarId
1689 1701
      * @param int $courseId
1690
-     * @param int $groupId
1691 1702
      *
1692 1703
      * @return array
1693 1704
      */
@@ -1788,6 +1799,8 @@  discard block
 block discarded – undo
1788 1799
      * edit a datetime inside attendance calendar table
1789 1800
      * @param	int	attendance calendar id
1790 1801
      * @param	int	attendance id
1802
+     * @param integer $calendar_id
1803
+     * @param integer $attendance_id
1791 1804
      * @return	int affected rows
1792 1805
      */
1793 1806
     public function attendance_calendar_edit($calendar_id, $attendance_id)
@@ -1827,6 +1840,8 @@  discard block
 block discarded – undo
1827 1840
      * @param	int		attendance calendar id
1828 1841
      * @param	int		attendance id
1829 1842
      * @param	bool	true for removing all calendar inside current attendance, false for removing by calendar id
1843
+     * @param integer $calendar_id
1844
+     * @param integer $attendance_id
1830 1845
      * @return	int affected rows
1831 1846
      */
1832 1847
     public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false)
@@ -1889,6 +1904,9 @@  discard block
 block discarded – undo
1889 1904
         $this->course_id = $course_id;
1890 1905
     }
1891 1906
 
1907
+    /**
1908
+     * @param string $datetime
1909
+     */
1892 1910
     public function set_date_time($datetime)
1893 1911
     {
1894 1912
         $this->date_time = $datetime;
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
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 
85 85
     /**
86 86
      * Available driver list.
87
-     * @return array
87
+     * @return string[]
88 88
      */
89 89
     private function getDefaultDriverList()
90 90
     {
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
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-     * @return bool
41
+     * @return false|null
42 42
      */
43 43
     public function create_user_folder()
44 44
     {
Please login to merge, or discard this patch.
main/inc/lib/extra_field_option.lib.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
      * Gets an array of options for a specific field
413 413
      * @param int $field_id The field ID
414 414
      * @param bool $add_id_in_array Whether to add the row ID in the result
415
-     * @param null $ordered_by Extra ordering query bit
415
+     * @param null|string $ordered_by Extra ordering query bit
416 416
      * @return array The options if they exists. Otherwise return false
417 417
      */
418 418
     public function get_field_options_by_field($field_id, $add_id_in_array = false, $ordered_by = null)
@@ -782,8 +782,8 @@  discard block
 block discarded – undo
782 782
     }
783 783
 
784 784
     /**
785
-     * @param $defaultDisplayText
786
-     * @return mixed|string
785
+     * @param string $defaultDisplayText
786
+     * @return string
787 787
      */
788 788
     public static function getLanguageVariable($defaultDisplayText)
789 789
     {
Please login to merge, or discard this patch.
main/inc/lib/formvalidator/FormValidator.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -954,7 +954,7 @@
 block discarded – undo
954 954
     /**
955 955
      * This function has been created for avoiding changes directly within QuickForm class.
956 956
      * When we use it, the element is threated as 'required' to be dealt during validation.
957
-     * @param array $element The array of elements
957
+     * @param array $elements The array of elements
958 958
      * @param string $message The message displayed
959 959
      */
960 960
     public function add_multiple_required_rule($elements, $message)
Please login to merge, or discard this patch.
main/wiki/wiki.inc.php 1 patch
Doc Comments   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      * This function saves a change in a wiki page
259 259
      * @author Patrick Cool <[email protected]>, Ghent University
260 260
      * @param array $values
261
-     * @return language string saying that the changes are stored
261
+     * @return string string saying that the changes are stored
262 262
      **/
263 263
     public function save_wiki($values)
264 264
     {
@@ -1196,6 +1196,7 @@  discard block
 block discarded – undo
1196 1196
      * Checks if this navigation tab has to be set to active
1197 1197
      * @author Patrick Cool <[email protected]>, Ghent University
1198 1198
      *
1199
+     * @param string $paramwk
1199 1200
      * @return string html code
1200 1201
      */
1201 1202
     public function is_active_navigation_tab($paramwk)
@@ -1711,6 +1712,7 @@  discard block
 block discarded – undo
1711 1712
 
1712 1713
     /**
1713 1714
      * Sends pending e-mails
1715
+     * @param string $type
1714 1716
      */
1715 1717
     public function check_emailcue($id_or_ref, $type, $lastime='', $lastuser='')
1716 1718
     {
@@ -2011,6 +2013,7 @@  discard block
 block discarded – undo
2011 2013
 
2012 2014
     /**
2013 2015
      * Exports the wiki page to PDF
2016
+     * @param string $course_code
2014 2017
      */
2015 2018
     public function export_to_pdf($id, $course_code)
2016 2019
     {
@@ -2478,6 +2481,7 @@  discard block
 block discarded – undo
2478 2481
     /**
2479 2482
      * Draws an HTML form select with the given options
2480 2483
      *
2484
+     * @param string $name
2481 2485
      */
2482 2486
     public function make_select($name,$values,$checked='')
2483 2487
     {
@@ -2514,7 +2518,7 @@  discard block
 block discarded – undo
2514 2518
     /**
2515 2519
      * Get wiki information
2516 2520
      * @param   int|bool     wiki id
2517
-     * @return  array   wiki data
2521
+     * @return  string   wiki data
2518 2522
      */
2519 2523
     public function getWikiDataFromDb($id)
2520 2524
     {
@@ -2561,6 +2565,7 @@  discard block
 block discarded – undo
2561 2565
      * Get wiki information
2562 2566
      * @param   string     wiki id
2563 2567
      * @param int $courseId
2568
+     * @param string $title
2564 2569
      * @return  array   wiki data
2565 2570
      */
2566 2571
     public function getPageByTitle($title, $courseId = null)
@@ -2593,6 +2598,8 @@  discard block
 block discarded – undo
2593 2598
      * @param int $courseId
2594 2599
      * @param string
2595 2600
      * @param string
2601
+     * @param string $groupfilter
2602
+     * @param string $condition_session
2596 2603
      * @return bool
2597 2604
      */
2598 2605
     public function deletePage($title, $courseId, $groupfilter = null, $condition_session = null)
@@ -3644,6 +3651,7 @@  discard block
 block discarded – undo
3644 3651
 
3645 3652
     /**
3646 3653
      * Show all pages
3654
+     * @param string $action
3647 3655
      */
3648 3656
     public function allPages($action)
3649 3657
     {
@@ -4200,7 +4208,7 @@  discard block
 block discarded – undo
4200 4208
 
4201 4209
     /**
4202 4210
      * Restore page
4203
-     * @return bool
4211
+     * @return false|null
4204 4212
      */
4205 4213
     public function restorePage()
4206 4214
     {
@@ -4302,7 +4310,7 @@  discard block
 block discarded – undo
4302 4310
     }
4303 4311
 
4304 4312
     /**
4305
-     * @param int|bool $wikiId
4313
+     * @param false|string $wikiId
4306 4314
      */
4307 4315
     public function setWikiData($wikiId)
4308 4316
     {
Please login to merge, or discard this patch.
main/inc/lib/CourseChatUtils.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1415,7 +1415,7 @@  discard block
 block discarded – undo
1415 1415
 
1416 1416
     /**
1417 1417
      * Get the emoji list to include in chat
1418
-     * @return array
1418
+     * @return string[]
1419 1419
      */
1420 1420
     public static function getEmojisToInclude()
1421 1421
     {
@@ -1738,7 +1738,7 @@  discard block
 block discarded – undo
1738 1738
 
1739 1739
     /**
1740 1740
      * Get the number of users connected in chat
1741
-     * @return mixed
1741
+     * @return integer
1742 1742
      */
1743 1743
     public function countUsersOnline()
1744 1744
     {
Please login to merge, or discard this patch.