Completed
Push — 1.11.x ( d00fca...f1f062 )
by José
28:05
created
plugin/vchamilo/lib/Virtual.php 1 patch
Doc Comments   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     * provides a side connection to a vchamilo database
185 185
     * @param array $_configuration
186 186
      *
187
-    * @return \Doctrine\DBAL\Driver\Connection
187
+    * @return string
188 188
     */
189 189
     public static function bootConnection(&$_configuration)
190 190
     {
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 
373 373
     /**
374 374
     * get a proper SQLdump command
375
-    * @param object $vchamilodata the complete new host information
375
+    * @param stdClass $vchamilodata the complete new host information
376 376
     * @return string the shell command
377 377
     */
378 378
     public static function getDatabaseDumpCmd($vchamilodata)
@@ -456,8 +456,8 @@  discard block
 block discarded – undo
456 456
 
457 457
     /**
458 458
      * Backups a database for having a snapshot.
459
-     * @param        $vchamilo    object        The Vchamilo object.
460
-     * @param        $outputfilerad    string        The output SQL file radical.
459
+     * @param        stdClass $vchamilo    object        The Vchamilo object.
460
+     * @param        string $outputfilerad    string        The output SQL file radical.
461 461
      * @return        bool    If TRUE, dumping database was a success, otherwise FALSE.
462 462
      */
463 463
     public static function backupDatabase($vchamilo, $outputfilerad)
@@ -619,6 +619,8 @@  discard block
 block discarded – undo
619 619
     * this function set will map standard moodle API calls to chamilo
620 620
     * internal primitives. This avoids too many changes to do in imported
621 621
     * code
622
+    * @param string $module
623
+    * @param string $key
622 624
     */
623 625
     public static function getConfig($module, $key, $isplugin = true)
624 626
     {
@@ -698,7 +700,7 @@  discard block
 block discarded – undo
698 700
     /**
699 701
      * @param string $path
700 702
      *
701
-     * @return mixed
703
+     * @return string
702 704
      */
703 705
     public static function chopLastSlash($path)
704 706
     {
@@ -852,7 +854,7 @@  discard block
 block discarded – undo
852 854
 
853 855
     /**
854 856
      * @param object $instance
855
-     * @return bool|\Doctrine\DBAL\Connection
857
+     * @return Doctrine\ORM\EntityManagerInterface
856 858
      */
857 859
     public static function getConnectionFromInstance($instance, $getManager = false)
858 860
     {
@@ -1297,7 +1299,7 @@  discard block
 block discarded – undo
1297 1299
     /**
1298 1300
      * @param stdClass $instance
1299 1301
      *
1300
-     * @return bool|string returns the original version of the app
1302
+     * @return string|false returns the original version of the app
1301 1303
      */
1302 1304
     public static function canBeUpgraded($instance)
1303 1305
     {
Please login to merge, or discard this patch.
plugin/google_maps/src/GoogleMapsPlugin.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     /**
45 45
      * Install the plugin
46
-     * @return void
46
+     * @return boolean
47 47
      */
48 48
     public function install()
49 49
     {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     /**
54 54
      * Uninstall the plugin
55
-     * @return void
55
+     * @return boolean
56 56
      */
57 57
     public function uninstall()
58 58
     {
Please login to merge, or discard this patch.
main/inc/lib/sessionmanager.lib.php 1 patch
Doc Comments   +19 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1532,7 +1532,7 @@  discard block
 block discarded – undo
1532 1532
      * @param	array	$id_checked an array to delete sessions
1533 1533
      * @param   boolean  $from_ws optional, true if the function is called
1534 1534
      * by a webservice, false otherwise.
1535
-     * @return	void	Nothing, or false on error
1535
+     * @return	boolean	Nothing, or false on error
1536 1536
      * */
1537 1537
     public static function delete($id_checked, $from_ws = false)
1538 1538
     {
@@ -1669,7 +1669,7 @@  discard block
 block discarded – undo
1669 1669
      * @param array $user_list
1670 1670
      * @param int $session_visibility
1671 1671
      * @param bool $empty_users
1672
-     * @return bool
1672
+     * @return false|null
1673 1673
      */
1674 1674
     public static function subscribe_users_to_session(
1675 1675
         $id_session,
@@ -1942,7 +1942,7 @@  discard block
 block discarded – undo
1942 1942
      * @param array $courseInfo
1943 1943
      * @param int $status
1944 1944
      * @param bool $updateTotal
1945
-     * @return bool
1945
+     * @return false|null
1946 1946
      */
1947 1947
     public static function removeUsersFromCourseSession(
1948 1948
         $userList,
@@ -2008,7 +2008,7 @@  discard block
 block discarded – undo
2008 2008
      * @param string $course_code
2009 2009
      * @param int $session_visibility
2010 2010
      * @param bool $removeUsersNotInList
2011
-     * @return bool
2011
+     * @return false|null
2012 2012
      */
2013 2013
     public static function subscribe_users_to_session_course(
2014 2014
         $user_list,
@@ -2192,7 +2192,7 @@  discard block
 block discarded – undo
2192 2192
      * @param	bool	$removeExistingCoursesWithUsers Whether to unsubscribe
2193 2193
      * existing courses and users (true, default) or not (false)
2194 2194
      * @param $copyEvaluation from base course to session course
2195
-     * @return	void	Nothing, or false on error
2195
+     * @return	false|null	Nothing, or false on error
2196 2196
      * */
2197 2197
     public static function add_courses_to_session(
2198 2198
         $sessionId,
@@ -2441,7 +2441,7 @@  discard block
 block discarded – undo
2441 2441
      * @param	string	$variable Field's internal variable name
2442 2442
      * @param	int		$fieldType Field's type
2443 2443
      * @param	string	$displayText Field's language var name
2444
-     * @return int     new extra field id
2444
+     * @return boolean     new extra field id
2445 2445
      */
2446 2446
     public static function create_session_extra_field($variable, $fieldType, $displayText)
2447 2447
     {
@@ -2670,7 +2670,7 @@  discard block
 block discarded – undo
2670 2670
      * @param	array	id_checked
2671 2671
      * @param	bool	include delete session
2672 2672
      * @param	bool	optional, true if the function is called by a webservice, false otherwise.
2673
-     * @return	void	Nothing, or false on error
2673
+     * @return	boolean	Nothing, or false on error
2674 2674
      * The parameters is a array to delete sessions
2675 2675
      * */
2676 2676
     public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false)
@@ -3436,8 +3436,8 @@  discard block
 block discarded – undo
3436 3436
     /**
3437 3437
      * Gets the list of courses by session filtered by access_url
3438 3438
      *
3439
-     * @param $userId
3440
-     * @param $sessionId
3439
+     * @param integer $userId
3440
+     * @param null|integer $sessionId
3441 3441
      * @param null $from
3442 3442
      * @param null $limit
3443 3443
      * @param null $column
@@ -3562,6 +3562,7 @@  discard block
 block discarded – undo
3562 3562
     /**
3563 3563
      * Gets the count of courses by session filtered by access_url
3564 3564
      * @param int session id
3565
+     * @param integer $session_id
3565 3566
      * @return array list of courses
3566 3567
      */
3567 3568
     public static function getCourseCountBySessionId($session_id, $keyword = null)
@@ -3820,6 +3821,7 @@  discard block
 block discarded – undo
3820 3821
      * Updates a session status
3821 3822
      * @param	int 	session id
3822 3823
      * @param	int 	status
3824
+     * @param integer $status
3823 3825
      */
3824 3826
     public static function set_session_status($session_id, $status)
3825 3827
     {
@@ -4028,7 +4030,7 @@  discard block
 block discarded – undo
4028 4030
      * Protect a session to be edited.
4029 4031
      * @param int $id
4030 4032
      * @param bool $checkSession
4031
-     * @return mixed | bool true if pass the check, api_not_allowed otherwise
4033
+     * @return boolean|null | bool true if pass the check, api_not_allowed otherwise
4032 4034
      */
4033 4035
     public static function protectSession($id, $checkSession = true)
4034 4036
     {
@@ -4136,7 +4138,7 @@  discard block
 block discarded – undo
4136 4138
 
4137 4139
     /**
4138 4140
      * @param $id
4139
-     * @return bool
4141
+     * @return null|boolean
4140 4142
      */
4141 4143
     public static function protect_teacher_session_edit($id)
4142 4144
     {
@@ -4201,7 +4203,7 @@  discard block
 block discarded – undo
4201 4203
      *  true: if the session exists it will be updated.
4202 4204
      *  false: if session exists a new session will be created adding a counter session1, session2, etc
4203 4205
      * @param int $defaultUserId
4204
-     * @param mixed $logger
4206
+     * @param Logger $logger
4205 4207
      * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will
4206 4208
      * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id')
4207 4209
      * @param string $extraFieldId
@@ -5504,7 +5506,6 @@  discard block
 block discarded – undo
5504 5506
      * @param string $lastConnectionDate
5505 5507
      * @param array $sessionIdList
5506 5508
      * @param array $studentIdList
5507
-     * @param int $userStatus STUDENT|COURSEMANAGER constants
5508 5509
      *
5509 5510
      * @return array|int
5510 5511
      */
@@ -5656,7 +5657,7 @@  discard block
 block discarded – undo
5656 5657
     /**
5657 5658
      * Get the list of course tools that have to be dealt with in case of
5658 5659
      * registering any course to a session
5659
-     * @return array The list of tools to be dealt with (literal names)
5660
+     * @return string[] The list of tools to be dealt with (literal names)
5660 5661
      */
5661 5662
     public static function getCourseToolToBeManaged()
5662 5663
     {
@@ -5670,7 +5671,7 @@  discard block
 block discarded – undo
5670 5671
      * Calls the methods bound to each tool when a course is registered into a session
5671 5672
      * @param int $sessionId
5672 5673
      * @param int $courseId
5673
-     * @return void
5674
+     * @return boolean|null
5674 5675
      */
5675 5676
     public static function installCourse($sessionId, $courseId)
5676 5677
     {
@@ -6320,6 +6321,7 @@  discard block
 block discarded – undo
6320 6321
      * @param int $categoryId The internal ID of the session category
6321 6322
      * @param string $target Value to search for in the session field values
6322 6323
      * @param array $extraFields A list of fields to be scanned and returned
6324
+     * @param DateTime $publicationDate
6323 6325
      * @return mixed
6324 6326
      */
6325 6327
     public static function getShortSessionListAndExtraByCategory(
@@ -7656,7 +7658,7 @@  discard block
 block discarded – undo
7656 7658
     /**
7657 7659
      * Get link to the admin page for this session
7658 7660
      * @param   int $id Session ID
7659
-     * @return mixed    URL to the admin page to manage the session, or false on error
7661
+     * @return false|string    URL to the admin page to manage the session, or false on error
7660 7662
      */
7661 7663
     public static function getAdminPath($id)
7662 7664
     {
@@ -7673,7 +7675,7 @@  discard block
 block discarded – undo
7673 7675
      * If a course is provided, build the link to the course
7674 7676
      * @param   int $id Session ID
7675 7677
      * @param   int $courseId Course ID (optional) in case the link has to send straight to the course
7676
-     * @return mixed    URL to the page to use the session, or false on error
7678
+     * @return false|string    URL to the page to use the session, or false on error
7677 7679
      */
7678 7680
     public static function getPath($id, $courseId = 0)
7679 7681
     {
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/Repository/SequenceRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      *
76 76
      * @param int $resourceId
77 77
      * @param int $type
78
-     * @return boolean
78
+     * @return boolean|null
79 79
      */
80 80
     public function deleteResource($resourceId, $type)
81 81
     {
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,6 +71,8 @@  discard block
 block discarded – undo
71 71
 
72 72
     /**
73 73
      * @inheritdoc
74
+     * @param string $toolbar
75
+     * @param string $prefix
74 76
      */
75 77
     public function __construct(
76 78
         $toolbar = null,
@@ -253,7 +255,7 @@  discard block
 block discarded – undo
253 255
     }
254 256
 
255 257
     /**
256
-     * @return array
258
+     * @return string[]
257 259
      */
258 260
     public function getNewPageBlock()
259 261
     {
Please login to merge, or discard this patch.
main/inc/lib/attendance.lib.php 1 patch
Doc Comments   +24 added lines, -6 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)
@@ -478,7 +480,7 @@  discard block
 block discarded – undo
478 480
 
479 481
     /**
480 482
      * Delete attendances
481
-     * @param 	int|array	$attendance_id   one or many attendances id
483
+     * @param 	integer	$attendance_id   one or many attendances id
482 484
      * @return 	int    		   affected rows
483 485
      */
484 486
     public function attendance_delete($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
     {
@@ -918,7 +921,11 @@  discard block
 block discarded – undo
918 921
      * @param   string  Event type ('locked_attendance', 'done_attendance_sheet' ...)
919 922
      * @param   int     Last edit user id
920 923
      * @param   string  Calendar datetime value (optional, when event type is 'done_attendance_sheet')
921
-     * @return  int     Affected rows
924
+     * @param integer $attendance_id
925
+     * @param string $lastedit_date
926
+     * @param string $lastedit_type
927
+     * @param integer $lastedit_user_id
928
+     * @return  false|string     Affected rows
922 929
      */
923 930
     public function save_attendance_sheet_log(
924 931
         $attendance_id,
@@ -963,6 +970,7 @@  discard block
 block discarded – undo
963 970
     /**
964 971
      * Get number of done attendances inside current sheet
965 972
      * @param	int	   attendance id
973
+     * @param integer $attendance_id
966 974
      * @return 	int	   number of done attendances
967 975
      */
968 976
     public static function get_done_attendance_calendar($attendance_id)
@@ -1198,6 +1206,7 @@  discard block
 block discarded – undo
1198 1206
     /**
1199 1207
      * Get next attendance calendar without presences (done attendances)
1200 1208
      * @param	int	attendance id
1209
+     * @param integer $attendance_id
1201 1210
      * @return 	int attendance calendar id
1202 1211
      */
1203 1212
     public function get_next_attendance_calendar_id($attendance_id)
@@ -1226,6 +1235,7 @@  discard block
 block discarded – undo
1226 1235
     /**
1227 1236
      * Get next attendance calendar datetime without presences (done attendances)
1228 1237
      * @param	int	attendance id
1238
+     * @param integer $attendance_id
1229 1239
      * @return 	int UNIX time format datetime
1230 1240
      */
1231 1241
     public function get_next_attendance_calendar_datetime($attendance_id)
@@ -1254,6 +1264,7 @@  discard block
 block discarded – undo
1254 1264
      * Get user' score from current attendance
1255 1265
      * @param	int	$user_id
1256 1266
      * @param	int $attendance_id
1267
+     * @param integer $groupId
1257 1268
      * @return	int score
1258 1269
      */
1259 1270
     public function get_user_score($user_id, $attendance_id, $groupId = null)
@@ -1301,6 +1312,7 @@  discard block
 block discarded – undo
1301 1312
     /**
1302 1313
      * Get attendance calendar data by id
1303 1314
      * @param	int	attendance calendar id
1315
+     * @param integer $calendar_id
1304 1316
      * @return	array attendance calendar data
1305 1317
      */
1306 1318
     public function get_attendance_calendar_by_id($calendar_id)
@@ -1423,6 +1435,7 @@  discard block
 block discarded – undo
1423 1435
      * Get number of attendance calendar inside current attendance
1424 1436
      * @param	int	$attendance_id
1425 1437
      * @param	int	$groupId
1438
+     * @param boolean $done_attendance
1426 1439
      * @return	int number of dates in attendance calendar
1427 1440
      */
1428 1441
     public static function get_number_of_attendance_calendar($attendance_id, $groupId = 0, $done_attendance = NULL, $userId = 0)
@@ -1648,7 +1661,6 @@  discard block
 block discarded – undo
1648 1661
     /**
1649 1662
      * @param int $calendarId
1650 1663
      * @param int $courseId
1651
-     * @param int $groupId
1652 1664
      * @return array
1653 1665
      */
1654 1666
     public function getGroupListByAttendanceCalendar($calendarId, $courseId)
@@ -1688,7 +1700,6 @@  discard block
 block discarded – undo
1688 1700
     /**
1689 1701
      * @param int $calendarId
1690 1702
      * @param int $courseId
1691
-     * @param int $groupId
1692 1703
      *
1693 1704
      * @return array
1694 1705
      */
@@ -1789,6 +1800,8 @@  discard block
 block discarded – undo
1789 1800
      * edit a datetime inside attendance calendar table
1790 1801
      * @param	int	attendance calendar id
1791 1802
      * @param	int	attendance id
1803
+     * @param integer $calendar_id
1804
+     * @param integer $attendance_id
1792 1805
      * @return	int affected rows
1793 1806
      */
1794 1807
     public function attendance_calendar_edit($calendar_id, $attendance_id)
@@ -1828,6 +1841,8 @@  discard block
 block discarded – undo
1828 1841
      * @param	int		attendance calendar id
1829 1842
      * @param	int		attendance id
1830 1843
      * @param	bool	true for removing all calendar inside current attendance, false for removing by calendar id
1844
+     * @param integer $calendar_id
1845
+     * @param integer $attendance_id
1831 1846
      * @return	int affected rows
1832 1847
      */
1833 1848
     public function attendance_calendar_delete($calendar_id, $attendance_id , $all_delete = false)
@@ -1890,6 +1905,9 @@  discard block
 block discarded – undo
1890 1905
         $this->course_id = $course_id;
1891 1906
     }
1892 1907
 
1908
+    /**
1909
+     * @param string $datetime
1910
+     */
1893 1911
     public function set_date_time($datetime)
1894 1912
     {
1895 1913
         $this->date_time = $datetime;
Please login to merge, or discard this patch.
main/survey/survey.lib.php 1 patch
Doc Comments   +19 added lines, -16 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
      */
@@ -2392,6 +2392,7 @@  discard block
 block discarded – undo
2392 2392
      * Display score data about a survey question
2393 2393
      * @param	array	Question info
2394 2394
      * @param	integer	The offset of results shown
2395
+     * @param integer $offset
2395 2396
      * @return	void 	(direct output)
2396 2397
      */
2397 2398
     public static function display_question_report_score($survey_data, $question, $offset)
@@ -3032,7 +3033,7 @@  discard block
 block discarded – undo
3032 3033
      * Quite similar to display_complete_report(), returns an HTML string
3033 3034
      * that can be used in a csv file
3034 3035
      * @todo consider merging this function with display_complete_report
3035
-     * @return	string	The contents of a csv file
3036
+     * @return	false|null	The contents of a csv file
3036 3037
      * @author Patrick Cool <[email protected]>, Ghent University
3037 3038
      * @version February 2007
3038 3039
      */
@@ -3254,7 +3255,7 @@  discard block
 block discarded – undo
3254 3255
      * @param	array	User's answers
3255 3256
      * @param 	mixed	User ID or user details as string - Used as a string in the result string
3256 3257
      * @param	boolean	Whether to display user fields or not
3257
-     * @return	string	One line of the csv file
3258
+     * @return	string[]	One line of the csv file
3258 3259
      */
3259 3260
     public static function export_complete_report_row_xls(
3260 3261
         $survey_data,
@@ -3560,6 +3561,7 @@  discard block
 block discarded – undo
3560 3561
      *
3561 3562
      * @param	integer	Survey ID
3562 3563
      * @param	integer	Question ID
3564
+     * @param integer $survey_id
3563 3565
      * @return 	Array	Array containing all answers of all users, grouped by user
3564 3566
      *
3565 3567
      * @author Patrick Cool <[email protected]>, Ghent University
@@ -3854,7 +3856,7 @@  discard block
 block discarded – undo
3854 3856
 
3855 3857
     /**
3856 3858
      * @param $params
3857
-     * @return bool|int
3859
+     * @return false|string
3858 3860
      */
3859 3861
     public static function save_invitation($params)
3860 3862
     {
@@ -3908,6 +3910,7 @@  discard block
 block discarded – undo
3908 3910
      *
3909 3911
      * @param int invitedUser - the userId (course user) or emailaddress of additional user
3910 3912
      * $param string $invitation_code - the unique invitation code for the URL
3913
+     * @param string|null $invitation_text
3911 3914
      * @return	void
3912 3915
      */
3913 3916
     public static function send_invitation_mail($invitedUser, $invitation_code, $invitation_title, $invitation_text)
@@ -4802,7 +4805,7 @@  discard block
 block discarded – undo
4802 4805
      * @author Isaac Flores Paz <[email protected]>
4803 4806
      * @param int $user_id - User ID
4804 4807
      * @param string $survey_code
4805
-     * @param int $user_id_answer - User in survey answer table (user id or anonymus)
4808
+     * @param int $user_answer - User in survey answer table (user id or anonymus)
4806 4809
      *
4807 4810
      * @return boolean
4808 4811
      */
@@ -4975,7 +4978,7 @@  discard block
 block discarded – undo
4975 4978
     /**
4976 4979
      * Check if the current survey has answers
4977 4980
      *
4978
-     * @param $surveyId
4981
+     * @param integer $surveyId
4979 4982
      * @return boolean return true if the survey has answers, false otherwise
4980 4983
      */
4981 4984
     public static function checkIfSurveyHasAnswers($surveyId)
Please login to merge, or discard this patch.
main/exercise/exercise.class.php 1 patch
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     }
354 354
 
355 355
     /**
356
-     * @return int
356
+     * @return string
357 357
      */
358 358
     public function selectPassPercentage()
359 359
     {
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
      * tells if questions are selected randomly, and if so returns the draws
463 463
      *
464 464
      * @author Olivier Brouckaert
465
-     * @return integer - 0 if not random, otherwise the draws
465
+     * @return boolean - 0 if not random, otherwise the draws
466 466
      */
467 467
     public function isRandom()
468 468
     {
@@ -2838,7 +2838,7 @@  discard block
 block discarded – undo
2838 2838
      * @param int  int lp id
2839 2839
      * @param int  int lp item id
2840 2840
      * @param int  int lp item_view id
2841
-     * @param float $weight
2841
+     * @param integer $weight
2842 2842
      * @param array question list
2843 2843
      */
2844 2844
     public function save_stat_track_exercise_info(
@@ -5246,7 +5246,7 @@  discard block
 block discarded – undo
5246 5246
      * @param int $exe_id
5247 5247
      * @param float $score
5248 5248
      * @param float $weight
5249
-     * @return bool
5249
+     * @return false|null
5250 5250
      */
5251 5251
     public function send_mail_notification_for_exam($question_list_answers, $origin, $exe_id, $score, $weight)
5252 5252
     {
@@ -5445,6 +5445,9 @@  discard block
 block discarded – undo
5445 5445
         }
5446 5446
     }
5447 5447
 
5448
+    /**
5449
+     * @param integer $exe_id
5450
+     */
5448 5451
     function send_notification_for_oral_questions($question_list_answers, $origin, $exe_id)
5449 5452
     {
5450 5453
         if (api_get_course_setting('email_alert_manager_on_new_quiz') != 1 ) {
@@ -5596,7 +5599,7 @@  discard block
 block discarded – undo
5596 5599
      * @param int     Maximum number of attempts (0 if no limit)
5597 5600
      * @param int     Feedback type
5598 5601
      * @todo this was function was added due the import exercise via CSV
5599
-     * @return    int New exercise ID
5602
+     * @return    string New exercise ID
5600 5603
      */
5601 5604
     public function createExercise(
5602 5605
         $title,
@@ -6931,7 +6934,7 @@  discard block
 block discarded – undo
6931 6934
      * @param bool $show_comment
6932 6935
      * @param null $exercise_feedback
6933 6936
      * @param bool $show_answers
6934
-     * @param null $modelType
6937
+     * @param integer $modelType
6935 6938
      * @param bool $categoryMinusOne
6936 6939
      * @return bool|null|string
6937 6940
      */
Please login to merge, or discard this patch.
main/forum/forumfunction.inc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3132,7 +3132,7 @@  discard block
 block discarded – undo
3132 3132
  * @param integer $thread_qualify
3133 3133
  * @param integer $qualify_time
3134 3134
  * @param integer $session_id
3135
- * @return array optional
3135
+ * @return string|null optional
3136 3136
  * @author Isaac Flores <[email protected]>, U.N.A.S University
3137 3137
  * @version October 2008, dokeos  1.8.6
3138 3138
  */
@@ -3952,7 +3952,7 @@  discard block
 block discarded – undo
3952 3952
 
3953 3953
 /**
3954 3954
  * This function is used to find all the information about what's new in the forum tool
3955
- * @return void
3955
+ * @return false|null
3956 3956
  *
3957 3957
  * @author Patrick Cool <[email protected]>, Ghent University
3958 3958
  * @version february 2006, dokeos 1.8
Please login to merge, or discard this patch.