Completed
Pull Request — 1.11.x (#1223)
by José
199:23 queued 154:45
created
main/admin/class_user_import.php 1 patch
Doc Comments   +3 added lines, -1 removed 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 $user_classes
14 15
  */
15 16
 function validate_data($user_classes) {
16 17
     global $purification_option_for_usernames;
@@ -66,6 +67,7 @@  discard block
 block discarded – undo
66 67
 
67 68
 /**
68 69
  * Saves imported data.
70
+ * @param Ddeboer\DataImport\Reader\CsvReader $users_classes
69 71
  */
70 72
 function save_data($users_classes, $deleteUsersNotInList = false) {
71 73
 
@@ -115,7 +117,7 @@  discard block
 block discarded – undo
115 117
 /**
116 118
  * Reads a CSV-file.
117 119
  * @param string $file Path to the CSV-file
118
- * @return array All course-information read from the file
120
+ * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file
119 121
  */
120 122
 function parse_csv_data($file) {
121 123
     $courses = Import::csvToArray($file);
Please login to merge, or discard this patch.
main/admin/course_user_import.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,7 @@  discard block
 block discarded – undo
8 8
  */
9 9
 /**
10 10
  * Validates the imported data.
11
+ * @param Ddeboer\DataImport\Reader\CsvReader $users_courses
11 12
  */
12 13
 function validate_data($users_courses)
13 14
 {
@@ -66,6 +67,7 @@  discard block
 block discarded – undo
66 67
 
67 68
 /**
68 69
  * Saves imported data.
70
+ * @param Ddeboer\DataImport\Reader\CsvReader $users_courses
69 71
  */
70 72
 function save_data($users_courses)
71 73
 {
@@ -134,7 +136,7 @@  discard block
 block discarded – undo
134 136
 /**
135 137
  * Reads CSV-file.
136 138
  * @param string $file Path to the CSV-file
137
- * @return array All course-information read from the file
139
+ * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file
138 140
  */
139 141
 function parse_csv_data($file)
140 142
 {
Please login to merge, or discard this patch.
main/ticket/tutor_report.lib.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 /**
75 75
  * @param $courseInfo
76
- * @param $weeksCount
76
+ * @param string $weeksCount
77 77
  * @param $page
78 78
  * @return array
79 79
  */
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
 /**
184 184
  * @param $datos
185
- * @param $pagina
185
+ * @param integer $pagina
186 186
  * @return string
187 187
  */
188 188
 function showStudentResult($datos, $pagina)
@@ -201,8 +201,8 @@  discard block
 block discarded – undo
201 201
 
202 202
 /**
203 203
  * @param $data
204
- * @param $numero_semanas
205
- * @return array
204
+ * @param integer $numero_semanas
205
+ * @return string[]
206 206
  */
207 207
 function showStudentResultExport($data, $numero_semanas)
208 208
 {
Please login to merge, or discard this patch.
plugin/azure_active_directory/src/AzureActiveDirectory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /**
37 37
      * Instance the plugin
38 38
      * @staticvar null $result
39
-     * @return Tour
39
+     * @return AzureActiveDirectory
40 40
      */
41 41
     static function create()
42 42
     {
Please login to merge, or discard this patch.
main/inc/lib/TicketManager.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -250,8 +250,8 @@  discard block
 block discarded – undo
250 250
      * Inserts a new ticket in the corresponding tables
251 251
      * @param $category_id
252 252
      * @param $course_id
253
-     * @param $project_id
254
-     * @param $other_area
253
+     * @param integer $project_id
254
+     * @param integer $other_area
255 255
      * @param $email
256 256
      * @param $subject
257 257
      * @param $content
@@ -632,10 +632,10 @@  discard block
 block discarded – undo
632 632
     /**
633 633
      * Insert message between Users and Admins
634 634
      * @param $ticket_id
635
-     * @param $subject
636
-     * @param $content
635
+     * @param string $subject
636
+     * @param string $content
637 637
      * @param $file_attachments
638
-     * @param $user_id
638
+     * @param integer $user_id
639 639
      * @param string $status
640 640
      * @param bool $sendConfirmation
641 641
      * @return bool
@@ -734,9 +734,9 @@  discard block
 block discarded – undo
734 734
     /**
735 735
      * Attachment files when a message is sent
736 736
      * @param $file_attach
737
-     * @param $ticket_id
738
-     * @param $message_id
739
-     * @param $message_attch_id
737
+     * @param integer $ticket_id
738
+     * @param integer $message_id
739
+     * @param integer $message_attch_id
740 740
      * @return array
741 741
      */
742 742
     public static function save_message_attachment_file(
@@ -1969,7 +1969,7 @@  discard block
 block discarded – undo
1969 1969
     }
1970 1970
 
1971 1971
     /**
1972
-     * @param $id
1972
+     * @param integer $id
1973 1973
      * @return Project
1974 1974
      */
1975 1975
     public static function getProject($id)
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
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 	 * Add attendances sheet inside table. This is the *list of* dates, not
281 281
 	 * a specific date in itself.
282 282
 	 * @param  bool   true for adding link in gradebook or false otherwise (optional)
283
-	 * @return int    last attendance id
283
+	 * @return false|string    last attendance id
284 284
 	 */
285 285
 	public function attendance_add($link_to_gradebook = false)
286 286
 	{
@@ -356,6 +356,7 @@  discard block
 block discarded – undo
356 356
 	 * edit attendances inside table
357 357
 	 * @param 	int	   attendance id
358 358
 	 * @param  	bool   true for adding link in gradebook or false otherwise (optional)
359
+	 * @param integer $attendance_id
359 360
 	 * @return 	int    last id
360 361
 	 */
361 362
 	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)
@@ -1196,6 +1204,7 @@  discard block
 block discarded – undo
1196 1204
 	/**
1197 1205
 	 * Get next attendance calendar without presences (done attendances)
1198 1206
 	 * @param	int	attendance id
1207
+	 * @param integer $attendance_id
1199 1208
 	 * @return 	int attendance calendar id
1200 1209
 	 */
1201 1210
 	public function get_next_attendance_calendar_id($attendance_id)
@@ -1223,6 +1232,7 @@  discard block
 block discarded – undo
1223 1232
 	/**
1224 1233
 	 * Get next attendance calendar datetime without presences (done attendances)
1225 1234
 	 * @param	int	attendance id
1235
+	 * @param integer $attendance_id
1226 1236
 	 * @return 	int UNIX time format datetime
1227 1237
 	 */
1228 1238
 	public function get_next_attendance_calendar_datetime($attendance_id)
@@ -1251,6 +1261,7 @@  discard block
 block discarded – undo
1251 1261
 	 * Get user' score from current attendance
1252 1262
 	 * @param	int	$user_id
1253 1263
 	 * @param	int $attendance_id
1264
+	 * @param integer $groupId
1254 1265
 	 * @return	int score
1255 1266
 	 */
1256 1267
 	public function get_user_score($user_id, $attendance_id, $groupId = null)
@@ -1298,6 +1309,7 @@  discard block
 block discarded – undo
1298 1309
 	/**
1299 1310
 	 * Get attendance calendar data by id
1300 1311
 	 * @param	int	attendance calendar id
1312
+	 * @param integer $calendar_id
1301 1313
 	 * @return	array attendance calendar data
1302 1314
 	 */
1303 1315
 	public function get_attendance_calendar_by_id($calendar_id)
@@ -1421,6 +1433,7 @@  discard block
 block discarded – undo
1421 1433
 	 * Get number of attendance calendar inside current attendance
1422 1434
 	 * @param	int	$attendance_id
1423 1435
 	 * @param	int	$groupId
1436
+	 * @param boolean $done_attendance
1424 1437
 	 * @return	int number of dates in attendance calendar
1425 1438
 	 */
1426 1439
     public static function get_number_of_attendance_calendar($attendance_id, $groupId = 0, $done_attendance = NULL, $userId = 0)
@@ -1646,7 +1659,6 @@  discard block
 block discarded – undo
1646 1659
 	/**
1647 1660
 	 * @param int $calendarId
1648 1661
 	 * @param int $courseId
1649
-	 * @param int $groupId
1650 1662
 	 * @return array
1651 1663
 	 */
1652 1664
 	public function getGroupListByAttendanceCalendar($calendarId, $courseId)
@@ -1686,7 +1698,6 @@  discard block
 block discarded – undo
1686 1698
 	/**
1687 1699
 	 * @param int $calendarId
1688 1700
 	 * @param int $courseId
1689
-	 * @param int $groupId
1690 1701
      *
1691 1702
 	 * @return array
1692 1703
 	 */
@@ -1787,6 +1798,8 @@  discard block
 block discarded – undo
1787 1798
 	 * edit a datetime inside attendance calendar table
1788 1799
 	 * @param	int	attendance calendar id
1789 1800
 	 * @param	int	attendance id
1801
+	 * @param integer $calendar_id
1802
+	 * @param integer $attendance_id
1790 1803
 	 * @return	int affected rows
1791 1804
 	 */
1792 1805
 	public function attendance_calendar_edit($calendar_id, $attendance_id)
@@ -1826,6 +1839,8 @@  discard block
 block discarded – undo
1826 1839
 	 * @param	int		attendance calendar id
1827 1840
 	 * @param	int		attendance id
1828 1841
 	 * @param	bool	true for removing all calendar inside current attendance, false for removing by calendar id
1842
+	 * @param integer $calendar_id
1843
+	 * @param integer $attendance_id
1829 1844
 	 * @return	int affected rows
1830 1845
 	 */
1831 1846
 	public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false)
@@ -1888,6 +1903,9 @@  discard block
 block discarded – undo
1888 1903
 		$this->course_id = $course_id;
1889 1904
 	}
1890 1905
 
1906
+	/**
1907
+	 * @param string $datetime
1908
+	 */
1891 1909
 	public function set_date_time($datetime)
1892 1910
 	{
1893 1911
 		$this->date_time = $datetime;
Please login to merge, or discard this patch.
main/inc/lib/link.lib.php 1 patch
Doc Comments   +10 added lines, -2 removed lines patch added patch discarded remove patch
@@ -477,6 +477,7 @@  discard block
 block discarded – undo
477 477
      *
478 478
      * Get link info
479 479
      * @param int link id
480
+     * @param integer $id
480 481
      * @return array link info
481 482
      *
482 483
      **/
@@ -1061,7 +1062,9 @@  discard block
 block discarded – undo
1061 1062
     /**
1062 1063
      * Displays the edit, delete and move icons
1063 1064
      * @param int   Category ID
1064
-     * @return void
1065
+     * @param integer $currentCategory
1066
+     * @param integer $countCategories
1067
+     * @return string
1065 1068
      * @author Patrick Cool <[email protected]>, Ghent University
1066 1069
      */
1067 1070
     public static function showCategoryAdminTools($category, $currentCategory, $countCategories)
@@ -1225,6 +1228,7 @@  discard block
 block discarded – undo
1225 1228
     /**
1226 1229
      * CSV file import functions
1227 1230
      * @author René Haentjens , Ghent University
1231
+     * @param string $catname
1228 1232
      */
1229 1233
     public static function get_cat($catname)
1230 1234
     {
@@ -1264,6 +1268,11 @@  discard block
 block discarded – undo
1264 1268
     /**
1265 1269
      * CSV file import functions
1266 1270
      * @author René Haentjens , Ghent University
1271
+     * @param string $url
1272
+     * @param string $title
1273
+     * @param string $description
1274
+     * @param string $on_homepage
1275
+     * @param string $hidden
1267 1276
      */
1268 1277
     public static function put_link($url, $cat, $title, $description, $on_homepage, $hidden)
1269 1278
     {
@@ -1622,7 +1631,6 @@  discard block
 block discarded – undo
1622 1631
     /**
1623 1632
      * @param int $linkId
1624 1633
      * @param $action
1625
-     * @param null $urlview
1626 1634
      * @param null $token
1627 1635
      * @return FormValidator
1628 1636
      */
Please login to merge, or discard this patch.
main/inc/lib/thematic.lib.php 1 patch
Doc Comments   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -242,6 +242,8 @@  discard block
 block discarded – undo
242 242
     /**
243 243
      * get thematic list
244 244
      * @param	int		Thematic id (optional), get list by id
245
+     * @param integer $thematic_id
246
+     * @param integer $session_id
245 247
      * @return	array	Thematic data
246 248
      */
247 249
     public static function get_thematic_list(
@@ -798,6 +800,7 @@  discard block
 block discarded – undo
798 800
     /**
799 801
      * delete  thematic advance
800 802
      * @param	int		Thematic advance id
803
+     * @param integer $thematic_advance_id
801 804
      * @return	int		Affected rows
802 805
      */
803 806
     public function thematic_advance_destroy($thematic_advance_id)
@@ -1114,6 +1117,7 @@  discard block
 block discarded – undo
1114 1117
     /**
1115 1118
      * update done thematic advances from thematic details interface
1116 1119
      * @param 	int		Thematic id
1120
+     * @param integer $thematic_advance_id
1117 1121
      * @return	int		Affected rows
1118 1122
      */
1119 1123
     public function update_done_thematic_advances($thematic_advance_id)
@@ -1296,6 +1300,7 @@  discard block
 block discarded – undo
1296 1300
      * Get total average of thematic advances
1297 1301
      * @param	string	Course code (optional)
1298 1302
      * @param	int		Session id	(optional)
1303
+     * @param integer $session_id
1299 1304
      * @return 	float	Average of thematic advances
1300 1305
      */
1301 1306
     public function get_total_average_of_thematic_advances($course_code = null, $session_id = null)
@@ -1433,7 +1438,7 @@  discard block
 block discarded – undo
1433 1438
 
1434 1439
     /**
1435 1440
      * get thematic id
1436
-     * @return void
1441
+     * @return integer
1437 1442
      */
1438 1443
     public function get_thematic_id()
1439 1444
     {
@@ -1442,7 +1447,7 @@  discard block
 block discarded – undo
1442 1447
 
1443 1448
     /**
1444 1449
      * Get thematic plan titles by default
1445
-     * @return array
1450
+     * @return string[]
1446 1451
      */
1447 1452
     public function get_default_thematic_plan_title()
1448 1453
     {
@@ -1459,7 +1464,7 @@  discard block
 block discarded – undo
1459 1464
 
1460 1465
     /**
1461 1466
      * Get thematic plan icons by default
1462
-     * @return array
1467
+     * @return string[]
1463 1468
      */
1464 1469
     public function get_default_thematic_plan_icon()
1465 1470
     {
@@ -1476,7 +1481,7 @@  discard block
 block discarded – undo
1476 1481
 
1477 1482
     /**
1478 1483
      * Get questions by default for help
1479
-     * @return array
1484
+     * @return string[]
1480 1485
      */
1481 1486
     public function get_default_question()
1482 1487
     {
Please login to merge, or discard this patch.
main/wiki/wiki.inc.php 1 patch
Doc Comments   +11 added lines, -3 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     wiki id
2517
-     * @return  array   wiki data
2521
+     * @return  string   wiki data
2518 2522
      */
2519 2523
     public function get_wiki_data($id)
2520 2524
     {
@@ -2558,6 +2562,7 @@  discard block
 block discarded – undo
2558 2562
      * Get wiki information
2559 2563
      * @param   string     wiki id
2560 2564
      * @param int $courseId
2565
+     * @param string $title
2561 2566
      * @return  array   wiki data
2562 2567
      */
2563 2568
     public function getPageByTitle($title, $courseId = null)
@@ -2590,6 +2595,8 @@  discard block
 block discarded – undo
2590 2595
      * @param int $courseId
2591 2596
      * @param string
2592 2597
      * @param string
2598
+     * @param string $groupfilter
2599
+     * @param string $condition_session
2593 2600
      * @return bool
2594 2601
      */
2595 2602
     public function deletePage($title, $courseId, $groupfilter = null, $condition_session = null)
@@ -3635,6 +3642,7 @@  discard block
 block discarded – undo
3635 3642
 
3636 3643
     /**
3637 3644
      * Show all pages
3645
+     * @param string $action
3638 3646
      */
3639 3647
     public function allPages($action)
3640 3648
     {
@@ -4190,7 +4198,7 @@  discard block
 block discarded – undo
4190 4198
 
4191 4199
     /**
4192 4200
      * Restore page
4193
-     * @return bool
4201
+     * @return false|null
4194 4202
      */
4195 4203
     public function restorePage()
4196 4204
     {
Please login to merge, or discard this patch.