Completed
Push — 1.11.x ( 120723...3bdcfd )
by José
101:01 queued 52:25
created
main/inc/lib/sessionmanager.lib.php 1 patch
Doc Comments   +24 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1336,7 +1336,7 @@  discard block
 block discarded – undo
1336 1336
      * @param string    $description
1337 1337
      * @param int       $showDescription
1338 1338
      * @param int       $duration
1339
-     * @param array     $extraFields
1339
+     * @param boolean|null     $extraFields
1340 1340
      * @param int       $sessionAdminId
1341 1341
      * @param boolean $sendSubscriptionNotification Optional.
1342 1342
      *          Whether send a mail notification to users being subscribed
@@ -1565,7 +1565,7 @@  discard block
 block discarded – undo
1565 1565
      * @param array $user_list
1566 1566
      * @param int $session_visibility
1567 1567
      * @param bool $empty_users
1568
-     * @return bool
1568
+     * @return false|null
1569 1569
      */
1570 1570
     public static function suscribe_users_to_session(
1571 1571
         $id_session,
@@ -1837,7 +1837,7 @@  discard block
 block discarded – undo
1837 1837
      * @param array $courseInfo
1838 1838
      * @param int $status
1839 1839
      * @param bool $updateTotal
1840
-     * @return bool
1840
+     * @return false|null
1841 1841
      */
1842 1842
     public static function removeUsersFromCourseSession(
1843 1843
         $userList,
@@ -1903,7 +1903,7 @@  discard block
 block discarded – undo
1903 1903
      * @param string $course_code
1904 1904
      * @param int $session_visibility
1905 1905
      * @param bool $removeUsersNotInList
1906
-     * @return bool
1906
+     * @return false|null
1907 1907
      */
1908 1908
     public static function subscribe_users_to_session_course(
1909 1909
         $user_list,
@@ -2086,7 +2086,7 @@  discard block
 block discarded – undo
2086 2086
      * @param	bool	$removeExistingCoursesWithUsers Whether to unsubscribe
2087 2087
      * existing courses and users (true, default) or not (false)
2088 2088
      * @param $copyEvaluation from base course to session course
2089
-     * @return	void	Nothing, or false on error
2089
+     * @return	false|null	Nothing, or false on error
2090 2090
      * */
2091 2091
     public static function add_courses_to_session(
2092 2092
         $sessionId,
@@ -2282,6 +2282,8 @@  discard block
 block discarded – undo
2282 2282
      *
2283 2283
      * @param int Session id
2284 2284
      * @param int Course id
2285
+     * @param integer $session_id
2286
+     * @param integer $course_id
2285 2287
      * @return bool True in case of success, false otherwise
2286 2288
      */
2287 2289
     public static function unsubscribe_course_from_session($session_id, $course_id)
@@ -2337,7 +2339,7 @@  discard block
 block discarded – undo
2337 2339
      * @param	string	$variable Field's internal variable name
2338 2340
      * @param	int		$fieldType Field's type
2339 2341
      * @param	string	$displayText Field's language var name
2340
-     * @return int     new extra field id
2342
+     * @return boolean     new extra field id
2341 2343
      */
2342 2344
     public static function create_session_extra_field($variable, $fieldType, $displayText)
2343 2345
     {
@@ -2561,7 +2563,7 @@  discard block
 block discarded – undo
2561 2563
      * @param	array	id_checked
2562 2564
      * @param	bool	include delete session
2563 2565
      * @param	bool	optional, true if the function is called by a webservice, false otherwise.
2564
-     * @return	void	Nothing, or false on error
2566
+     * @return	boolean	Nothing, or false on error
2565 2567
      * The parameters is a array to delete sessions
2566 2568
      * */
2567 2569
     public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false)
@@ -3056,6 +3058,7 @@  discard block
 block discarded – undo
3056 3058
      * @param string $orderCondition
3057 3059
      * @param string $keyword
3058 3060
      * @param string $description
3061
+     * @param integer $status
3059 3062
      * @return array sessions
3060 3063
      */
3061 3064
     public static function getSessionsFollowedByUser(
@@ -3268,8 +3271,8 @@  discard block
 block discarded – undo
3268 3271
     /**
3269 3272
      * Gets the list of courses by session filtered by access_url
3270 3273
      *
3271
-     * @param $userId
3272
-     * @param $sessionId
3274
+     * @param integer $userId
3275
+     * @param null|integer $sessionId
3273 3276
      * @param null $from
3274 3277
      * @param null $limit
3275 3278
      * @param null $column
@@ -3394,6 +3397,7 @@  discard block
 block discarded – undo
3394 3397
     /**
3395 3398
      * Gets the count of courses by session filtered by access_url
3396 3399
      * @param int session id
3400
+     * @param integer $session_id
3397 3401
      * @return array list of courses
3398 3402
      */
3399 3403
     public static function getCourseCountBySessionId($session_id, $keyword = null)
@@ -3645,6 +3649,7 @@  discard block
 block discarded – undo
3645 3649
      * Updates a session status
3646 3650
      * @param	int 	session id
3647 3651
      * @param	int 	status
3652
+     * @param integer $status
3648 3653
      */
3649 3654
     public static function set_session_status($session_id, $status)
3650 3655
     {
@@ -3960,7 +3965,7 @@  discard block
 block discarded – undo
3960 3965
 
3961 3966
     /**
3962 3967
      * @param $id
3963
-     * @return bool
3968
+     * @return null|boolean
3964 3969
      */
3965 3970
     public static function protect_teacher_session_edit($id)
3966 3971
     {
@@ -4024,7 +4029,7 @@  discard block
 block discarded – undo
4024 4029
      *  true: if the session exists it will be updated.
4025 4030
      *  false: if session exists a new session will be created adding a counter session1, session2, etc
4026 4031
      * @param int $defaultUserId
4027
-     * @param mixed $logger
4032
+     * @param Logger $logger
4028 4033
      * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will
4029 4034
      * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id')
4030 4035
      * @param string $extraFieldId
@@ -5266,7 +5271,6 @@  discard block
 block discarded – undo
5266 5271
      * @param string $lastConnectionDate
5267 5272
      * @param array $sessionIdList
5268 5273
      * @param array $studentIdList
5269
-     * @param int $userStatus STUDENT|COURSEMANAGER constants
5270 5274
      *
5271 5275
      * @return array|int
5272 5276
      */
@@ -5418,7 +5422,7 @@  discard block
 block discarded – undo
5418 5422
     /**
5419 5423
      * Get the list of course tools that have to be dealt with in case of
5420 5424
      * registering any course to a session
5421
-     * @return array The list of tools to be dealt with (literal names)
5425
+     * @return string[] The list of tools to be dealt with (literal names)
5422 5426
      */
5423 5427
     public static function getCourseToolToBeManaged()
5424 5428
     {
@@ -5432,7 +5436,7 @@  discard block
 block discarded – undo
5432 5436
      * Calls the methods bound to each tool when a course is registered into a session
5433 5437
      * @param int $sessionId
5434 5438
      * @param int $courseId
5435
-     * @return void
5439
+     * @return boolean|null
5436 5440
      */
5437 5441
     public static function installCourse($sessionId, $courseId)
5438 5442
     {
@@ -6072,6 +6076,7 @@  discard block
 block discarded – undo
6072 6076
      * @param int $categoryId The internal ID of the session category
6073 6077
      * @param string $target Value to search for in the session field values
6074 6078
      * @param array $extraFields A list of fields to be scanned and returned
6079
+     * @param DateTime $publicationDate
6075 6080
      * @return mixed
6076 6081
      */
6077 6082
     public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null)
@@ -6584,6 +6589,8 @@  discard block
 block discarded – undo
6584 6589
      * Converts "start date" and "end date" to "From start date to end date" string
6585 6590
      * @param string $startDate
6586 6591
      * @param string $endDate
6592
+     * @param boolean $showTime
6593
+     * @param boolean $dateHuman
6587 6594
      *
6588 6595
      * @return string
6589 6596
      */
@@ -7402,7 +7409,7 @@  discard block
 block discarded – undo
7402 7409
     /**
7403 7410
      * Get link to the admin page for this session
7404 7411
      * @param   int $id Session ID
7405
-     * @return mixed    URL to the admin page to manage the session, or false on error
7412
+     * @return false|string    URL to the admin page to manage the session, or false on error
7406 7413
      */
7407 7414
     public static function getAdminPath($id)
7408 7415
     {
@@ -7419,7 +7426,7 @@  discard block
 block discarded – undo
7419 7426
      * If a course is provided, build the link to the course
7420 7427
      * @param   int $id Session ID
7421 7428
      * @param   int $courseId Course ID (optional) in case the link has to send straight to the course
7422
-     * @return mixed    URL to the page to use the session, or false on error
7429
+     * @return false|string    URL to the page to use the session, or false on error
7423 7430
      */
7424 7431
     public static function getPath($id, $courseId = 0)
7425 7432
     {
@@ -7517,7 +7524,7 @@  discard block
 block discarded – undo
7517 7524
     /**
7518 7525
      * Return true if coach is allowed to access this session
7519 7526
      * @param int $sessionId
7520
-     * @return bool
7527
+     * @return integer
7521 7528
      */
7522 7529
     public static function isSessionDateOkForCoach($sessionId)
7523 7530
     {
Please login to merge, or discard this patch.
main/dropbox/dropbox_class.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
 	 * @param string $author
268 268
 	 * @param string $filename
269 269
 	 * @param int $filesize
270
-	 * @param array $recipient_ids
270
+	 * @param unknown_type|null $recipient_ids
271 271
 	 */
272 272
 	public function _createNewSentWork($uploader_id, $title, $description, $author, $filename, $filesize, $recipient_ids)
273 273
     {
Please login to merge, or discard this patch.
main/exercice/export/qti2/qti2_classes.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -72,6 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Return the XML flow for the possible answers.
74 74
      *
75
+     * @param string $questionStatment
75 76
      */
76 77
     public function imsExportResponses($questionIdent, $questionStatment)
77 78
     {
@@ -147,6 +148,7 @@  discard block
 block discarded – undo
147 148
      * Export the text with missing words.
148 149
      *
149 150
      *
151
+     * @param string $questionStatment
150 152
      */
151 153
     public function imsExportResponses($questionIdent, $questionStatment)
152 154
     {
@@ -204,6 +206,7 @@  discard block
 block discarded – undo
204 206
 {
205 207
     /**
206 208
      * Export the question part as a matrix-choice, with only one possible answer per line.
209
+     * @param string $questionStatment
207 210
      */
208 211
     public function imsExportResponses($questionIdent, $questionStatment)
209 212
     {
@@ -295,6 +298,7 @@  discard block
 block discarded – undo
295 298
     /**
296 299
      * TODO update this to match hot spots instead of copying matching
297 300
      * Export the question part as a matrix-choice, with only one possible answer per line.
301
+     * @param string $questionStatment
298 302
      */
299 303
     public function imsExportResponses($questionIdent, $questionStatment, $questionDesc='', $questionMedia='')
300 304
     {
@@ -382,6 +386,7 @@  discard block
 block discarded – undo
382 386
     /**
383 387
      * TODO implement
384 388
      * Export the question part as a matrix-choice, with only one possible answer per line.
389
+     * @param string $questionStatment
385 390
      */
386 391
     public function imsExportResponses($questionIdent, $questionStatment, $questionDesc='', $questionMedia='')
387 392
 	{
Please login to merge, or discard this patch.
main/exercice/hotpotatoes.lib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
  * @param    reference    Reference to the array to search
260 260
  * @param    string       Node we are looking for in the array
261 261
  * @param string $node
262
- * @return   mixed        Node name or false if not found
262
+ * @return   false|string        Node name or false if not found
263 263
  */
264 264
 function myarraysearch(&$array, $node)
265 265
 {
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
  * Searches an image name into an array.
281 281
  * @param    reference        Reference to an array to search
282 282
  * @param    string           String to look for
283
- * @return   mixed            String given if found, false otherwise
283
+ * @return   false|string            String given if found, false otherwise
284 284
  * @uses     myarraysearch    This function is just an additional layer on the myarraysearch() function
285 285
  */
286 286
 function CheckImageName(&$imgparams, $string)
Please login to merge, or discard this patch.
main/gradebook/lib/be/category.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1545,7 +1545,7 @@
 block discarded – undo
1545 1545
      * Retrieve all categories inside a course independent category
1546 1546
      * that should be visible to a student.
1547 1547
      * @param integer $cat_id parent category
1548
-     * @param $stud_id student id
1548
+     * @param integer $stud_id student id
1549 1549
      * @param $cats optional: if defined, the categories will be added to this array
1550 1550
      */
1551 1551
     public function get_independent_categories_with_result_for_student($cat_id, $stud_id, $cats = array())
Please login to merge, or discard this patch.
main/gradebook/lib/be/evaluation.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@
 block discarded – undo
273 273
 
274 274
 
275 275
 	/**
276
-	 * @param array $result
276
+	 * @param Doctrine\DBAL\Driver\Statement|null $result
277 277
 	 * @return array
278 278
 	 */
279 279
 	private static function create_evaluation_objects_from_sql_result($result)
Please login to merge, or discard this patch.
main/inc/lib/api.lib.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1359,6 +1359,7 @@  discard block
 block discarded – undo
1359 1359
  * Gets the list of courses a specific user is subscribed to
1360 1360
  * @param int       User ID
1361 1361
  * @param boolean   $fetch_session Whether to get session courses or not - NOT YET IMPLEMENTED
1362
+ * @param integer $userid
1362 1363
  * @return array    Array of courses in the form [0]=>('code'=>xxx,'db'=>xxx,'dir'=>xxx,'status'=>d)
1363 1364
  */
1364 1365
 function api_get_user_courses($userid, $fetch_session = true)
@@ -6756,7 +6757,7 @@  discard block
 block discarded – undo
6756 6757
 /**
6757 6758
  * Returns an array of global configuration settings which should be ignored
6758 6759
  * when printing the configuration settings screens
6759
- * @return array Array of strings, each identifying one of the excluded settings
6760
+ * @return string[] Array of strings, each identifying one of the excluded settings
6760 6761
  */
6761 6762
 function api_get_locked_settings() {
6762 6763
     return array(
@@ -6799,6 +6800,7 @@  discard block
 block discarded – undo
6799 6800
  * false if he isn't. If the user ID is given and is an integer, then the same
6800 6801
  * ID is simply returned
6801 6802
  * @param  integer User ID
6803
+ * @param integer $user_id
6802 6804
  * @return boolean Integer User ID is logged in, or false otherwise
6803 6805
  */
6804 6806
 function api_user_is_login($user_id = null) {
@@ -7243,6 +7245,7 @@  discard block
 block discarded – undo
7243 7245
 /**
7244 7246
  * Gets memory limit in bytes
7245 7247
  * @param string The memory size (128M, 1G, 1000K, etc)
7248
+ * @param string $mem
7246 7249
  * @return int
7247 7250
  * @assert (null) === false
7248 7251
  * @assert ('1t')  === 1099511627776
Please login to merge, or discard this patch.
main/inc/lib/course_description.lib.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 
360 360
     /**
361 361
      * Get description titles by default
362
-     * @return array
362
+     * @return string[]
363 363
      */
364 364
     public function get_default_description_title()
365 365
     {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
     /**
380 380
      * Get description titles editable by default
381
-     * @return array
381
+     * @return boolean[]
382 382
      */
383 383
     public function get_default_description_title_editable()
384 384
     {
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 
398 398
     /**
399 399
      * Get description icons by default
400
-     * @return array
400
+     * @return string[]
401 401
      */
402 402
     public function get_default_description_icon()
403 403
     {
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
 
418 418
     /**
419 419
      * Get questions by default for help
420
-     * @return array
420
+     * @return string[]
421 421
      */
422 422
     public function get_default_question()
423 423
     {
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 
437 437
     /**
438 438
      * Get informations by default for help
439
-     * @return array
439
+     * @return string[]
440 440
      */
441 441
     public function get_default_information()
442 442
     {
Please login to merge, or discard this patch.
main/inc/lib/course.lib.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2309,7 +2309,7 @@  discard block
 block discarded – undo
2309 2309
 
2310 2310
     /**
2311 2311
      * Creates a file called mysql_dump.sql in the course folder
2312
-     * @param $course_code The code of the course
2312
+     * @param string $course_code The code of the course
2313 2313
      * @todo Implementation for single database
2314 2314
      */
2315 2315
     public static function create_database_dump($course_code)
@@ -3352,6 +3352,7 @@  discard block
 block discarded – undo
3352 3352
      * in the sense that any user clicking them is registered as a student
3353 3353
      * @param int       User id
3354 3354
      * @param bool      Whether to show the document quick-loader or not
3355
+     * @param integer $user_id
3355 3356
      * @return string
3356 3357
      */
3357 3358
     public static function returnSpecialCourses($user_id, $load_dirs = false)
@@ -3654,6 +3655,7 @@  discard block
 block discarded – undo
3654 3655
      *  class userportal-course-item.
3655 3656
      * @param int      User category id
3656 3657
      * @param bool      Whether to show the document quick-loader or not
3658
+     * @param integer $user_category_id
3657 3659
      * @return string
3658 3660
      */
3659 3661
     public static function returnCoursesWithoutCategories($user_category_id, $load_dirs = false)
Please login to merge, or discard this patch.