Passed
Push — 1.10.x ( 266392...06c156 )
by Angel Fernando Quiroz
80:58 queued 32:34
created
main/inc/lib/message.lib.php 1 patch
Doc Comments   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -639,6 +639,8 @@  discard block
 block discarded – undo
639 639
      * @param  int	message id
640 640
      * @param  int	message user id (receiver user id or sender user id)
641 641
      * @param  int	group id (optional)
642
+     * @param integer $message_id
643
+     * @param integer $message_uid
642 644
      * @return void
643 645
      */
644 646
     public static function delete_message_attachment_file($message_id, $message_uid, $group_id = 0)
@@ -683,7 +685,7 @@  discard block
 block discarded – undo
683 685
      * update messages by user id and message id
684 686
      * @param  int		$user_id
685 687
      * @param  int		$message_id
686
-     * @return resource
688
+     * @return false|null
687 689
      */
688 690
     public static function update_message($user_id, $message_id)
689 691
     {
@@ -703,7 +705,7 @@  discard block
 block discarded – undo
703 705
      * @param int $user_id
704 706
      * @param int $message_id
705 707
      * @param string $type
706
-     * @return bool
708
+     * @return false|null
707 709
      */
708 710
     public static function update_message_status($user_id, $message_id,$type)
709 711
     {
@@ -740,6 +742,7 @@  discard block
 block discarded – undo
740 742
     /**
741 743
      * get messages by group id
742 744
      * @param  int		group id
745
+     * @param integer $group_id
743 746
      * @return array
744 747
      */
745 748
     public static function get_messages_by_group($group_id)
@@ -1477,7 +1480,7 @@  discard block
 block discarded – undo
1477 1480
      * Sort date by desc from a multi-dimensional array
1478 1481
      * @param array $array1  first array to compare
1479 1482
      * @param array $array2  second array to compare
1480
-     * @return bool
1483
+     * @return integer
1481 1484
      */
1482 1485
     public function order_desc_date($array1, $array2)
1483 1486
     {
@@ -1555,7 +1558,6 @@  discard block
 block discarded – undo
1555 1558
     /**
1556 1559
      * @param $id
1557 1560
      * @param array $params
1558
-     * @param string $display
1559 1561
      * @return string
1560 1562
      */
1561 1563
     public static function generate_invitation_form($id, $params = array())
@@ -1644,7 +1646,7 @@  discard block
 block discarded – undo
1644 1646
 
1645 1647
     /**
1646 1648
      * @param string $keyword
1647
-     * @return null|string
1649
+     * @return string
1648 1650
      */
1649 1651
     public static function outbox_display($keyword = '')
1650 1652
     {
Please login to merge, or discard this patch.
main/inc/lib/exercise_show_functions.lib.php 1 patch
Doc Comments   +37 added lines patch added patch discarded remove patch
@@ -24,6 +24,10 @@  discard block
 block discarded – undo
24 24
 	 * @param int       Question ID
25 25
      * @param int $resultsDisabled
26 26
      * @param string $originalStudentAnswer
27
+     * @param integer $feedbackType
28
+     * @param string $answer
29
+     * @param integer $id
30
+     * @param integer $questionId
27 31
 	 * @return void
28 32
 	 */
29 33
 	public static function display_fill_in_blanks_answer($feedbackType, $answer, $id, $questionId, $resultsDisabled, $originalStudentAnswer = '')
@@ -62,6 +66,10 @@  discard block
 block discarded – undo
62 66
      * @param string    Answer text
63 67
      * @param int       Exercise ID
64 68
      * @param int       Question ID
69
+     * @param integer $feedback_type
70
+     * @param string $answer
71
+     * @param integer $id
72
+     * @param integer $questionId
65 73
      * @return void
66 74
      */
67 75
     static function display_calculated_answer($feedback_type, $answer, $id, $questionId)
@@ -95,6 +103,9 @@  discard block
 block discarded – undo
95 103
 	 * @param string    Answer text
96 104
 	 * @param int       Exercise ID
97 105
 	 * @param int       Question ID
106
+	 * @param integer $feedback_type
107
+	 * @param integer $exe_id
108
+	 * @param integer $questionId
98 109
 	 * @return void
99 110
 	 */
100 111
 	static function display_free_answer($feedback_type, $answer, $exe_id, $questionId, $questionScore = null)
@@ -117,6 +128,12 @@  discard block
 block discarded – undo
117 128
         }
118 129
 	}
119 130
 
131
+	/**
132
+	 * @param integer $feedback_type
133
+	 * @param integer $id
134
+	 * @param integer $questionId
135
+	 * @param Nanogong $nano
136
+	 */
120 137
 	static function display_oral_expression_answer($feedback_type, $answer, $id, $questionId, $nano = null)
121 138
     {
122 139
         if (isset($nano)) {
@@ -234,6 +251,12 @@  discard block
 block discarded – undo
234 251
 	 * @param integer Exercise ID
235 252
 	 * @param integer Question ID
236 253
 	 * @param boolean Whether to show the answer comment or not
254
+	 * @param integer $answerType
255
+	 * @param string $answer
256
+	 * @param string $answerComment
257
+	 * @param integer $answerCorrect
258
+	 * @param integer $id
259
+	 * @param integer $questionId
237 260
 	 * @return void
238 261
 	 */
239 262
 	static function display_unique_or_multiple_answer(
@@ -318,6 +341,13 @@  discard block
 block discarded – undo
318 341
      * @param integer Exercise ID
319 342
      * @param integer Question ID
320 343
      * @param boolean Whether to show the answer comment or not
344
+     * @param integer $feedback_type
345
+     * @param integer $answerType
346
+     * @param string $answer
347
+     * @param string $answerComment
348
+     * @param integer $answerCorrect
349
+     * @param integer $id
350
+     * @param integer $questionId
321 351
      * @return void
322 352
      */
323 353
     static function display_multiple_answer_true_false(
@@ -408,6 +438,13 @@  discard block
 block discarded – undo
408 438
      * @param integer Exercise ID
409 439
      * @param integer Question ID
410 440
      * @param boolean Whether to show the answer comment or not
441
+     * @param integer $feedback_type
442
+     * @param integer $answerType
443
+     * @param string $answer
444
+     * @param string $answerComment
445
+     * @param integer $answerCorrect
446
+     * @param integer $id
447
+     * @param integer $questionId
411 448
      * @return void
412 449
      */
413 450
     static function display_multiple_answer_combination_true_false(
Please login to merge, or discard this patch.
main/inc/lib/agenda.lib.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
      * @param string $color
566 566
      * @param bool $addAnnouncement
567 567
      *
568
-     * @return bool
568
+     * @return null|false
569 569
      */
570 570
     public function editEvent(
571 571
         $id,
@@ -1308,6 +1308,7 @@  discard block
 block discarded – undo
1308 1308
      *
1309 1309
      * @param int $eventId
1310 1310
      * @param int $courseId
1311
+     * @param integer $sessionId
1311 1312
      * @paraù int $sessionId
1312 1313
      *
1313 1314
      * @return array
@@ -2469,6 +2470,7 @@  discard block
 block discarded – undo
2469 2470
      * Adds x weeks to a UNIX timestamp
2470 2471
      * @param   int     The timestamp
2471 2472
      * @param   int     The number of weeks to add
2473
+     * @param integer $timestamp
2472 2474
      * @return  int     The new timestamp
2473 2475
      */
2474 2476
     function addWeek($timestamp, $num = 1)
@@ -2480,6 +2482,7 @@  discard block
 block discarded – undo
2480 2482
      * Adds x months to a UNIX timestamp
2481 2483
      * @param   int     The timestamp
2482 2484
      * @param   int     The number of years to add
2485
+     * @param integer $timestamp
2483 2486
      * @return  int     The new timestamp
2484 2487
      */
2485 2488
     function addMonth($timestamp, $num = 1)
@@ -2498,6 +2501,7 @@  discard block
 block discarded – undo
2498 2501
      * Adds x years to a UNIX timestamp
2499 2502
      * @param   int     The timestamp
2500 2503
      * @param   int     The number of years to add
2504
+     * @param integer $timestamp
2501 2505
      * @return  int     The new timestamp
2502 2506
      */
2503 2507
     function addYear($timestamp, $num = 1)
@@ -2697,7 +2701,7 @@  discard block
 block discarded – undo
2697 2701
     /**
2698 2702
      * @param array $courseInfo
2699 2703
      * @param $file
2700
-     * @return array|bool|string
2704
+     * @return false|string
2701 2705
      */
2702 2706
     public function importEventFile($courseInfo, $file)
2703 2707
     {
@@ -2810,7 +2814,7 @@  discard block
 block discarded – undo
2810 2814
 
2811 2815
     /**
2812 2816
      * Parse filter turns USER:12 to ['users' => [12])] or G:1 ['groups' => [1]]
2813
-     * @param $filter
2817
+     * @param integer $filter
2814 2818
      * @return array
2815 2819
      */
2816 2820
     public function parseAgendaFilter($filter)
@@ -3324,6 +3328,7 @@  discard block
 block discarded – undo
3324 3328
      * @param	int		user ID of the user
3325 3329
      * @param	string	Optional start date in datetime format (if no start date is given, uses today)
3326 3330
      * @param	string	Optional end date in datetime format (if no date is given, uses one year from now)
3331
+     * @param integer $user_id
3327 3332
      * @return	array	Array of events ordered by start date, in
3328 3333
      * [0]('datestart','dateend','title'),[1]('datestart','dateend','title','link','coursetitle') format,
3329 3334
      * where datestart and dateend are in yyyyMMddhhmmss format.
Please login to merge, or discard this patch.
main/inc/lib/sessionmanager.lib.php 1 patch
Doc Comments   +24 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1336,9 +1336,9 @@  discard block
 block discarded – undo
1336 1336
      * @param integer   $sessionCategoryId
1337 1337
      * @param int       $visibility
1338 1338
      * @param string    $description
1339
-     * @param bool      $showDescription
1339
+     * @param integer      $showDescription
1340 1340
      * @param int       $duration
1341
-     * @param array     $extraFields
1341
+     * @param boolean|null     $extraFields
1342 1342
      * @param int       $sessionAdminId
1343 1343
      * @param boolean $sendSubscriptionNotification Optional.
1344 1344
      *          Whether send a mail notification to users being subscribed
@@ -1558,7 +1558,7 @@  discard block
 block discarded – undo
1558 1558
      * @param array $user_list
1559 1559
      * @param int $session_visibility
1560 1560
      * @param bool $empty_users
1561
-     * @return bool
1561
+     * @return false|null
1562 1562
      */
1563 1563
     public static function suscribe_users_to_session(
1564 1564
         $id_session,
@@ -1830,7 +1830,7 @@  discard block
 block discarded – undo
1830 1830
      * @param array $courseInfo
1831 1831
      * @param int $status
1832 1832
      * @param bool $updateTotal
1833
-     * @return bool
1833
+     * @return false|null
1834 1834
      */
1835 1835
     public static function removeUsersFromCourseSession(
1836 1836
         $userList,
@@ -1896,7 +1896,7 @@  discard block
 block discarded – undo
1896 1896
      * @param string $course_code
1897 1897
      * @param int $session_visibility
1898 1898
      * @param bool $removeUsersNotInList
1899
-     * @return bool
1899
+     * @return false|null
1900 1900
      */
1901 1901
     public static function subscribe_users_to_session_course(
1902 1902
         $user_list,
@@ -2079,7 +2079,7 @@  discard block
 block discarded – undo
2079 2079
      * @param	bool	$removeExistingCoursesWithUsers Whether to unsubscribe
2080 2080
      * existing courses and users (true, default) or not (false)
2081 2081
      * @param $copyEvaluation from base course to session course
2082
-     * @return	void	Nothing, or false on error
2082
+     * @return	false|null	Nothing, or false on error
2083 2083
      * */
2084 2084
     public static function add_courses_to_session(
2085 2085
         $sessionId,
@@ -2275,6 +2275,8 @@  discard block
 block discarded – undo
2275 2275
      *
2276 2276
      * @param int Session id
2277 2277
      * @param int Course id
2278
+     * @param integer $session_id
2279
+     * @param integer $course_id
2278 2280
      * @return bool True in case of success, false otherwise
2279 2281
      */
2280 2282
     public static function unsubscribe_course_from_session($session_id, $course_id)
@@ -2330,7 +2332,7 @@  discard block
 block discarded – undo
2330 2332
      * @param	string	$variable Field's internal variable name
2331 2333
      * @param	int		$fieldType Field's type
2332 2334
      * @param	string	$displayText Field's language var name
2333
-     * @return int     new extra field id
2335
+     * @return boolean     new extra field id
2334 2336
      */
2335 2337
     public static function create_session_extra_field($variable, $fieldType, $displayText)
2336 2338
     {
@@ -2349,7 +2351,7 @@  discard block
 block discarded – undo
2349 2351
      * @param	integer	Course ID
2350 2352
      * @param	string	Field variable name
2351 2353
      * @param	string	Field value
2352
-     * @return	boolean	true if field updated, false otherwise
2354
+     * @return	boolean|null	true if field updated, false otherwise
2353 2355
      */
2354 2356
     public static function update_session_extra_field_value($sessionId, $variable, $value = '')
2355 2357
     {
@@ -2554,7 +2556,7 @@  discard block
 block discarded – undo
2554 2556
      * @param	array	id_checked
2555 2557
      * @param	bool	include delete session
2556 2558
      * @param	bool	optional, true if the function is called by a webservice, false otherwise.
2557
-     * @return	void	Nothing, or false on error
2559
+     * @return	boolean	Nothing, or false on error
2558 2560
      * The parameters is a array to delete sessions
2559 2561
      * */
2560 2562
     public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false)
@@ -3049,6 +3051,7 @@  discard block
 block discarded – undo
3049 3051
      * @param string $orderCondition
3050 3052
      * @param string $keyword
3051 3053
      * @param string $description
3054
+     * @param integer $status
3052 3055
      * @return array sessions
3053 3056
      */
3054 3057
     public static function getSessionsFollowedByUser(
@@ -3261,8 +3264,8 @@  discard block
 block discarded – undo
3261 3264
     /**
3262 3265
      * Gets the list of courses by session filtered by access_url
3263 3266
      *
3264
-     * @param $userId
3265
-     * @param $sessionId
3267
+     * @param integer $userId
3268
+     * @param null|integer $sessionId
3266 3269
      * @param null $from
3267 3270
      * @param null $limit
3268 3271
      * @param null $column
@@ -3387,6 +3390,7 @@  discard block
 block discarded – undo
3387 3390
     /**
3388 3391
      * Gets the count of courses by session filtered by access_url
3389 3392
      * @param int session id
3393
+     * @param integer $session_id
3390 3394
      * @return array list of courses
3391 3395
      */
3392 3396
     public static function getCourseCountBySessionId($session_id, $keyword = null)
@@ -3638,6 +3642,7 @@  discard block
 block discarded – undo
3638 3642
      * Updates a session status
3639 3643
      * @param	int 	session id
3640 3644
      * @param	int 	status
3645
+     * @param integer $status
3641 3646
      */
3642 3647
     public static function set_session_status($session_id, $status)
3643 3648
     {
@@ -3949,7 +3954,7 @@  discard block
 block discarded – undo
3949 3954
 
3950 3955
     /**
3951 3956
      * @param $id
3952
-     * @return bool
3957
+     * @return null|boolean
3953 3958
      */
3954 3959
     public static function protect_teacher_session_edit($id)
3955 3960
     {
@@ -4013,7 +4018,7 @@  discard block
 block discarded – undo
4013 4018
      *  true: if the session exists it will be updated.
4014 4019
      *  false: if session exists a new session will be created adding a counter session1, session2, etc
4015 4020
      * @param int $defaultUserId
4016
-     * @param mixed $logger
4021
+     * @param Logger $logger
4017 4022
      * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will
4018 4023
      * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id')
4019 4024
      * @param string $extraFieldId
@@ -5255,7 +5260,6 @@  discard block
 block discarded – undo
5255 5260
      * @param string $lastConnectionDate
5256 5261
      * @param array $sessionIdList
5257 5262
      * @param array $studentIdList
5258
-     * @param int $userStatus STUDENT|COURSEMANAGER constants
5259 5263
      *
5260 5264
      * @return array|int
5261 5265
      */
@@ -5407,7 +5411,7 @@  discard block
 block discarded – undo
5407 5411
     /**
5408 5412
      * Get the list of course tools that have to be dealt with in case of
5409 5413
      * registering any course to a session
5410
-     * @return array The list of tools to be dealt with (literal names)
5414
+     * @return string[] The list of tools to be dealt with (literal names)
5411 5415
      */
5412 5416
     public static function getCourseToolToBeManaged()
5413 5417
     {
@@ -5421,7 +5425,7 @@  discard block
 block discarded – undo
5421 5425
      * Calls the methods bound to each tool when a course is registered into a session
5422 5426
      * @param int $sessionId
5423 5427
      * @param int $courseId
5424
-     * @return void
5428
+     * @return boolean|null
5425 5429
      */
5426 5430
     public static function installCourse($sessionId, $courseId)
5427 5431
     {
@@ -6061,6 +6065,7 @@  discard block
 block discarded – undo
6061 6065
      * @param int $categoryId The internal ID of the session category
6062 6066
      * @param string $target Value to search for in the session field values
6063 6067
      * @param array $extraFields A list of fields to be scanned and returned
6068
+     * @param DateTime $publicationDate
6064 6069
      * @return mixed
6065 6070
      */
6066 6071
     public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null)
@@ -7390,7 +7395,7 @@  discard block
 block discarded – undo
7390 7395
     /**
7391 7396
      * Get link to the admin page for this session
7392 7397
      * @param   int $id Session ID
7393
-     * @return mixed    URL to the admin page to manage the session, or false on error
7398
+     * @return false|string    URL to the admin page to manage the session, or false on error
7394 7399
      */
7395 7400
     public static function getAdminPath($id)
7396 7401
     {
@@ -7407,7 +7412,7 @@  discard block
 block discarded – undo
7407 7412
      * If a course is provided, build the link to the course
7408 7413
      * @param   int $id Session ID
7409 7414
      * @param   int $courseId Course ID (optional) in case the link has to send straight to the course
7410
-     * @return mixed    URL to the page to use the session, or false on error
7415
+     * @return false|string    URL to the page to use the session, or false on error
7411 7416
      */
7412 7417
     public static function getPath($id, $courseId = 0)
7413 7418
     {
@@ -7505,7 +7510,7 @@  discard block
 block discarded – undo
7505 7510
     /**
7506 7511
      * Return true if coach is allowed to access this session
7507 7512
      * @param int $sessionId
7508
-     * @return bool
7513
+     * @return integer
7509 7514
      */
7510 7515
     public static function isSessionDateOkForCoach($sessionId)
7511 7516
     {
Please login to merge, or discard this patch.
main/newscorm/learnpath.class.php 1 patch
Doc Comments   +29 added lines, -24 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @param	string	$course Course code
85 85
      * @param	integer	$lp_id
86 86
      * @param	integer	$user_id
87
-     * @return mixed True on success, false on error
87
+     * @return boolean True on success, false on error
88 88
      */
89 89
     public function __construct($course, $lp_id, $user_id)
90 90
     {
@@ -484,8 +484,9 @@  discard block
 block discarded – undo
484 484
      * @param int $prerequisites
485 485
      * @param int $max_time_allowed
486 486
      * @param int $userId
487
+     * @param string $id
487 488
      *
488
-     * @return int
489
+     * @return false|string
489 490
      */
490 491
     public function add_item(
491 492
         $parent,
@@ -1036,7 +1037,7 @@  discard block
 block discarded – undo
1036 1037
      * @param	array $courseInfo
1037 1038
      * @param	integer	Learnpath ID
1038 1039
      * @param	string	Whether to delete data or keep it (default: 'keep', others: 'remove')
1039
-     * @return	boolean	True on success, false on failure (might change that to return number of elements deleted)
1040
+     * @return	false|null	True on success, false on failure (might change that to return number of elements deleted)
1040 1041
      */
1041 1042
     public function delete($courseInfo = null, $id = null, $delete = 'keep')
1042 1043
     {
@@ -1170,7 +1171,7 @@  discard block
 block discarded – undo
1170 1171
      * @param	integer	$id Elem ID (0 if first)
1171 1172
      * @param	integer	$remove Whether to remove the resource/data from the
1172 1173
      * system or leave it (default: 'keep', others 'remove')
1173
-     * @return	integer	Number of elements moved
1174
+     * @return	false|null	Number of elements moved
1174 1175
      * @todo implement resource removal
1175 1176
      */
1176 1177
     public function delete_item($id, $remove = 'keep')
@@ -1252,7 +1253,7 @@  discard block
 block discarded – undo
1252 1253
      * @param   array   $audio The array resulting of the $_FILES[mp3] element
1253 1254
      * @param   int     $max_time_allowed
1254 1255
      * @param   string  $url
1255
-     * @return  boolean True on success, false on error
1256
+     * @return  false|null True on success, false on error
1256 1257
      */
1257 1258
     public function edit_item(
1258 1259
         $id,
@@ -1775,7 +1776,7 @@  discard block
 block discarded – undo
1775 1776
 
1776 1777
     /**
1777 1778
      * Gets the first element URL.
1778
-     * @return	string	URL to load into the viewer
1779
+     * @return	false|null	URL to load into the viewer
1779 1780
      */
1780 1781
     public function first()
1781 1782
     {
@@ -2291,6 +2292,7 @@  discard block
 block discarded – undo
2291 2292
      * @param int $student_id
2292 2293
      * @param string Course code (optional)
2293 2294
      * @param int $sessionId
2295
+     * @param string $courseCode
2294 2296
      * @return	bool
2295 2297
      */
2296 2298
     public static function is_lp_visible_for_student(
@@ -2590,7 +2592,7 @@  discard block
 block discarded – undo
2590 2592
 
2591 2593
     /**
2592 2594
      * Gets the learnpath session id
2593
-     * @return	string	Learnpath theme
2595
+     * @return	integer	Learnpath theme
2594 2596
      */
2595 2597
     public function get_lp_session_id()
2596 2598
     {
@@ -2623,7 +2625,7 @@  discard block
 block discarded – undo
2623 2625
     /**
2624 2626
      * @param string $size
2625 2627
      * @param string $path_type
2626
-     * @return bool|string
2628
+     * @return string|false
2627 2629
      */
2628 2630
     public function get_preview_image_path($size = null, $path_type = 'web')
2629 2631
     {
@@ -2769,6 +2771,8 @@  discard block
 block discarded – undo
2769 2771
      * Returns the XML DOM document's node
2770 2772
      * @param	resource	Reference to a list of objects to search for the given ITEM_*
2771 2773
      * @param	string		The identifier to look for
2774
+     * @param DOMNodeList $children
2775
+     * @param string $id
2772 2776
      * @return	mixed		The reference to the element found with that identifier. False if not found
2773 2777
      */
2774 2778
     public function get_scorm_xml_node(& $children, $id)
@@ -3016,7 +3020,7 @@  discard block
 block discarded – undo
3016 3020
     /**
3017 3021
      * Generate and return the table of contents for this learnpath. The (flat) table returned can be
3018 3022
      * used by get_html_toc() to be ready to display
3019
-     * @return	array	TOC as a table with 4 elements per row: title, link, status and level
3023
+     * @return	boolean	TOC as a table with 4 elements per row: title, link, status and level
3020 3024
      */
3021 3025
     public function get_toc()
3022 3026
     {
@@ -3152,7 +3156,7 @@  discard block
 block discarded – undo
3152 3156
     }
3153 3157
 
3154 3158
     /**
3155
-     * @return array
3159
+     * @return string[]
3156 3160
      */
3157 3161
     public static function getChapterTypes()
3158 3162
     {
@@ -4054,7 +4058,7 @@  discard block
 block discarded – undo
4054 4058
      * Open a resource = initialise all local variables relative to this resource. Depending on the child
4055 4059
      * class, this might be redefined to allow several behaviours depending on the document type.
4056 4060
      * @param integer Resource ID
4057
-     * @return boolean True on success, false otherwise
4061
+     * @return boolean|null True on success, false otherwise
4058 4062
      */
4059 4063
     public function open($id)
4060 4064
     {
@@ -4183,7 +4187,7 @@  discard block
 block discarded – undo
4183 4187
      * Can be used as abstract
4184 4188
      * @param	integer	$lp_id Learnpath id
4185 4189
      * @param	string	$set_visibility New visibility (v/i - visible/invisible)
4186
-     * @return bool
4190
+     * @return false|null
4187 4191
      */
4188 4192
     public static function toggle_publish($lp_id, $set_visibility = 'v')
4189 4193
     {
@@ -4268,7 +4272,7 @@  discard block
 block discarded – undo
4268 4272
      * Make sure the results are saved with anoter method. This method should probably be
4269 4273
      * redefined in children classes.
4270 4274
      * To use a similar method  statically, use the create_new_attempt() method
4271
-     * @return string URL to load in the viewer
4275
+     * @return boolean URL to load in the viewer
4272 4276
      */
4273 4277
     public function restart()
4274 4278
     {
@@ -4346,6 +4350,7 @@  discard block
 block discarded – undo
4346 4350
      * Saves the given item
4347 4351
      * @param	integer	$item_id. Optional (will take from $_REQUEST if null)
4348 4352
      * @param	boolean	$from_outside Save from url params (true) or from current attributes (false). Optional. Defaults to true
4353
+     * @param integer $item_id
4349 4354
      * @return	boolean
4350 4355
      */
4351 4356
     public function save_item($item_id = null, $from_outside = true)
@@ -4843,7 +4848,7 @@  discard block
 block discarded – undo
4843 4848
 
4844 4849
     /**
4845 4850
      * Sets use_max_score
4846
-     * @param   string  $use_max_score Optional string giving the new location of this learnpath
4851
+     * @param   integer  $use_max_score Optional string giving the new location of this learnpath
4847 4852
      * @return  boolean True on success / False on error
4848 4853
      */
4849 4854
     public function set_use_max_score($use_max_score = 1)
@@ -5244,6 +5249,7 @@  discard block
 block discarded – undo
5244 5249
      * Register the attempt mode into db thanks to flags prevent_reinit and seriousgame_mode flags
5245 5250
      *
5246 5251
      * @param string 'seriousgame', 'single' or 'multiple'
5252
+     * @param string $mode
5247 5253
      * @return boolean
5248 5254
      * @author ndiechburg <[email protected]>
5249 5255
      **/
@@ -5286,7 +5292,7 @@  discard block
 block discarded – undo
5286 5292
     /**
5287 5293
      * Switch between multiple attempt, single attempt or serious_game mode (only for scorm)
5288 5294
      *
5289
-     * @return boolean
5295
+     * @return boolean|null
5290 5296
      * @author ndiechburg <[email protected]>
5291 5297
      **/
5292 5298
     public function switch_attempt_mode()
@@ -5477,7 +5483,6 @@  discard block
 block discarded – undo
5477 5483
     /**
5478 5484
      * Function that creates a html list of learning path items so that we can add audio files to them
5479 5485
      * @author Kevin Van Den Haute
5480
-     * @param int $lp_id
5481 5486
      * @return string
5482 5487
      */
5483 5488
     public function overview()
@@ -5838,7 +5843,7 @@  discard block
 block discarded – undo
5838 5843
     /**
5839 5844
      * This function builds the action menu
5840 5845
      * @param bool $returnContent
5841
-     * @return void
5846
+     * @return string|null
5842 5847
      */
5843 5848
     public function build_action_menu($returnContent = false)
5844 5849
     {
@@ -6335,7 +6340,7 @@  discard block
 block discarded – undo
6335 6340
     /**
6336 6341
      * Function that displays a list with al the resources that
6337 6342
      * could be added to the learning path
6338
-     * @return string
6343
+     * @return boolean
6339 6344
      */
6340 6345
     public function display_resources()
6341 6346
     {
@@ -8779,7 +8784,7 @@  discard block
 block discarded – undo
8779 8784
 
8780 8785
     /**
8781 8786
      * Creates a list with all the student publications in it
8782
-     * @return unknown
8787
+     * @return string
8783 8788
      */
8784 8789
     public function get_student_publications()
8785 8790
     {
@@ -9723,7 +9728,7 @@  discard block
 block discarded – undo
9723 9728
 
9724 9729
     /**
9725 9730
      * @param int $lp_id
9726
-     * @return bool
9731
+     * @return false|null
9727 9732
      */
9728 9733
     public function scorm_export_to_pdf($lp_id)
9729 9734
     {
@@ -10240,6 +10245,7 @@  discard block
 block discarded – undo
10240 10245
     }
10241 10246
 
10242 10247
     /**
10248
+     * @param string $courseCode
10243 10249
      * @return \learnpath
10244 10250
      */
10245 10251
     public static function getLpFromSession($courseCode, $lp_id, $user_id)
@@ -10259,7 +10265,7 @@  discard block
 block discarded – undo
10259 10265
 
10260 10266
     /**
10261 10267
      * @param int $itemId
10262
-     * @return learnpathItem|false
10268
+     * @return string
10263 10269
      */
10264 10270
     public function getItem($itemId)
10265 10271
     {
@@ -10309,7 +10315,6 @@  discard block
 block discarded – undo
10309 10315
     /**
10310 10316
      * Set whether this is a learning path with the possibility to subscribe
10311 10317
      * users or not
10312
-     * @param int $subscribeUsers (0 = false, 1 = true)
10313 10318
      */
10314 10319
     public function setSubscribeUsers($value)
10315 10320
     {
@@ -10434,7 +10439,7 @@  discard block
 block discarded – undo
10434 10439
 
10435 10440
     /**
10436 10441
      * Get the item of exercise type (evaluation type)
10437
-     * @return array The final evaluation. Otherwise return false
10442
+     * @return integer The final evaluation. Otherwise return false
10438 10443
      */
10439 10444
     public function getFinalEvaluationItem()
10440 10445
     {
@@ -10658,7 +10663,7 @@  discard block
 block discarded – undo
10658 10663
     /**
10659 10664
      * Create a forum for this learning path
10660 10665
      * @param type $forumCategoryId
10661
-     * @return int The forum ID if was created. Otherwise return false
10666
+     * @return false|string The forum ID if was created. Otherwise return false
10662 10667
      */
10663 10668
     public function createForum($forumCategoryId)
10664 10669
     {
Please login to merge, or discard this patch.
main/inc/lib/blog.lib.php 1 patch
Doc Comments   +7 added lines, -11 removed lines patch added patch discarded remove patch
@@ -96,9 +96,7 @@  discard block
 block discarded – undo
96 96
 	/**
97 97
 	 * Creates a new blog in the given course
98 98
 	 * @author Toon Keppens
99
-	 * @param int $course_id Id
100 99
 	 * @param string $title
101
-	 * @param Text $description
102 100
 	 */
103 101
 	public static function create_blog($title, $subtitle)
104 102
 	{
@@ -185,9 +183,7 @@  discard block
 block discarded – undo
185 183
 	/**
186 184
 	 * Update title and subtitle of a blog in the given course
187 185
 	 * @author Toon Keppens
188
-	 * @param int $course_id Id
189 186
 	 * @param string $title
190
-	 * @param string $description
191 187
 	 */
192 188
 	public static function edit_blog($blog_id, $title, $subtitle)
193 189
 	{
@@ -711,7 +707,6 @@  discard block
 block discarded – undo
711 707
 	/**
712 708
 	 * Deletes an assigned task from a blog
713 709
 	 * @param Integer $blog_id
714
-	 * @param Integer $assignment_id
715 710
 	 */
716 711
 	public static function delete_assigned_task($blog_id, $task_id, $user_id)
717 712
 	{
@@ -1129,9 +1124,7 @@  discard block
 block discarded – undo
1129 1124
 	 *
1130 1125
 	 * @param String $type
1131 1126
 	 * @param Integer $blog_id
1132
-	 * @param Integer $item_id
1133
-	 *
1134
-	 *@return String
1127
+	 * @param integer $post_id
1135 1128
 	 */
1136 1129
 	public static function display_rating_form ($type, $blog_id, $post_id, $comment_id = NULL)
1137 1130
 	{
@@ -2136,7 +2129,7 @@  discard block
 block discarded – undo
2136 2129
 	 *
2137 2130
 	 * @param Integer $blog_id
2138 2131
 	 *
2139
-	 * @return Html Form with sortable table with users to unsubcribe from a blog.
2132
+	 * @return false|null Form with sortable table with users to unsubcribe from a blog.
2140 2133
 	 */
2141 2134
 	public static function display_form_user_unsubscribe ($blog_id)
2142 2135
 	{
@@ -2257,6 +2250,7 @@  discard block
 block discarded – undo
2257 2250
 	 * @author Toon Keppens
2258 2251
 	 *
2259 2252
 	 * @param Integer $blog_id
2253
+	 * @param integer $post_id
2260 2254
 	 */
2261 2255
 	public static function display_new_comment_form($blog_id, $post_id, $title)
2262 2256
 	{
@@ -2305,10 +2299,8 @@  discard block
 block discarded – undo
2305 2299
 	 * @author Patrick Cool
2306 2300
 	 * @author Toon Keppens
2307 2301
 	 *
2308
-	 * @param Array $blogitems an array containing all the blog items for the given month
2309 2302
 	 * @param Integer $month: the integer value of the month we are viewing
2310 2303
 	 * @param Integer $year: the 4-digit year indication e.g. 2005
2311
-	 * @param String $monthName: the language variable for the mont name
2312 2304
 	 *
2313 2305
 	 * @return html code
2314 2306
 	*/
@@ -2597,6 +2589,7 @@  discard block
 block discarded – undo
2597 2589
  * @param the blog's id
2598 2590
  * @param the post's id
2599 2591
  * @param the comment's id
2592
+ * @param integer $blog_id
2600 2593
  * @return array with the post info according the parameters
2601 2594
  * @author Julio Montoya Dokeos
2602 2595
  * @version avril 2008, dokeos 1.8.5
@@ -2638,6 +2631,9 @@  discard block
 block discarded – undo
2638 2631
  * @param the blog's id
2639 2632
  * @param the post's id
2640 2633
  * @param the comment's id
2634
+ * @param integer $blog_id
2635
+ * @param integer $post_id
2636
+ * @param integer $comment_id
2641 2637
  * @author Julio Montoya Dokeos
2642 2638
  * @version avril 2008, dokeos 1.8.5
2643 2639
  */
Please login to merge, or discard this patch.
main/exercice/answer.class.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -186,6 +186,7 @@  discard block
 block discarded – undo
186 186
      * Reads answer information from the data base ordered by parameter
187 187
      * @param	string	Field we want to order by
188 188
      * @param	string	DESC or ASC
189
+     * @param string $field
189 190
      * @author 	Frederic Vauthier
190 191
      */
191 192
     public function readOrderedBy($field, $order='ASC')
@@ -304,6 +305,7 @@  discard block
 block discarded – undo
304 305
 	 * returns the question ID of the destination question
305 306
 	 *
306 307
 	 * @author Julio Montoya
308
+	 * @param integer $id
307 309
 	 * @return integer - the question ID
308 310
 	 */
309 311
 	public function selectDestination($id)
@@ -325,6 +327,7 @@  discard block
 block discarded – undo
325 327
 
326 328
 	/**
327 329
 	 * return array answer by id else return a bool
330
+	 * @param integer $auto_id
328 331
 	 */
329 332
 	public function selectAnswerByAutoId($auto_id)
330 333
 	{
@@ -463,6 +466,7 @@  discard block
 block discarded – undo
463 466
 	 *
464 467
 	 * @author Olivier Brouckaert
465 468
 	 * @param - integer $id - answer ID
469
+	 * @param integer $id
466 470
 	 * @return integer - answer weighting
467 471
 	 */
468 472
     public function selectWeighting($id)
@@ -487,6 +491,7 @@  discard block
 block discarded – undo
487 491
 	 *
488 492
 	 * @author	Olivier Brouckaert
489 493
 	 * @param	integer	Answer ID
494
+	 * @param integer $id
490 495
 	 * @return	integer	Answer position
491 496
 	 */
492 497
     public function selectHotspotCoordinates($id)
@@ -499,6 +504,7 @@  discard block
 block discarded – undo
499 504
 	 *
500 505
 	 * @author	Toon Keppens
501 506
 	 * @param	integer		Answer ID
507
+	 * @param integer $id
502 508
 	 * @return	integer		Answer position
503 509
 	 */
504 510
     public function selectHotspotType($id)
@@ -554,6 +560,7 @@  discard block
 block discarded – undo
554 560
      * @param string $destination
555 561
      * @param string $hotspot_coordinates
556 562
      * @param string $hotspot_type
563
+     * @param integer $autoId
557 564
      */
558 565
     public function updateAnswers(
559 566
         $autoId,
@@ -724,6 +731,7 @@  discard block
 block discarded – undo
724 731
 	 * @author Olivier Brouckaert
725 732
 	 * @param  int question id
726 733
      * @param  array destination course info (result of the function api_get_course_info() )
734
+     * @param string $newQuestionId
727 735
 	 */
728 736
     public function duplicate($newQuestionId, $course_info = null)
729 737
     {
Please login to merge, or discard this patch.
main/exercice/exercise.class.php 1 patch
Doc Comments   +13 added lines, -8 removed lines patch added patch discarded remove patch
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
     }
355 355
 
356 356
     /**
357
-     * @return int
357
+     * @return string
358 358
      */
359 359
     public function selectPassPercentage()
360 360
     {
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
      * tells if questions are selected randomly, and if so returns the draws
474 474
      *
475 475
      * @author Olivier Brouckaert
476
-     * @return integer - 0 if not random, otherwise the draws
476
+     * @return boolean - 0 if not random, otherwise the draws
477 477
      */
478 478
     public function isRandom()
479 479
     {
@@ -2830,7 +2830,7 @@  discard block
 block discarded – undo
2830 2830
      * @param int  int lp id
2831 2831
      * @param int  int lp item id
2832 2832
      * @param int  int lp item_view id
2833
-     * @param float $weight
2833
+     * @param integer $weight
2834 2834
      * @param array question list
2835 2835
      */
2836 2836
     public function save_stat_track_exercise_info(
@@ -5118,6 +5118,7 @@  discard block
 block discarded – undo
5118 5118
     /**
5119 5119
      * Sends a notification when a user ends an examn
5120 5120
      *
5121
+     * @param integer $exe_id
5121 5122
      */
5122 5123
     public function send_mail_notification_for_exam($question_list_answers, $origin, $exe_id)
5123 5124
     {
@@ -5198,6 +5199,7 @@  discard block
 block discarded – undo
5198 5199
     /**
5199 5200
      * Sends a notification when a user ends an examn
5200 5201
      *
5202
+     * @param integer $exe_id
5201 5203
      */
5202 5204
     function send_notification_for_open_questions($question_list_answers, $origin, $exe_id)
5203 5205
     {
@@ -5295,6 +5297,9 @@  discard block
 block discarded – undo
5295 5297
         }
5296 5298
     }
5297 5299
 
5300
+    /**
5301
+     * @param integer $exe_id
5302
+     */
5298 5303
     function send_notification_for_oral_questions($question_list_answers, $origin, $exe_id)
5299 5304
     {
5300 5305
         if (api_get_course_setting('email_alert_manager_on_new_quiz') != 1 ) {
@@ -5388,7 +5393,7 @@  discard block
 block discarded – undo
5388 5393
 
5389 5394
     /**
5390 5395
      * @param array $user_data result of api_get_user_info()
5391
-     * @param null $start_date
5396
+     * @param string $start_date
5392 5397
      * @param null $duration
5393 5398
      * @param string $ip Optional. The user IP
5394 5399
      * @return string
@@ -5446,7 +5451,7 @@  discard block
 block discarded – undo
5446 5451
      * @param int     Maximum number of attempts (0 if no limit)
5447 5452
      * @param int     Feedback type
5448 5453
      * @todo this was function was added due the import exercise via CSV
5449
-     * @return    int New exercise ID
5454
+     * @return    string New exercise ID
5450 5455
      */
5451 5456
     public function createExercise(
5452 5457
         $title,
@@ -6795,7 +6800,7 @@  discard block
 block discarded – undo
6795 6800
      * @param bool $show_comment
6796 6801
      * @param null $exercise_feedback
6797 6802
      * @param bool $show_answers
6798
-     * @param null $modelType
6803
+     * @param integer $modelType
6799 6804
      * @param bool $categoryMinusOne
6800 6805
      * @return bool|null|string
6801 6806
      */
@@ -7956,8 +7961,8 @@  discard block
 block discarded – undo
7956 7961
     /**
7957 7962
      * Returns an HTML ribbon to show on top of the exercise result, with
7958 7963
      * colouring depending on the success or failure of the student
7959
-     * @param $score
7960
-     * @param $weight
7964
+     * @param integer $score
7965
+     * @param integer $weight
7961 7966
      * @param bool $check_pass_percentage
7962 7967
      * @return string
7963 7968
      */
Please login to merge, or discard this patch.
main/exercice/TestCategory.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 	 * Return the list of differents categories NAME for a test
368 368
 	 * @param int exercise id
369 369
 	 * @param bool
370
-	 * @return array of string
370
+	 * @return integer of string
371 371
 	 *
372 372
      * @author function rewrote by jmontoya
373 373
 	 */
@@ -983,7 +983,6 @@  discard block
 block discarded – undo
983 983
     /**
984 984
      * Return the id of the test category with title = $in_title
985 985
      * @param $in_title
986
-     * @param int $in_c_id
987 986
      *
988 987
      * @return int is id of test category
989 988
      */
@@ -1011,7 +1010,7 @@  discard block
 block discarded – undo
1011 1010
      * @param int $questionId
1012 1011
      * @param int $courseId
1013 1012
 	 *
1014
-	 * @return int
1013
+	 * @return string|false
1015 1014
      */
1016 1015
     public static function add_category_for_question_id($categoryId, $questionId, $courseId)
1017 1016
     {
Please login to merge, or discard this patch.