Completed
Push — 1.11.x ( 3ca1af...7f27ad )
by José
93:15 queued 54:45
created
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.
main/inc/lib/userportal.lib.php 1 patch
Doc Comments   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -682,6 +682,7 @@  discard block
 block discarded – undo
682 682
     * retrieves all the courses that the user has already subscribed to
683 683
     * @author Patrick Cool <[email protected]>, Ghent University, Belgium
684 684
     * @param int $user_id: the id of the user
685
+    * @param integer $user_id
685 686
     * @return array an array containing all the information of the courses of the given user
686 687
     */
687 688
     public function get_courses_of_user($user_id)
@@ -732,13 +733,13 @@  discard block
 block discarded – undo
732 733
 
733 734
     /**
734 735
      * @todo use the template system
735
-     * @param $title
736
-     * @param $content
736
+     * @param string|null $title
737
+     * @param string $content
737 738
      * @param string $id
738 739
      * @param array $params
739 740
      * @param string $idAccordion
740 741
      * @param string $idCollapse
741
-     * @return null|string
742
+     * @return string
742 743
      */
743 744
     public function show_right_block(
744 745
         $title,
@@ -960,7 +961,7 @@  discard block
 block discarded – undo
960 961
     }
961 962
 
962 963
     /**
963
-     * @return null|string
964
+     * @return string
964 965
      */
965 966
     public function return_navigation_links()
966 967
     {
@@ -990,7 +991,7 @@  discard block
 block discarded – undo
990 991
     }
991 992
 
992 993
     /**
993
-     * @return null|string
994
+     * @return string
994 995
      */
995 996
     public function return_course_block()
