Completed
Pull Request — 1.11.x (#1223)
by José
199:23 queued 154:45
created
main/auth/openid/openid.lib.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -242,6 +242,9 @@
 block discarded – undo
242 242
     return $hmac;
243 243
 }
244 244
 
245
+/**
246
+ * @param string|false $text
247
+ */
245 248
 function _openid_sha1($text) {
246 249
     $hex = sha1($text);
247 250
     $raw = '';
Please login to merge, or discard this patch.
main/auth/shibboleth/app/model/scaffold/user.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -33,6 +33,7 @@  discard block
 block discarded – undo
33 33
         
34 34
     /**
35 35
      *
36
+     * @param ShibbolethUser $data
36 37
      * @return User 
37 38
      */
38 39
     public static function create($data = null)
@@ -133,6 +134,7 @@  discard block
 block discarded – undo
133 134
     
134 135
     /**
135 136
      *
137
+     * @param string $value
136 138
      * @return User 
137 139
      */
138 140
     public function get_by_user_id($value)
@@ -169,6 +171,7 @@  discard block
 block discarded – undo
169 171
     
170 172
     /**
171 173
      *
174
+     * @param string $value
172 175
      * @return bool 
173 176
      */
174 177
     public function username_exists($value)
Please login to merge, or discard this patch.
src/Chamilo/UserBundle/Entity/User.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -991,7 +991,7 @@  discard block
 block discarded – undo
991 991
     /**
992 992
      * Get pictureUri
993 993
      *
994
-     * @return Media
994
+     * @return string
995 995
      */
996 996
     public function getPictureUri()
997 997
     {
@@ -1368,7 +1368,7 @@  discard block
 block discarded – undo
1368 1368
     }
1369 1369
 
1370 1370
     /**
1371
-     * @return Media
1371
+     * @return string
1372 1372
      */
1373 1373
     public function getAvatar()
1374 1374
     {
@@ -1637,7 +1637,7 @@  discard block
 block discarded – undo
1637 1637
     /**
1638 1638
      * Returns the creation date.
1639 1639
      *
1640
-     * @return \DateTime|null
1640
+     * @return \DateTime
1641 1641
      */
1642 1642
     public function getCreatedAt()
1643 1643
     {
@@ -1661,7 +1661,7 @@  discard block
 block discarded – undo
1661 1661
     /**
1662 1662
      * Returns the last update date.
1663 1663
      *
1664
-     * @return \DateTime|null
1664
+     * @return \DateTime
1665 1665
      */
1666 1666
     public function getUpdatedAt()
1667 1667
     {
@@ -1671,7 +1671,7 @@  discard block
 block discarded – undo
1671 1671
     /**
1672 1672
      * Returns the expiration date.
1673 1673
      *
1674
-     * @return \DateTime|null
1674
+     * @return \DateTime
1675 1675
      */
1676 1676
     public function getExpiresAt()
1677 1677
     {
@@ -2137,7 +2137,7 @@  discard block
 block discarded – undo
2137 2137
       /**
2138 2138
      * Returns the user roles
2139 2139
      *
2140
-     * @return array The roles
2140
+     * @return string[] The roles
2141 2141
      */
2142 2142
     public function getRoles()
2143 2143
     {
@@ -2463,7 +2463,7 @@  discard block
 block discarded – undo
2463 2463
     /**
2464 2464
      * Check if the user has the skill
2465 2465
      * @param \Chamilo\CoreBundle\Entity\Skill $skill The skill
2466
-     * @return boolean
2466
+     * @return boolean|null
2467 2467
      */
2468 2468
     public function hasSkill(\Chamilo\CoreBundle\Entity\Skill $skill)
2469 2469
     {
Please login to merge, or discard this patch.
main/admin/settings.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1235,7 +1235,7 @@
 block discarded – undo
1235 1235
 /**
1236 1236
  * Returns an array containing the list of options used to populate the gradebook_number_decimals variable
1237 1237
  * This function is called through a call_user_func() in the generate_settings_form function.
1238
- * @return array List of gradebook_number_decimals options
1238
+ * @return string[] List of gradebook_number_decimals options
1239 1239
  *
1240 1240
  * @author Guillaume Viguier <[email protected]>
1241 1241
  */
Please login to merge, or discard this patch.
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.