Completed
Push — 1.11.x ( da7829...723e67 )
by José
197:18 queued 159:26
created
main/inc/lib/grade_model.lib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -259,10 +259,10 @@
 block discarded – undo
259 259
     }
260 260
 
261 261
     /**
262
-     * @param $form
262
+     * @param CatForm $form
263 263
      * @param string $name
264 264
      * @param null $default_value
265
-     * @return bool
265
+     * @return false|null
266 266
      */
267 267
     public function fill_grade_model_select_in_form(&$form, $name = 'gradebook_model_id', $default_value = null)
268 268
     {
Please login to merge, or discard this patch.
main/inc/lib/link.lib.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -477,6 +477,7 @@  discard block
 block discarded – undo
477 477
      *
478 478
      * Get link info
479 479
      * @param int link id
480
+     * @param integer $id
480 481
      * @return array link info
481 482
      *
482 483
      **/
@@ -1058,7 +1059,9 @@  discard block
 block discarded – undo
1058 1059
     /**
1059 1060
      * Displays the edit, delete and move icons
1060 1061
      * @param int   Category ID
1061
-     * @return void
1062
+     * @param integer $currentCategory
1063
+     * @param integer $countCategories
1064
+     * @return string
1062 1065
      * @author Patrick Cool <[email protected]>, Ghent University
1063 1066
      */
1064 1067
     public static function showCategoryAdminTools($category, $currentCategory, $countCategories)
@@ -1222,6 +1225,7 @@  discard block
 block discarded – undo
1222 1225
     /**
1223 1226
      * CSV file import functions
1224 1227
      * @author René Haentjens , Ghent University
1228
+     * @param string $catname
1225 1229
      */
1226 1230
     public static function get_cat($catname)
1227 1231
     {
@@ -1261,6 +1265,11 @@  discard block
 block discarded – undo
1261 1265
     /**
1262 1266
      * CSV file import functions
1263 1267
      * @author René Haentjens , Ghent University
1268
+     * @param string $url
1269
+     * @param string $title
1270
+     * @param string $description
1271
+     * @param string $on_homepage
1272
+     * @param string $hidden
1264 1273
      */
1265 1274
     public static function put_link($url, $cat, $title, $description, $on_homepage, $hidden)
1266 1275
     {
Please login to merge, or discard this patch.
main/inc/lib/system_announcements.lib.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      * @param int    Whether the announcement should be visible to anonymous users (1) or not (0)
307 307
      * @param string The language for which the announvement should be shown. Leave null for all langages
308 308
      * @param int    Whether to send an e-mail to all users (1) or not (0)
309
-     * @return mixed  insert_id on success, false on failure
309
+     * @return false|string  insert_id on success, false on failure
310 310
      */
311 311
     public static function add_announcement(
312 312
         $title,
@@ -667,6 +667,8 @@  discard block
 block discarded – undo
667 667
 	 * @param	int		Whether to send to all teachers (1) or not (0)
668 668
 	 * @param	int		Whether to send to all students (1) or not (0)
669 669
 	 * @param	string	Language (optional, considered for all languages if left empty)
670
+	 * @param integer|null $teacher
671
+	 * @param integer|null $student
670 672
      * @return  bool    True if the message was sent or there was no destination matching. False on database or e-mail sending error.
671 673
 	 */
672 674
     public static function send_system_announcement_by_email(
Please login to merge, or discard this patch.
main/inc/lib/urlmanager.lib.php 1 patch
Doc Comments   +16 added lines, -13 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     * @param	string	$url The URL of the site
19 19
     * @param	string  $description The description of the site
20 20
     * @param	int		$active is active or not
21
-    * @return boolean if success
21
+    * @return Doctrine\DBAL\Driver\Statement|null if success
22 22
     */
23 23
     public static function add($url, $description, $active)
24 24
     {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     * @param	string 	$url
44 44
     * @param	string  $description The description of the site
45 45
     * @param	int		$active is active or not
46
-    * @return 	boolean if success
46
+    * @return 	Doctrine\DBAL\Driver\Statement|null if success
47 47
     */
48 48
     public static function update($url_id, $url, $description, $active)
49 49
     {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
     * @author Julio Montoya
387 387
     * @param int user id
388 388
     * @param int url id
389
-    * @return boolean true if success
389
+    * @return integer true if success
390 390
     * */
391 391
     public static function relation_url_user_exist($user_id, $url_id)
392 392
     {
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     * @author Julio Montoya
405 405
     * @param int $courseId
406 406
     * @param int $urlId
407
-    * @return boolean true if success
407
+    * @return integer true if success
408 408
     * */
409 409
     public static function relation_url_course_exist($courseId, $urlId)
410 410
     {
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
      * @author Julio Montoya
426 426
      * @param int $userGroupId
427 427
      * @param int $urlId
428
-     * @return boolean true if success
428
+     * @return integer true if success
429 429
      * */
430 430
     public static function relationUrlUsergroupExist($userGroupId, $urlId)
431 431
     {
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
     * @author Julio Montoya
446 446
     * @param int user id
447 447
     * @param int url id
448
-    * @return boolean true if success
448
+    * @return integer true if success
449 449
     * */
450 450
     public static function relation_url_session_exist($session_id, $url_id)
451 451
     {
@@ -568,6 +568,8 @@  discard block
 block discarded – undo
568 568
      * @author Julio Montoya
569 569
      * @param  array of course ids
570 570
      * @param  array of url_ids
571
+     * @param integer[] $courseCategoryList
572
+     * @param integer[] $urlList
571 573
      * @return array
572 574
      **/
573 575
     public static function addCourseCategoryListToUrl($courseCategoryList, $urlList)
@@ -598,7 +600,7 @@  discard block
 block discarded – undo
598 600
      * @author Julio Montoya
599 601
      * @param int $categoryCourseId
600 602
      * @param int $urlId
601
-     * @return boolean true if success
603
+     * @return integer true if success
602 604
      * */
603 605
     public static function relationUrlCourseCategoryExist($categoryCourseId, $urlId)
604 606
     {
@@ -615,7 +617,7 @@  discard block
 block discarded – undo
615 617
     /**
616 618
      * @param int $userGroupId
617 619
      * @param int $urlId
618
-     * @return int
620
+     * @return string
619 621
      */
620 622
     public static function addUserGroupToUrl($userGroupId, $urlId)
621 623
     {
@@ -716,7 +718,7 @@  discard block
 block discarded – undo
716 718
      * @param int $courseId
717 719
      * @param int $url_id
718 720
      *
719
-     * @return resource
721
+     * @return boolean
720 722
      */
721 723
     public static function add_course_to_url($courseId, $url_id = 1)
722 724
     {
@@ -807,7 +809,7 @@  discard block
 block discarded – undo
807 809
     * @param  int  $courseId
808 810
     * @param  int  $urlId
809 811
      *
810
-    * @return boolean true if success
812
+    * @return Doctrine\DBAL\Driver\Statement|null true if success
811 813
     * */
812 814
     public static function delete_url_rel_course($courseId, $urlId)
813 815
     {
@@ -825,7 +827,7 @@  discard block
 block discarded – undo
825 827
      * @param  int $userGroupId
826 828
      * @param  int $urlId
827 829
      *
828
-     * @return boolean true if success
830
+     * @return Doctrine\DBAL\Driver\Statement|null true if success
829 831
      * */
830 832
     public static function delete_url_rel_usergroup($userGroupId, $urlId)
831 833
     {
@@ -844,7 +846,7 @@  discard block
 block discarded – undo
844 846
      * @param  int $userGroupId
845 847
      * @param  int $urlId
846 848
      *
847
-     * @return boolean true if success
849
+     * @return Doctrine\DBAL\Driver\Statement|null true if success
848 850
      * */
849 851
     public static function deleteUrlRelCourseCategory($userGroupId, $urlId)
850 852
     {
@@ -862,8 +864,9 @@  discard block
 block discarded – undo
862 864
     * @author Julio Montoya
863 865
     * @param  char  course code
864 866
     * @param  int url id
867
+    * @param integer $url_id
865 868
      *
866
-    * @return boolean true if success
869
+    * @return Doctrine\DBAL\Driver\Statement|null true if success
867 870
     * */
868 871
     public static function delete_url_rel_session($session_id, $url_id)
869 872
     {
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Entity/CForumThread.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
 
182 182
     /**
183 183
      * set threadPeerQualify
184
-     * @param $threadPeerQualify
184
+     * @param integer $threadPeerQualify
185 185
      * @return $this
186 186
      */
187 187
     public function setThreadPeerQualify($threadPeerQualify)
Please login to merge, or discard this patch.
plugin/vchamilo/lib/Virtual.php 1 patch
Doc Comments   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     * provides a side connection to a vchamilo database
141 141
     * @param array $_configuration
142 142
      *
143
-    * @return \Doctrine\DBAL\Driver\Connection
143
+    * @return string
144 144
     */
145 145
     public static function bootConnection(&$_configuration)
146 146
     {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 
304 304
     /**
305 305
     * get a proper SQLdump command
306
-    * @param object $vmoodledata the complete new host information
306
+    * @param stdClass $vchamilodata
307 307
     * @return string the shell command
308 308
     */
309 309
     public static function getDatabaseDumpCmd($vchamilodata)
@@ -383,8 +383,8 @@  discard block
 block discarded – undo
383 383
 
384 384
     /**
385 385
      * Dumps a SQL database for having a snapshot.
386
-     * @param        $vchamilo    object        The Vchamilo object.
387
-     * @param        $outputfilerad    string        The output SQL file radical.
386
+     * @param        stdClass $vchamilo    object        The Vchamilo object.
387
+     * @param        string $outputfilerad    string        The output SQL file radical.
388 388
      * @return        bool    If TRUE, dumping database was a success, otherwise FALSE.
389 389
      */
390 390
     public static function dumpDatabase($vchamilo, $outputfilerad)
@@ -560,6 +560,8 @@  discard block
 block discarded – undo
560 560
     * internal primitives. This avoids too many changes to do in imported
561 561
     * code
562 562
     *
563
+    * @param string $module
564
+    * @param string $key
563 565
     */
564 566
     public static function getConfig($module, $key, $isplugin = true)
565 567
     {
@@ -628,7 +630,7 @@  discard block
 block discarded – undo
628 630
     /**
629 631
      * @param string $path
630 632
      *
631
-     * @return mixed
633
+     * @return string
632 634
      */
633 635
     public static function chopLastSlash($path)
634 636
     {
@@ -760,7 +762,7 @@  discard block
 block discarded – undo
760 762
     }
761 763
 
762 764
     /**
763
-     * @param object $instance
765
+     * @param stdClass $instance
764 766
      * @return \Doctrine\DBAL\Connection
765 767
      */
766 768
     public static function getConnectionFromInstance($instance, $getManager = false)
@@ -1169,7 +1171,7 @@  discard block
 block discarded – undo
1169 1171
     /**
1170 1172
      * @param stdClass $instance
1171 1173
      *
1172
-     * @return bool|string returns the original version of the app
1174
+     * @return string|false returns the original version of the app
1173 1175
      */
1174 1176
     public static function canBeUpgraded($instance)
1175 1177
     {
Please login to merge, or discard this patch.
main/lp/openoffice_document.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,9 +186,9 @@
 block discarded – undo
186 186
 
187 187
     /**
188 188
      * Get images files from remote host (with webservices)
189
-     * @param   array $file current ppt file details
189
+     * @param   string $file current ppt file details
190 190
      * @param   string  $size The expected final size of the rendered slides
191
-     * @return  array images files
191
+     * @return  string images files
192 192
      */
193 193
     private function _get_remote_ppt2lp_files($file, $size = null)
194 194
     {
Please login to merge, or discard this patch.
main/inc/lib/extra_field.lib.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     }
141 141
 
142 142
     /**
143
-     * @return array
143
+     * @return string[]
144 144
      */
145 145
     public static function getValidExtraFieldTypes()
146 146
     {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
     /**
219 219
      * @param array $conditions
220
-     * @param null  $order_field_options_by
220
+     * @param string  $order_field_options_by
221 221
      *
222 222
      * @return array
223 223
      */
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     /**
376 376
      * @param string $handler
377 377
      *
378
-     * @return array
378
+     * @return string[]
379 379
      */
380 380
     public static function get_extra_fields_by_handler($handler)
381 381
     {
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
     }
575 575
 
576 576
     /**
577
-     * @return array
577
+     * @return string[]
578 578
      */
579 579
     public function get_field_types()
580 580
     {
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
     /**
585 585
      * @param int $id
586 586
      *
587
-     * @return null
587
+     * @return string|null
588 588
      */
589 589
     public function get_field_type_by_id($id)
590 590
     {
@@ -1822,7 +1822,7 @@  discard block
 block discarded – undo
1822 1822
     }
1823 1823
 
1824 1824
     /**
1825
-     * @return array
1825
+     * @return string[]
1826 1826
      */
1827 1827
     public function getJqgridColumnNames()
1828 1828
     {
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
@@ -1344,7 +1344,7 @@  discard block
 block discarded – undo
1344 1344
      * @param string    $description
1345 1345
      * @param int       $showDescription
1346 1346
      * @param int       $duration
1347
-     * @param array     $extraFields
1347
+     * @param boolean|null     $extraFields
1348 1348
      * @param int       $sessionAdminId
1349 1349
      * @param boolean $sendSubscriptionNotification Optional.
1350 1350
      *          Whether send a mail notification to users being subscribed
@@ -1573,7 +1573,7 @@  discard block
 block discarded – undo
1573 1573
      * @param array $user_list
1574 1574
      * @param int $session_visibility
1575 1575
      * @param bool $empty_users
1576
-     * @return bool
1576
+     * @return false|null
1577 1577
      */
1578 1578
     public static function suscribe_users_to_session(
1579 1579
         $id_session,
@@ -1845,7 +1845,7 @@  discard block
 block discarded – undo
1845 1845
      * @param array $courseInfo
1846 1846
      * @param int $status
1847 1847
      * @param bool $updateTotal
1848
-     * @return bool
1848
+     * @return false|null
1849 1849
      */
1850 1850
     public static function removeUsersFromCourseSession(
1851 1851
         $userList,
@@ -1911,7 +1911,7 @@  discard block
 block discarded – undo
1911 1911
      * @param string $course_code
1912 1912
      * @param int $session_visibility
1913 1913
      * @param bool $removeUsersNotInList
1914
-     * @return bool
1914
+     * @return false|null
1915 1915
      */
1916 1916
     public static function subscribe_users_to_session_course(
1917 1917
         $user_list,
@@ -2094,7 +2094,7 @@  discard block
 block discarded – undo
2094 2094
      * @param	bool	$removeExistingCoursesWithUsers Whether to unsubscribe
2095 2095
      * existing courses and users (true, default) or not (false)
2096 2096
      * @param $copyEvaluation from base course to session course
2097
-     * @return	void	Nothing, or false on error
2097
+     * @return	false|null	Nothing, or false on error
2098 2098
      * */
2099 2099
     public static function add_courses_to_session(
2100 2100
         $sessionId,
@@ -2290,6 +2290,8 @@  discard block
 block discarded – undo
2290 2290
      *
2291 2291
      * @param int Session id
2292 2292
      * @param int Course id
2293
+     * @param integer $session_id
2294
+     * @param integer $course_id
2293 2295
      * @return bool True in case of success, false otherwise
2294 2296
      */
2295 2297
     public static function unsubscribe_course_from_session($session_id, $course_id)
@@ -2569,7 +2571,7 @@  discard block
 block discarded – undo
2569 2571
      * @param	array	id_checked
2570 2572
      * @param	bool	include delete session
2571 2573
      * @param	bool	optional, true if the function is called by a webservice, false otherwise.
2572
-     * @return	void	Nothing, or false on error
2574
+     * @return	boolean	Nothing, or false on error
2573 2575
      * The parameters is a array to delete sessions
2574 2576
      * */
2575 2577
     public static function delete_session_category($id_checked, $delete_session = false, $from_ws = false)
@@ -3064,6 +3066,7 @@  discard block
 block discarded – undo
3064 3066
      * @param string $orderCondition
3065 3067
      * @param string $keyword
3066 3068
      * @param string $description
3069
+     * @param integer $status
3067 3070
      * @return array sessions
3068 3071
      */
3069 3072
     public static function getSessionsFollowedByUser(
@@ -3276,8 +3279,8 @@  discard block
 block discarded – undo
3276 3279
     /**
3277 3280
      * Gets the list of courses by session filtered by access_url
3278 3281
      *
3279
-     * @param $userId
3280
-     * @param $sessionId
3282
+     * @param integer $userId
3283
+     * @param null|integer $sessionId
3281 3284
      * @param null $from
3282 3285
      * @param null $limit
3283 3286
      * @param null $column
@@ -3402,6 +3405,7 @@  discard block
 block discarded – undo
3402 3405
     /**
3403 3406
      * Gets the count of courses by session filtered by access_url
3404 3407
      * @param int session id
3408
+     * @param integer $session_id
3405 3409
      * @return array list of courses
3406 3410
      */
3407 3411
     public static function getCourseCountBySessionId($session_id, $keyword = null)
@@ -3653,6 +3657,7 @@  discard block
 block discarded – undo
3653 3657
      * Updates a session status
3654 3658
      * @param	int 	session id
3655 3659
      * @param	int 	status
3660
+     * @param integer $status
3656 3661
      */
3657 3662
     public static function set_session_status($session_id, $status)
3658 3663
     {
@@ -3861,7 +3866,7 @@  discard block
 block discarded – undo
3861 3866
      * Protect a session to be edited.
3862 3867
      * @param int $id
3863 3868
      * @param bool $checkSession
3864
-     * @return mixed | bool true if pass the check, api_not_allowed otherwise
3869
+     * @return boolean|null | bool true if pass the check, api_not_allowed otherwise
3865 3870
      */
3866 3871
     public static function protectSession($id, $checkSession = true)
3867 3872
     {
@@ -3969,7 +3974,7 @@  discard block
 block discarded – undo
3969 3974
 
3970 3975
     /**
3971 3976
      * @param $id
3972
-     * @return bool
3977
+     * @return null|boolean
3973 3978
      */
3974 3979
     public static function protect_teacher_session_edit($id)
3975 3980
     {
@@ -4033,7 +4038,7 @@  discard block
 block discarded – undo
4033 4038
      *  true: if the session exists it will be updated.
4034 4039
      *  false: if session exists a new session will be created adding a counter session1, session2, etc
4035 4040
      * @param int $defaultUserId
4036
-     * @param mixed $logger
4041
+     * @param Logger $logger
4037 4042
      * @param array $extraFields convert a file row to an extra field. Example in CSV file there's a SessionID then it will
4038 4043
      * converted to extra_external_session_id if you set this: array('SessionId' => 'extra_external_session_id')
4039 4044
      * @param string $extraFieldId
@@ -5281,7 +5286,6 @@  discard block
 block discarded – undo
5281 5286
      * @param string $lastConnectionDate
5282 5287
      * @param array $sessionIdList
5283 5288
      * @param array $studentIdList
5284
-     * @param int $userStatus STUDENT|COURSEMANAGER constants
5285 5289
      *
5286 5290
      * @return array|int
5287 5291
      */
@@ -5433,7 +5437,7 @@  discard block
 block discarded – undo
5433 5437
     /**
5434 5438
      * Get the list of course tools that have to be dealt with in case of
5435 5439
      * registering any course to a session
5436
-     * @return array The list of tools to be dealt with (literal names)
5440
+     * @return string[] The list of tools to be dealt with (literal names)
5437 5441
      */
5438 5442
     public static function getCourseToolToBeManaged()
5439 5443
     {
@@ -5447,7 +5451,7 @@  discard block
 block discarded – undo
5447 5451
      * Calls the methods bound to each tool when a course is registered into a session
5448 5452
      * @param int $sessionId
5449 5453
      * @param int $courseId
5450
-     * @return void
5454
+     * @return boolean|null
5451 5455
      */
5452 5456
     public static function installCourse($sessionId, $courseId)
5453 5457
     {
@@ -6087,6 +6091,7 @@  discard block
 block discarded – undo
6087 6091
      * @param int $categoryId The internal ID of the session category
6088 6092
      * @param string $target Value to search for in the session field values
6089 6093
      * @param array $extraFields A list of fields to be scanned and returned
6094
+     * @param DateTime $publicationDate
6090 6095
      * @return mixed
6091 6096
      */
6092 6097
     public static function getShortSessionListAndExtraByCategory($categoryId, $target, $extraFields = null, $publicationDate = null)
@@ -6599,6 +6604,8 @@  discard block
 block discarded – undo
6599 6604
      * Converts "start date" and "end date" to "From start date to end date" string
6600 6605
      * @param string $startDate
6601 6606
      * @param string $endDate
6607
+     * @param boolean $showTime
6608
+     * @param boolean $dateHuman
6602 6609
      *
6603 6610
      * @return string
6604 6611
      */
@@ -7415,7 +7422,7 @@  discard block
 block discarded – undo
7415 7422
     /**
7416 7423
      * Get link to the admin page for this session
7417 7424
      * @param   int $id Session ID
7418
-     * @return mixed    URL to the admin page to manage the session, or false on error
7425
+     * @return false|string    URL to the admin page to manage the session, or false on error
7419 7426
      */
7420 7427
     public static function getAdminPath($id)
7421 7428
     {
@@ -7432,7 +7439,7 @@  discard block
 block discarded – undo
7432 7439
      * If a course is provided, build the link to the course
7433 7440
      * @param   int $id Session ID
7434 7441
      * @param   int $courseId Course ID (optional) in case the link has to send straight to the course
7435
-     * @return mixed    URL to the page to use the session, or false on error
7442
+     * @return false|string    URL to the page to use the session, or false on error
7436 7443
      */
7437 7444
     public static function getPath($id, $courseId = 0)
7438 7445
     {
@@ -7530,7 +7537,7 @@  discard block
 block discarded – undo
7530 7537
     /**
7531 7538
      * Return true if coach is allowed to access this session
7532 7539
      * @param int $sessionId
7533
-     * @return bool
7540
+     * @return integer
7534 7541
      */
7535 7542
     public static function isSessionDateOkForCoach($sessionId)
7536 7543
     {
Please login to merge, or discard this patch.