996 997
     {
@@ -1680,8 +1681,8 @@  discard block
 block discarded – undo
1680 1681
 
1681 1682
     /**
1682 1683
      * Return HTML code for personal user course category
1683
-     * @param $id
1684
-     * @param $title
1684
+     * @param integer $id
1685
+     * @param string $title
1685 1686
      * @return string
1686 1687
      */
1687 1688
     private static function getHtmlForUserCategory($id, $title)
@@ -1702,7 +1703,7 @@  discard block
 block discarded – undo
1702 1703
     /**
1703 1704
      * return HTML code for course display in session view
1704 1705
      * @param array $courseInfo
1705
-     * @param $userCategoryId
1706
+     * @param integer $userCategoryId
1706 1707
      * @param bool $displayButton
1707 1708
      * @param $loadDirs
1708 1709
      * @return string
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.
main/work/work.lib.php 1 patch
Doc Comments   +15 added lines, -13 removed lines patch added patch discarded remove patch
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
  * @author Bert Vanderkimpen
697 697
  * @author Yannick Warnier <[email protected]> Adaptation for work tool
698 698
  * @param   string $base_work_dir Base work dir (.../work)
699
- * @param   string $desiredDirName complete path of the desired name
699
+ * @param   string $desired_dir_name complete path of the desired name
700 700
  *
701 701
  * @return  string actual directory name if it succeeds, boolean false otherwise
702 702
  */
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
 /**
719 719
  * Delete a work-tool directory
720 720
  * @param   int  $id work directory id to delete
721
- * @return  integer -1 on error
721
+ * @return  boolean|null -1 on error
722 722
  */
723 723
 function deleteDirWork($id)
724 724
 {
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
  * Update the url of a dir in the student_publication table
862 862
  * @param  array $work_data work original data
863 863
  * @param  string $newPath Example: "folder1"
864
- * @return bool
864
+ * @return boolean|null
865 865
  */
866 866
 function updateDirName($work_data, $newPath)
867 867
 {
@@ -922,6 +922,7 @@  discard block
 block discarded – undo
922 922
 /**
923 923
  * Transform an all directory structure (only directories) in an array
924 924
  * @param   string path of the directory
925
+ * @param string $directory
925 926
  * @return  array the directory structure into an array
926 927
  * @author  Julio Montoya Dokeos
927 928
  * @version April 2008
@@ -991,7 +992,7 @@  discard block
 block discarded – undo
991 992
  * @param   string the path of the directory
992 993
  * @param   boolean true if we want the total quantity of files
993 994
  * include in others child directories, false only  files in the directory
994
- * @return  array the first element is an integer with the number of files
995
+ * @return  integer[] the first element is an integer with the number of files
995 996
  * in the folder, the second element is the number of directories
996 997
  * @author  Julio Montoya
997 998
  * @version April 2008
@@ -2724,7 +2725,7 @@  discard block
 block discarded – undo
2724 2725
  * @param int $userId
2725 2726
  * @param int $workId
2726 2727
  * @param int $courseId
2727
- * @return bool
2728
+ * @return boolean|null
2728 2729
  */
2729 2730
 function allowOnlySubscribedUser($userId, $workId, $courseId)
2730 2731
 {
@@ -2842,7 +2843,7 @@  discard block
 block discarded – undo
2842 2843
 /**
2843 2844
  * Get total score from a work list
2844 2845
  * @param $workList
2845
- * @return int|null
2846
+ * @return integer
2846 2847
  */
2847 2848
 function getTotalWorkScore($workList)
2848 2849
 {
@@ -2858,7 +2859,7 @@  discard block
 block discarded – undo
2858 2859
  * Get comment count from a work list (docs sent by students)
2859 2860
  * @param array $workList
2860 2861
  * @param array $courseInfo
2861
- * @return int|null
2862
+ * @return integer
2862 2863
  */
2863 2864
 function getTotalWorkComment($workList, $courseInfo = array())
2864 2865
 {
@@ -2998,6 +2999,7 @@  discard block
 block discarded – undo
2998 2999
  * @param int $parentId
2999 3000
  * @param array $courseInfo
3000 3001
  * @param int $sessionId
3002
+ * @param integer $userId
3001 3003
  * @return int
3002 3004
  */
3003 3005
 function getLastWorkStudentFromParentByUser(
@@ -4140,7 +4142,7 @@  discard block
 block discarded – undo
4140 4142
 }
4141 4143
 
4142 4144
 /**
4143
- * @return array
4145
+ * @return string[]
4144 4146
  */
4145 4147
 function getUploadDocumentType()
4146 4148
 {
@@ -4513,7 +4515,7 @@  discard block
 block discarded – undo
4513 4515
  * @param int Session ID
4514 4516
  * @param $correction
4515 4517
  *
4516
- * @return array|bool
4518
+ * @return boolean
4517 4519
  */
4518 4520
 function getFileContents($id, $course_info, $sessionId = 0, $correction = false)
4519 4521
 {
@@ -4631,7 +4633,7 @@  discard block
 block discarded – undo
4631 4633
  * @param int $userId
4632 4634
  * @param array $courseInfo
4633 4635
  * @param string $format
4634
- * @return bool
4636
+ * @return false|null
4635 4637
  */
4636 4638
 function exportAllWork($userId, $courseInfo, $format = 'pdf')
4637 4639
 {
@@ -4677,7 +4679,7 @@  discard block
 block discarded – undo
4677 4679
  * @param array $courseInfo
4678 4680
  * @param int $sessionId
4679 4681
  * @param string $format
4680
- * @return bool
4682
+ * @return false|null
4681 4683
  */
4682 4684
 function exportAllStudentWorkFromPublication(
4683 4685
     $workId,
@@ -4815,7 +4817,7 @@  discard block
 block discarded – undo
4815 4817
  * Downloads all user files per user
4816 4818
  * @param int $userId
4817 4819
  * @param array $courseInfo
4818
- * @return bool
4820
+ * @return false|null
4819 4821
  */
4820 4822
 function downloadAllFilesPerUser($userId, $courseInfo)
4821 4823
 {
@@ -4929,7 +4931,7 @@  discard block
 block discarded – undo
4929 4931
 /**
4930 4932
  * @param array $courseInfo
4931 4933
  * @param int $workId
4932
- * @return bool
4934
+ * @return boolean|null
4933 4935
  */
4934 4936
 function protectWork($courseInfo, $workId)
4935 4937
 {
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.