Completed
Push — master ( 73f386...565c08 )
by José
55:34 queued 26:04
created
main/inc/lib/login.lib.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -276,6 +276,8 @@
 block discarded – undo
276 276
      * @global bool   $is_platformAdmin
277 277
      * @global bool   $is_allowedCreateCourse
278 278
      * @global object $_user
279
+     * @param integer $user_id
280
+     * @param boolean $reset
279 281
      */
280 282
     public static function init_user($user_id, $reset)
281 283
     {
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 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 	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
     {
@@ -717,7 +719,7 @@  discard block
 block discarded – undo
717 719
      * @param int $courseId
718 720
      * @param int $url_id
719 721
      *
720
-     * @return resource
722
+     * @return boolean
721 723
      */
722 724
     public static function add_course_to_url($courseId, $url_id = 1)
723 725
     {
@@ -808,7 +810,7 @@  discard block
 block discarded – undo
808 810
     * @param  int  $courseId
809 811
     * @param  int  $urlId
810 812
      *
811
-    * @return boolean true if success
813
+    * @return Statement|null true if success
812 814
     * */
813 815
     public static function delete_url_rel_course($courseId, $urlId)
814 816
     {
@@ -826,7 +828,7 @@  discard block
 block discarded – undo
826 828
      * @param  int $userGroupId
827 829
      * @param  int $urlId
828 830
      *
829
-     * @return boolean true if success
831
+     * @return Statement|null true if success
830 832
      * */
831 833
     public static function delete_url_rel_usergroup($userGroupId, $urlId)
832 834
     {
@@ -845,7 +847,7 @@  discard block
 block discarded – undo
845 847
      * @param  int $userGroupId
846 848
      * @param  int $urlId
847 849
      *
848
-     * @return boolean true if success
850
+     * @return Statement|null true if success
849 851
      * */
850 852
     public static function deleteUrlRelCourseCategory($userGroupId, $urlId)
851 853
     {
@@ -863,8 +865,9 @@  discard block
 block discarded – undo
863 865
     * @author Julio Montoya
864 866
     * @param  char  course code
865 867
     * @param  int url id
868
+    * @param integer $url_id
866 869
      *
867
-    * @return boolean true if success
870
+    * @return Statement|null true if success
868 871
     * */
869 872
     public static function delete_url_rel_session($session_id, $url_id)
870 873
     {
Please login to merge, or discard this patch.
main/inc/lib/userportal.lib.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -476,6 +476,7 @@  discard block
 block discarded – undo
476 476
     * retrieves all the courses that the user has already subscribed to
477 477
     * @author Patrick Cool <[email protected]>, Ghent University, Belgium
478 478
     * @param int $user_id: the id of the user
479
+    * @param integer $user_id
479 480
     * @return array an array containing all the information of the courses of the given user
480 481
     */
481 482
     public function get_courses_of_user($user_id)
@@ -526,8 +527,8 @@  discard block
 block discarded – undo
526 527
 
527 528
     /**
528 529
      * @todo use the template system
529
-     * @param $title
530
-     * @param $content
530
+     * @param string $title
531
+     * @param string $content
531 532
      * @param string $id
532 533
      * @param array $params
533 534
      * @param string $idAccordion
@@ -1361,8 +1362,8 @@  discard block
 block discarded – undo
1361 1362
 
1362 1363
     /**
1363 1364
      * Return HTML code for personal user course category
1364
-     * @param $id
1365
-     * @param $title
1365
+     * @param integer $id
1366
+     * @param string $title
1366 1367
      * @return string
1367 1368
      */
1368 1369
     private static function getHtmlForUserCategory($id, $title)
@@ -1383,7 +1384,7 @@  discard block
 block discarded – undo
1383 1384
     /**
1384 1385
      * return HTML code for course display in session view
1385 1386
      * @param array $courseInfo
1386
-     * @param $userCategoryId
1387
+     * @param integer $userCategoryId
1387 1388
      * @param bool $displayButton
1388 1389
      * @param $loadDirs
1389 1390
      * @return string
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/Session.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     }
397 397
 
398 398
     /**
399
-     * @param $courses
399
+     * @param ArrayCollection $courses
400 400
      */
401 401
     public function setCourses($courses)
402 402
     {
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
     }
876 876
 
877 877
     /**
878
-     * @return array
878
+     * @return string[]
879 879
      */
880 880
     public static function getStatusList()
881 881
     {
@@ -926,8 +926,8 @@  discard block
 block discarded – undo
926 926
     }
927 927
 
928 928
     /**
929
-     * @param $start
930
-     * @param $end
929
+     * @param \DateTime $start
930
+     * @param \DateTime $end
931 931
      * @return bool
932 932
      */
933 933
     private function compareDates($start, $end)
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Framework/PageController.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,6 +109,8 @@  discard block
 block discarded – undo
109 109
      * @param string Longer content to show (usually a <ul> list)
110 110
      * @param string ID to be added to the HTML attributes for the block
111 111
      * @param array Array of attributes to add to the HTML block
112
+     * @param string $title
113
+     * @param string $id
112 114
      * @return string HTML <div> block
113 115
      * @todo use the menu builder
114 116
      */
@@ -647,6 +649,10 @@  discard block
 block discarded – undo
647 649
 
648 650
     }
649 651
 
652
+    /**
653
+     * @param string $filter
654
+     * @param integer $page
655
+     */
650 656
     function returnSpecialCourses($user_id, $filter, $page)
651 657
     {
652 658
         if (empty($user_id)) {
@@ -745,6 +751,10 @@  discard block
 block discarded – undo
745 751
         return $html;
746 752
     }
747 753
 
754
+    /**
755
+     * @param string $filter
756
+     * @param integer $page
757
+     */
748 758
     public function returnSessionsCategories($user_id, $filter, $page)
749 759
     {
750 760
         if (empty($user_id)) {
@@ -1177,7 +1187,7 @@  discard block
 block discarded – undo
1177 1187
      * Shows a welcome message when the user doesn't have any content in
1178 1188
      * the course list
1179 1189
      * @param object A Template object used to declare variables usable in the given template
1180
-     * @return void
1190
+     * @return false|null
1181 1191
      */
1182 1192
     public function return_welcome_to_course_block($tpl)
1183 1193
     {
Please login to merge, or discard this patch.