Completed
Push — 1.11.x ( c0f658...e2faf7 )
by José
36:56
created
main/inc/lib/formvalidator/FormValidator.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
     /**
911 911
      * This function has been created for avoiding changes directly within QuickForm class.
912 912
      * When we use it, the element is threated as 'required' to be dealt during validation.
913
-     * @param array $element The array of elements
913
+     * @param array $elements The array of elements
914 914
      * @param string $message The message displayed
915 915
      */
916 916
     public function add_multiple_required_rule($elements, $message)
@@ -1186,12 +1186,12 @@  discard block
 block discarded – undo
1186 1186
     }
1187 1187
 
1188 1188
     /**
1189
-     * @param $name
1189
+     * @param string $name
1190 1190
      * @param $label
1191 1191
      * @param bool $required
1192 1192
      * @param array $attributes
1193 1193
      * @param bool $allowNegative
1194
-     * @param null $minValue
1194
+     * @param integer $minValue
1195 1195
      * @param null $maxValue
1196 1196
      */
1197 1197
     public function addFloat(
Please login to merge, or discard this patch.
main/inc/lib/social.lib.php 1 patch
Doc Comments   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,6 +65,8 @@  discard block
 block discarded – undo
65 65
      * @param int user id
66 66
      * @param int user friend id
67 67
      * @param string
68
+     * @param integer $user_id
69
+     * @param integer $user_friend
68 70
      * @author isaac flores paz
69 71
      */
70 72
     public static function get_relation_between_contacts($user_id, $user_friend)
@@ -96,6 +98,8 @@  discard block
 block discarded – undo
96 98
      * @param int group id
97 99
      * @param string name to search
98 100
      * @param bool true will load firstname, lastname, and image name
101
+     * @param integer $user_id
102
+     * @param integer $id_group
99 103
      * @return array
100 104
      * @author Julio Montoya <[email protected]> Cleaning code, function renamed, $load_extra_info option added
101 105
      * @author isaac flores paz
@@ -173,6 +177,9 @@  discard block
 block discarded – undo
173 177
      * @param int user friend id
174 178
      * @param string title of the message
175 179
      * @param string content of the message
180
+     * @param integer $user_id
181
+     * @param string $message_title
182
+     * @param string $message_content
176 183
      * @return boolean
177 184
      * @author isaac flores paz
178 185
      * @author Julio Montoya <[email protected]> Cleaning code
@@ -247,6 +254,7 @@  discard block
 block discarded – undo
247 254
      * Get number messages of the inbox
248 255
      * @author isaac flores paz
249 256
      * @param int user receiver id
257
+     * @param integer $user_receiver_id
250 258
      * @return int
251 259
      */
252 260
     public static function get_message_number_invitation_by_user_id($user_receiver_id)
@@ -289,6 +297,7 @@  discard block
 block discarded – undo
289 297
      * Get invitation list sent by user
290 298
      * @author Julio Montoya <[email protected]>
291 299
      * @param int user id
300
+     * @param integer $user_id
292 301
      * @return array()
293 302
      */
294 303
     public static function get_list_invitation_sent_by_user_id($user_id)
@@ -331,6 +340,7 @@  discard block
 block discarded – undo
331 340
      * Denies invitation
332 341
      * @param int user sender id
333 342
      * @param int user receiver id
343
+     * @param integer $user_receiver_id
334 344
      * @author isaac flores paz
335 345
      * @author Julio Montoya <[email protected]> Cleaning code
336 346
      */
@@ -425,7 +435,7 @@  discard block
 block discarded – undo
425 435
      * @param string $subject
426 436
      * @param string $content
427 437
      *
428
-     * @return string message invitation
438
+     * @return false|null message invitation
429 439
      */
430 440
     public static function sendInvitationToUser($userId, $subject = '', $content = '')
431 441
     {
@@ -1225,7 +1235,7 @@  discard block
 block discarded – undo
1225 1235
      * @param string $messageContent of the message
1226 1236
      * @param int $messageId id parent
1227 1237
      * @param string $messageStatus status type of message
1228
-     * @return boolean
1238
+     * @return false|string
1229 1239
      * @author Yannick Warnier
1230 1240
      */
1231 1241
     public static function sendWallMessage($userId, $friendId, $messageContent, $messageId = 0, $messageStatus = '')
@@ -1317,7 +1327,7 @@  discard block
 block discarded – undo
1317 1327
      * Gets all messages from someone's wall (within specific limits)
1318 1328
      * @param int $userId id of wall shown
1319 1329
      * @param string $messageStatus status wall message
1320
-     * @param int|string $parentId id message (Post main)
1330
+     * @param integer|null $parentId id message (Post main)
1321 1331
      * @param string $start Date from which we want to show the messages, in UTC time
1322 1332
      * @param int $limit Limit for the number of parent messages we want to show
1323 1333
      * @param int $offset Wall message query offset
@@ -1602,7 +1612,7 @@  discard block
 block discarded – undo
1602 1612
 
1603 1613
     /**
1604 1614
      * verify if Url Exist - Using Curl
1605
-     * @param $uri url
1615
+     * @param string $uri url
1606 1616
      *
1607 1617
      * @return boolean
1608 1618
      */
@@ -1628,7 +1638,7 @@  discard block
 block discarded – undo
1628 1638
     /**
1629 1639
     * Delete messages delete logic
1630 1640
     * @param int $id id message to delete.
1631
-    * @return bool status query
1641
+    * @return Statement|null status query
1632 1642
     */
1633 1643
     public static function deleteMessage($id)
1634 1644
     {
Please login to merge, or discard this patch.
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.