Completed
Push — 1.11.x ( fba1ad...d3f8ec )
by José
61:34 queued 31:12
created
main/inc/lib/course.lib.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -748,7 +748,7 @@  discard block
 block discarded – undo
748 748
      * @param  string $courseCode the course code
749 749
      * @param  int $visible (optional) The course visibility in the catalogue to the user (1=visible, 0=invisible)
750 750
      *
751
-     * @return boolean true if added succesfully, false otherwise.
751
+     * @return boolean|string true if added succesfully, false otherwise.
752 752
      */
753 753
     public static function addUserVisibilityToCourseInCatalogue($userId, $courseCode, $visible = 1)
754 754
     {
@@ -2620,7 +2620,7 @@  discard block
 block discarded – undo
2620 2620
      * then the courses that the user is allowed or not to see in catalogue
2621 2621
      *
2622 2622
      * @param boolean $allowed Either if the courses have some users that are or are not allowed to see in catalogue
2623
-     * @param boolean $byUserId if the courses are or are not allowed to see to the user
2623
+     * @param integer $byUserId if the courses are or are not allowed to see to the user
2624 2624
      * @return array Course codes allowed or not to see in catalogue by some user or the user
2625 2625
      */
2626 2626
     public static function getCatalogueCourseList($allowed = true, $byUserId = -1)
@@ -3164,6 +3164,7 @@  discard block
 block discarded – undo
3164 3164
      * @param int $limit
3165 3165
      * @param string $column
3166 3166
      * @param string $direction
3167
+     * @param integer $status
3167 3168
      * @return array    courses
3168 3169
      */
3169 3170
     public static function get_courses_followed_by_drh(
Please login to merge, or discard this patch.
plugin/buycourses/src/buy_course_plugin.class.php 1 patch
Doc Comments   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     /**
52 52
      *
53
-     * @return StaticPlugin
53
+     * @return BuyCoursesPlugin
54 54
      */
55 55
     static function create()
56 56
     {
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     /**
279 279
      * Save a transfer account information
280 280
      * @param array $params The transfer account
281
-     * @return int Rows affected. Otherwise return false
281
+     * @return false|string Rows affected. Otherwise return false
282 282
      */
283 283
     public function saveTransferAccount($params)
284 284
     {
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
     /**
692 692
      * Get session info
693 693
      * @param array $sessionId The session ID
694
-     * @return array
694
+     * @return Session
695 695
      */
696 696
     public function getSessionInfo($sessionId)
697 697
     {
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
      * Register a sale
785 785
      * @param int $itemId The product ID
786 786
      * @param int $paymentType The payment type
787
-     * @return boolean
787
+     * @return false|string
788 788
      */
789 789
     public function registerSale($itemId, $paymentType)
790 790
     {
@@ -966,7 +966,7 @@  discard block
 block discarded – undo
966 966
 
967 967
     /**
968 968
      * Get payment types
969
-     * @return array
969
+     * @return string[]
970 970
      */
971 971
     public function getPaymentTypes()
972 972
     {
@@ -1005,7 +1005,7 @@  discard block
 block discarded – undo
1005 1005
 
1006 1006
     /**
1007 1007
      * Get the statuses for sales
1008
-     * @return array
1008
+     * @return string[]
1009 1009
      */
1010 1010
     public function getSaleStatuses()
1011 1011
     {
@@ -1018,7 +1018,7 @@  discard block
 block discarded – undo
1018 1018
 
1019 1019
     /**
1020 1020
      * Get the statuses for Payouts
1021
-     * @return array
1021
+     * @return string[]
1022 1022
      */
1023 1023
     public function getPayoutStatuses()
1024 1024
     {
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
 
1032 1032
     /**
1033 1033
      * Get the list of product types
1034
-     * @return array
1034
+     * @return string[]
1035 1035
      */
1036 1036
     public function getProductTypes()
1037 1037
     {
@@ -1043,7 +1043,7 @@  discard block
 block discarded – undo
1043 1043
 
1044 1044
     /**
1045 1045
      * Get the list of service types
1046
-     * @return array
1046
+     * @return string[]
1047 1047
      */
1048 1048
     public function getServiceTypes()
1049 1049
     {
@@ -1426,7 +1426,7 @@  discard block
 block discarded – undo
1426 1426
     /**
1427 1427
      * Register a item
1428 1428
      * @param array $itemData The item data
1429
-     * @return int The item ID. Otherwise return false
1429
+     * @return false|string The item ID. Otherwise return false
1430 1430
      */
1431 1431
     public function registerItem(array $itemData)
1432 1432
     {
@@ -1584,7 +1584,7 @@  discard block
 block discarded – undo
1584 1584
     /**
1585 1585
      * Verify if the beneficiary have a paypal account
1586 1586
      * @param int $userId
1587
-     * @return true if the user have a paypal account, false if not
1587
+     * @return boolean if the user have a paypal account, false if not
1588 1588
      */
1589 1589
     public function verifyPaypalAccountByBeneficiary($userId)
1590 1590
     {
@@ -1706,7 +1706,7 @@  discard block
 block discarded – undo
1706 1706
     /**
1707 1707
      * Register addicional service
1708 1708
      * @param array params $service
1709
-     * @return mixed response
1709
+     * @return false|string response
1710 1710
      */
1711 1711
     public function storeService($service)
1712 1712
     {
@@ -1862,7 +1862,7 @@  discard block
 block discarded – undo
1862 1862
 
1863 1863
     /**
1864 1864
      * Get the statuses for sales
1865
-     * @return array
1865
+     * @return string[]
1866 1866
      */
1867 1867
     public function getServiceSaleStatuses()
1868 1868
     {
@@ -2123,7 +2123,7 @@  discard block
 block discarded – undo
2123 2123
      * @param int $paymentType The payment type
2124 2124
      * @param int $infoSelect The ID for Service Type
2125 2125
      * @param int $trial trial mode
2126
-     * @return boolean
2126
+     * @return false|string
2127 2127
      */
2128 2128
     public function registerServiceSale($serviceId, $paymentType, $infoSelect, $trial = null)
2129 2129
     {
Please login to merge, or discard this patch.
main/inc/lib/agenda.lib.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
      * @param bool $addAnnouncement
682 682
      * @param bool $updateContent
683 683
      *
684
-     * @return null|false
684
+     * @return null|boolean
685 685
      */
686 686
     public function editEvent(
687 687
         $id,
@@ -1382,6 +1382,7 @@  discard block
 block discarded – undo
1382 1382
      * Gets a single event
1383 1383
      *
1384 1384
      * @param int event id
1385
+     * @param integer $id
1385 1386
      * @return array
1386 1387
      */
1387 1388
     public function get_event($id)
Please login to merge, or discard this patch.
main/exercise/exercise_result.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @param int $user_id User ID. Optional. If no user ID is provided, we take all the results. Defauts to null
37 37
      * @param int $filter
38 38
      * @param int $exercise_id
39
-     * @param null $hotpotato_name
39
+     * @param string|null $hotpotato_name
40 40
      * @return bool
41 41
      */
42 42
     public function getExercisesReporting(
Please login to merge, or discard this patch.
main/work/work.lib.php 1 patch
Doc Comments   +14 added lines, -12 removed lines patch added patch discarded remove patch
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
  * @author Bert Vanderkimpen
729 729
  * @author Yannick Warnier <[email protected]> Adaptation for work tool
730 730
  * @param   string $base_work_dir Base work dir (.../work)
731
- * @param   string $desiredDirName complete path of the desired name
731
+ * @param   string $desired_dir_name complete path of the desired name
732 732
  *
733 733
  * @return  string actual directory name if it succeeds, boolean false otherwise
734 734
  */
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
 /**
751 751
  * Delete a work-tool directory
752 752
  * @param   int  $id work directory id to delete
753
- * @return  integer -1 on error
753
+ * @return  boolean|null -1 on error
754 754
  */
755 755
 function deleteDirWork($id)
756 756
 {
@@ -907,7 +907,7 @@  discard block
 block discarded – undo
907 907
  * Update the url of a dir in the student_publication table
908 908
  * @param  array $work_data work original data
909 909
  * @param  string $newPath Example: "folder1"
910
- * @return bool
910
+ * @return boolean|null
911 911
  */
912 912
 function updateDirName($work_data, $newPath)
913 913
 {
@@ -966,6 +966,7 @@  discard block
 block discarded – undo
966 966
 /**
967 967
  * Transform an all directory structure (only directories) in an array
968 968
  * @param   string path of the directory
969
+ * @param string $directory
969 970
  * @return  array the directory structure into an array
970 971
  * @author  Julio Montoya
971 972
  * @version April 2008
@@ -1040,7 +1041,7 @@  discard block
 block discarded – undo
1040 1041
  * @param   string the path of the directory
1041 1042
  * @param   boolean true if we want the total quantity of files
1042 1043
  * include in others child directories, false only  files in the directory
1043
- * @return  array the first element is an integer with the number of files
1044
+ * @return  integer[] the first element is an integer with the number of files
1044 1045
  * in the folder, the second element is the number of directories
1045 1046
  * @author  Julio Montoya
1046 1047
  * @version April 2008
@@ -2804,7 +2805,7 @@  discard block
 block discarded – undo
2804 2805
  * @param int $userId
2805 2806
  * @param int $workId
2806 2807
  * @param int $courseId
2807
- * @return bool
2808
+ * @return boolean|null
2808 2809
  */
2809 2810
 function allowOnlySubscribedUser($userId, $workId, $courseId)
2810 2811
 {
@@ -3081,6 +3082,7 @@  discard block
 block discarded – undo
3081 3082
  * @param array $parentInfo
3082 3083
  * @param array $courseInfo
3083 3084
  * @param int $sessionId
3085
+ * @param integer $userId
3084 3086
  * @return int
3085 3087
  */
3086 3088
 function getLastWorkStudentFromParentByUser(
@@ -3226,7 +3228,7 @@  discard block
 block discarded – undo
3226 3228
  * @param int $userId
3227 3229
  * @param array $work
3228 3230
  * @param array $data
3229
- * @return int
3231
+ * @return false|null
3230 3232
  */
3231 3233
 function addWorkComment($courseInfo, $userId, $parentWork, $work, $data)
3232 3234
 {
@@ -4409,7 +4411,7 @@  discard block
 block discarded – undo
4409 4411
 }
4410 4412
 
4411 4413
 /**
4412
- * @return array
4414
+ * @return string[]
4413 4415
  */
4414 4416
 function getUploadDocumentType()
4415 4417
 {
@@ -4797,7 +4799,7 @@  discard block
 block discarded – undo
4797 4799
  * @param int Session ID
4798 4800
  * @param $correction
4799 4801
  *
4800
- * @return array|bool
4802
+ * @return boolean
4801 4803
  */
4802 4804
 function getFileContents($id, $course_info, $sessionId = 0, $correction = false)
4803 4805
 {
@@ -4915,7 +4917,7 @@  discard block
 block discarded – undo
4915 4917
  * @param int $userId
4916 4918
  * @param array $courseInfo
4917 4919
  * @param string $format
4918
- * @return bool
4920
+ * @return false|null
4919 4921
  */
4920 4922
 function exportAllWork($userId, $courseInfo, $format = 'pdf')
4921 4923
 {
@@ -4961,7 +4963,7 @@  discard block
 block discarded – undo
4961 4963
  * @param array $courseInfo
4962 4964
  * @param int $sessionId
4963 4965
  * @param string $format
4964
- * @return bool
4966
+ * @return false|null
4965 4967
  */
4966 4968
 function exportAllStudentWorkFromPublication(
4967 4969
     $workId,
@@ -5096,7 +5098,7 @@  discard block
 block discarded – undo
5096 5098
  * Downloads all user files per user
5097 5099
  * @param int $userId
5098 5100
  * @param array $courseInfo
5099
- * @return bool
5101
+ * @return false|null
5100 5102
  */
5101 5103
 function downloadAllFilesPerUser($userId, $courseInfo)
5102 5104
 {
@@ -5210,7 +5212,7 @@  discard block
 block discarded – undo
5210 5212
 /**
5211 5213
  * @param array $courseInfo
5212 5214
  * @param int $workId
5213
- * @return bool
5215
+ * @return boolean|null
5214 5216
  */
5215 5217
 function protectWork($courseInfo, $workId)
5216 5218
 {
Please login to merge, or discard this patch.