Completed
Pull Request — 1.11.x (#1404)
by José
41:42
created
main/inc/lib/fileManage.lib.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
  * Deletes a file or a directory
40 40
  *
41 41
  * @author - Hugues Peeters
42
- * @param  $file (String) - the path of file or directory to delete
43
- * @return boolean - true if the delete succeed, false otherwise.
42
+ * @param  string $file (String) - the path of file or directory to delete
43
+ * @return boolean|null - true if the delete succeed, false otherwise.
44 44
  * @see    - delete() uses check_name_exist() and removeDir() functions
45 45
  */
46 46
 function my_delete($file)
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
  * @author Hugues Peeters <[email protected]>
128 128
  * @param  string $file_path complete path of the file or the directory
129 129
  * @param  string $new_file_name new name for the file or the directory
130
- * @return boolean true if succeed, false otherwise
130
+ * @return string|false true if succeed, false otherwise
131 131
  * @see rename() uses the check_name_exist() and php2phps() functions
132 132
  */
133 133
 function my_rename($file_path, $new_file_name) {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
  * @param  string $target the path of the new area
175 175
  * @param  bool $forceMove Whether to force a move or to make a copy (safer but slower) and then delete the original
176 176
  * @param	bool $moveContent In some cases (including migrations), we need to move the *content* and not the folder itself
177
- * @return bool true if the move succeed, false otherwise.
177
+ * @return boolean|null true if the move succeed, false otherwise.
178 178
  * @see move() uses check_name_exist() and copyDirTo() functions
179 179
  */
180 180
 function move($source, $target, $forceMove = false, $moveContent = false)
Please login to merge, or discard this patch.
main/inc/lib/skill.lib.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -326,6 +326,7 @@  discard block
 block discarded – undo
326 326
 
327 327
     /**
328 328
      * Gets an element
329
+     * @param integer $gradebook_id
329 330
      */
330 331
     public function get_skill_info($skill_id, $gradebook_id)
331 332
     {
@@ -544,7 +545,7 @@  discard block
 block discarded – undo
544 545
      * Gets an element
545 546
      * @param int $id
546 547
      *
547
-     * @return array|mixed
548
+     * @return integer
548 549
      */
549 550
     public function get($id)
550 551
     {
@@ -885,7 +886,7 @@  discard block
 block discarded – undo
885 886
     /**
886 887
      * Get user's skills
887 888
      *
888
-     * @param int $userId User's id
889
+     * @param integer $user_id User's id
889 890
      * @param bool $get_skill_data
890 891
      */
891 892
     public function get_user_skills($user_id, $get_skill_data = false)
@@ -1090,7 +1091,7 @@  discard block
 block discarded – undo
1090 1091
      * @param bool return a flat array or not
1091 1092
      * @param int depth of the skills
1092 1093
      * @param bool filter status
1093
-     * @return json
1094
+     * @return string
1094 1095
      */
1095 1096
     public function get_skills_tree_json($user_id = null, $skill_id = null, $return_flat_array = false, $main_depth = 2, $filter_status = false)
1096 1097
     {
Please login to merge, or discard this patch.
main/inc/lib/system_announcements.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@
 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,
Please login to merge, or discard this patch.
main/inc/lib/system/session.class.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
 class Session implements \ArrayAccess
15 15
 {
16 16
 
17
+    /**
18
+     * @param string $variable
19
+     */
17 20
     static function read($variable, $default = null)
18 21
     {
19 22
         return isset($_SESSION[$variable]) ? $_SESSION[$variable] : $default;
@@ -39,7 +42,7 @@  discard block
 block discarded – undo
39 42
      * Returns true if session has variable set up, false otherwise.
40 43
      *
41 44
      * @param string $variable
42
-     * @return mixed value
45
+     * @return boolean value
43 46
      */
44 47
     static function has($variable)
45 48
     {
Please login to merge, or discard this patch.
main/exercise/export/exercise_import.inc.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -949,7 +949,6 @@
 block discarded – undo
949 949
 /**
950 950
  * Processes an IMS/QTI manifest file: store links to new files to be able to transform them into questions text
951 951
  * @param string $filePath The absolute filepath
952
- * @param array $links List of filepaths changes
953 952
  * @return bool
954 953
  */
955 954
 function qtiProcessManifest($filePath)
Please login to merge, or discard this patch.
main/inc/lib/MoodleImport.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
      * Read and validate the quiz module XML
318 318
      *
319 319
      * @param resource $moduleXml XML file
320
-     * @return mixed | array if is a valid xml file, false otherwise
320
+     * @return string | array if is a valid xml file, false otherwise
321 321
      */
322 322
     public function readQuizModule($moduleXml)
323 323
     {
@@ -537,9 +537,9 @@  discard block
 block discarded – undo
537 537
      *
538 538
      * @param array $questionList
539 539
      * @param string $questionType
540
-     * @param object $questionInstance Question/Answer instance
540
+     * @param Question $questionInstance Question/Answer instance
541 541
      * @param array $currentQuestion
542
-     * @return integer db response
542
+     * @return boolean|null db response
543 543
      */
544 544
     public function processAnswers($questionList, $questionType, $questionInstance, $currentQuestion)
545 545
     {
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
     /**
666 666
      * Process Chamilo Unique Answer
667 667
      *
668
-     * @param object $objAnswer
668
+     * @param Answer $objAnswer
669 669
      * @param array $answerValues
670 670
      * @param integer $position
671 671
      * @param integer $questionWeighting
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
     /**
699 699
      * Process Chamilo True False
700 700
      *
701
-     * @param object $objAnswer
701
+     * @param Answer $objAnswer
702 702
      * @param array $answerValues
703 703
      * @param integer $position
704 704
      * @param integer $questionWeighting
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
     /**
732 732
      * Process Chamilo FillBlanks
733 733
      *
734
-     * @param object $objAnswer
734
+     * @param Answer $objAnswer
735 735
      * @param array $questionType
736 736
      * @param array $answerValues
737 737
      * @param string $placeholder
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
      * Litle utility to delete the unuseful tags
827 827
      *
828 828
      * @param $array
829
-     * @param $keys
829
+     * @param string[] $keys
830 830
      */
831 831
     public function traverseArray(&$array, $keys)
832 832
     {
Please login to merge, or discard this patch.
main/inc/lib/TicketManager.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -642,10 +642,10 @@  discard block
 block discarded – undo
642 642
     /**
643 643
      * Insert message between Users and Admins
644 644
      * @param $ticket_id
645
-     * @param $subject
646
-     * @param $content
645
+     * @param string $subject
646
+     * @param string $content
647 647
      * @param $file_attachments
648
-     * @param $user_id
648
+     * @param integer $user_id
649 649
      * @param string $status
650 650
      * @param bool $sendConfirmation
651 651
      * @return bool
@@ -744,9 +744,9 @@  discard block
 block discarded – undo
744 744
     /**
745 745
      * Attachment files when a message is sent
746 746
      * @param $file_attach
747
-     * @param $ticket_id
748
-     * @param $message_id
749
-     * @param $message_attch_id
747
+     * @param integer $ticket_id
748
+     * @param integer $message_id
749
+     * @param integer $message_attch_id
750 750
      * @return array
751 751
      */
752 752
     public static function save_message_attachment_file(
@@ -2006,7 +2006,7 @@  discard block
 block discarded – undo
2006 2006
     }
2007 2007
 
2008 2008
     /**
2009
-     * @param $id
2009
+     * @param integer $id
2010 2010
      * @return Project
2011 2011
      */
2012 2012
     public static function getProject($id)
@@ -2125,7 +2125,7 @@  discard block
 block discarded – undo
2125 2125
     }
2126 2126
 
2127 2127
     /**
2128
-     * @param $id
2128
+     * @param integer $id
2129 2129
      * @return Project
2130 2130
      */
2131 2131
     public static function getStatus($id)
@@ -2249,7 +2249,7 @@  discard block
 block discarded – undo
2249 2249
     }
2250 2250
 
2251 2251
     /**
2252
-     * @param $id
2252
+     * @param integer $id
2253 2253
      * @return Priority
2254 2254
      */
2255 2255
     public static function getPriority($id)
Please login to merge, or discard this patch.
main/inc/lib/internationalization.lib.php 1 patch
Doc Comments   +19 added lines, -12 removed lines patch added patch discarded remove patch
@@ -419,6 +419,7 @@  discard block
 block discarded – undo
419 419
  * If null, the timezone will be determined based on user preference,
420 420
  * or timezone chosen by the admin for the platform.
421 421
  * @param string The timezone to be converted from. If null, UTC will be assumed.
422
+ * @param string $to_timezone
422 423
  * @return string The converted time formatted as Y-m-d H:i:s
423 424
  *
424 425
  * @author Guillaume Viguier <[email protected]>
@@ -683,6 +684,8 @@  discard block
 block discarded – undo
683 684
  * @param mixed The time to be converted
684 685
  * @param mixed Format to be used (TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG)
685 686
  * @param string Timezone to be converted from. If null, UTC will be assumed.
687
+ * @param integer $format
688
+ * @param string $from_timezone
686 689
  * @return string Converted and localized date
687 690
  *
688 691
  * @author Guillaume Viguier <[email protected]>
@@ -752,7 +755,7 @@  discard block
 block discarded – undo
752 755
  * @param int|string $format (optional)	The person name format. It may be a pattern-string (for example '%t %l, %f' or '%T %F %L', ...) or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
753 756
  * @param string $language (optional)	The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
754 757
  * @param string $encoding (optional)	The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
755
- * @return bool							The result is sort of full name of the person.
758
+ * @return string							The result is sort of full name of the person.
756 759
  * Sample results:
757 760
  * Peter Ustinoff or Dr. Peter Ustinoff     - the Western order
758 761
  * Ustinoff Peter or Dr. Ustinoff Peter     - the Eastern order
@@ -1071,8 +1074,8 @@  discard block
 block discarded – undo
1071 1074
 
1072 1075
 /**
1073 1076
  * This function returns a string or an array with all occurrences of search in subject (ignoring case) replaced with the given replace value.
1074
- * @param mixed $search					String or array of strings to be found.
1075
- * @param mixed $replace				String or array of strings used for replacement.
1077
+ * @param string $search					String or array of strings to be found.
1078
+ * @param string $replace				String or array of strings used for replacement.
1076 1079
  * @param mixed $subject				String or array of strings being searched.
1077 1080
  * @param int $count (optional)			The number of matched and replaced needles will be returned in count, which is passed by reference.
1078 1081
  * @param string $encoding (optional)	The used internally by this function character encoding.
@@ -1135,10 +1138,10 @@  discard block
 block discarded – undo
1135 1138
 /**
1136 1139
  * Finds first occurrence of a string within another, case insensitive.
1137 1140
  * @param string $haystack					The string from which to get the first occurrence.
1138
- * @param mixed $needle						The string to be found.
1141
+ * @param string $needle						The string to be found.
1139 1142
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1140 1143
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1141
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1144
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1142 1145
  * Notes:
1143 1146
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1144 1147
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1194,7 +1197,7 @@  discard block
 block discarded – undo
1194 1197
  * @param mixed $needle						The string which first character is to be found.
1195 1198
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1196 1199
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1197
- * @return mixed							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1200
+ * @return false|string							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1198 1201
  * Notes:
1199 1202
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1200 1203
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence.
@@ -1261,7 +1264,7 @@  discard block
 block discarded – undo
1261 1264
  * @param mixed $needle						The string to be found.
1262 1265
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1263 1266
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1264
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1267
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1265 1268
  * Notes:
1266 1269
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1267 1270
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1442,8 +1445,8 @@  discard block
 block discarded – undo
1442 1445
 
1443 1446
 /**
1444 1447
  * Performs a regular expression search and replace, UTF-8 aware when it is applicable.
1445
- * @param string|array $pattern			The pattern to search for. It can be either a string or an array with strings.
1446
- * @param string|array $replacement		The string or an array with strings to replace.
1448
+ * @param string $pattern			The pattern to search for. It can be either a string or an array with strings.
1449
+ * @param string $replacement		The string or an array with strings to replace.
1447 1450
  * @param string|array $subject			The string or an array with strings to search and replace.
1448 1451
  * @param int $limit					The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit).
1449 1452
  * @param int &$count					If specified, this variable will be filled with the number of replacements done.
@@ -1591,7 +1594,7 @@  discard block
 block discarded – undo
1591 1594
 
1592 1595
 /**
1593 1596
  * This function checks whether two $encoding are equal (same, equvalent).
1594
- * @param string|array $encoding1		The first encoding
1597
+ * @param string $encoding1		The first encoding
1595 1598
  * @param string|array $encoding2		The second encoding
1596 1599
  * @param bool $strict					When this parameter is TRUE the comparison ignores aliases of encodings.
1597 1600
  * When the parameter is FALSE, aliases are taken into account.
@@ -1695,6 +1698,7 @@  discard block
 block discarded – undo
1695 1698
 /**
1696 1699
  * Checks a string for UTF-8 validity.
1697 1700
  *
1701
+ * @param string $string
1698 1702
  */
1699 1703
 function api_is_valid_utf8(&$string)
1700 1704
 {
@@ -1837,7 +1841,7 @@  discard block
 block discarded – undo
1837 1841
 /**
1838 1842
  * Replaces non-valid formats for person names with the default (English) format.
1839 1843
  * @param string $format	The input format to be verified.
1840
- * @return bool				Returns the same format if is is valid, otherwise returns a valid English format.
1844
+ * @return string				Returns the same format if is is valid, otherwise returns a valid English format.
1841 1845
  */
1842 1846
 function _api_validate_person_name_format($format) {
1843 1847
     if (empty($format) || stripos($format, '%f') === false || stripos($format, '%l') === false) {
@@ -1964,6 +1968,9 @@  discard block
 block discarded – undo
1964 1968
 
1965 1969
 // This function checks whether the function _api_convert_encoding() (the php-
1966 1970
 // implementation) is able to convert from/to a given encoding.
1971
+/**
1972
+ * @param string $encoding
1973
+ */
1967 1974
 function _api_convert_encoding_supports($encoding) {
1968 1975
     static $supports = array();
1969 1976
     if (!isset($supports[$encoding])) {
@@ -1974,7 +1981,7 @@  discard block
 block discarded – undo
1974 1981
 
1975 1982
 /**
1976 1983
  * Given a date object, return a human or ISO format, with or without h:m:s
1977
- * @param object $date The Date object
1984
+ * @param DateTime $date The Date object
1978 1985
  * @param bool $showTime Whether to show the time and date (true) or only the date (false)
1979 1986
  * @param bool $humanForm Whether to show day-month-year (true) or year-month-day (false)
1980 1987
  * @return string Formatted date
Please login to merge, or discard this patch.
main/inc/lib/usermanager.lib.php 1 patch
Doc Comments   +23 added lines, -16 removed lines patch added patch discarded remove patch
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * Validates the password
128 128
      *
129
-     * @param $encoded
130
-     * @param $raw
131
-     * @param $salt
129
+     * @param string $encoded
130
+     * @param string $raw
131
+     * @param string $salt
132 132
      * @return bool
133 133
      */
134 134
     public static function isPasswordValid($encoded, $raw, $salt)
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      * @param string $raw
144 144
      * @param User   $user
145 145
      *
146
-     * @return bool
146
+     * @return string
147 147
      */
148 148
     public static function encryptPassword($raw, User $user)
149 149
     {
@@ -1055,6 +1055,7 @@  discard block
 block discarded – undo
1055 1055
     /**
1056 1056
      * Disables a user
1057 1057
      * @param int User id
1058
+     * @param integer $user_id
1058 1059
      * @return bool
1059 1060
      * @uses UserManager::change_active_state() to actually disable the user
1060 1061
      * @assert (0) === false
@@ -1071,6 +1072,7 @@  discard block
 block discarded – undo
1071 1072
     /**
1072 1073
      * Enable a user
1073 1074
      * @param int User id
1075
+     * @param integer $user_id
1074 1076
      * @return bool
1075 1077
      * @uses UserManager::change_active_state() to actually disable the user
1076 1078
      * @assert (0) === false
@@ -1237,6 +1239,7 @@  discard block
 block discarded – undo
1237 1239
      * Checks whether the user id exists in the database
1238 1240
      *
1239 1241
      * @param int User id
1242
+     * @param integer $userId
1240 1243
      * @return bool True if user id was found, false otherwise
1241 1244
      */
1242 1245
     public static function is_user_id_valid($userId)
@@ -1378,7 +1381,7 @@  discard block
 block discarded – undo
1378 1381
     /**
1379 1382
      * Get a list of users of which the given conditions match with a LIKE '%cond%'
1380 1383
      * @param array $conditions a list of condition (exemple : status=>STUDENT)
1381
-     * @param array $order_by a list of fields on which sort
1384
+     * @param string[] $order_by a list of fields on which sort
1382 1385
      * @return array An array with all users of the platform.
1383 1386
      * @todo optional course code parameter, optional sorting parameters...
1384 1387
      * @todo security filter order_by
@@ -1435,7 +1438,7 @@  discard block
 block discarded – undo
1435 1438
      * @param   array $userInfo user information to avoid query the DB
1436 1439
      * returns the /main/img/unknown.jpg image set it at true
1437 1440
      *
1438
-     * @return    array     Array of 2 elements: 'dir' and 'file' which contain
1441
+     * @return    integer     Array of 2 elements: 'dir' and 'file' which contain
1439 1442
      * the dir and file as the name implies if image does not exist it will
1440 1443
      * return the unknow image if anonymous parameter is true if not it returns an empty array
1441 1444
      */
@@ -1845,7 +1848,7 @@  discard block
 block discarded – undo
1845 1848
     /**
1846 1849
      * Returns an array with the user's productions.
1847 1850
      *
1848
-     * @param    $user_id    User id
1851
+     * @param    integer $user_id    User id
1849 1852
      * @return   array  An array containing the user's productions
1850 1853
      */
1851 1854
     public static function get_user_productions($user_id)
@@ -2000,7 +2003,7 @@  discard block
 block discarded – undo
2000 2003
 
2001 2004
     /**
2002 2005
      * Build a list of extra file already uploaded in $user_folder/{$extra_field}/
2003
-     * @param $user_id
2006
+     * @param integer $user_id
2004 2007
      * @param $extra_field
2005 2008
      * @param bool $force
2006 2009
      * @param bool $showDelete
@@ -2105,7 +2108,7 @@  discard block
 block discarded – undo
2105 2108
      * @param    int       $fieldType  Field's type
2106 2109
      * @param    string    $displayText Field's language var name
2107 2110
      * @param    string    $default Field's default value
2108
-     * @return int
2111
+     * @return boolean
2109 2112
      */
2110 2113
     public static function create_extra_field($variable, $fieldType, $displayText, $default)
2111 2114
     {
@@ -2139,6 +2142,7 @@  discard block
 block discarded – undo
2139 2142
      * @param    boolean    Whether to prefix the fields indexes with "extra_" (might be used by formvalidator)
2140 2143
      * @param    boolean    Whether to return invisible fields as well
2141 2144
      * @param    boolean    Whether to split multiple-selection fields or not
2145
+     * @param boolean $field_filter
2142 2146
      * @return    array    Array of fields => value for the given user
2143 2147
      */
2144 2148
     public static function get_extra_user_data(
@@ -2413,6 +2417,7 @@  discard block
 block discarded – undo
2413 2417
     /**
2414 2418
      * Get extra user data by field variable
2415 2419
      * @param string    field variable
2420
+     * @param string $field_variable
2416 2421
      * @return array    data
2417 2422
      */
2418 2423
     public static function get_extra_user_data_by_field_variable($field_variable)
@@ -2977,7 +2982,7 @@  discard block
 block discarded – undo
2977 2982
      * @param    string  $user_id   User ID
2978 2983
      * @param   string  $course course directory
2979 2984
      * @param   string  $resourcetype resourcetype: images, all
2980
-     * @return    int        User ID (or false if not found)
2985
+     * @return    string        User ID (or false if not found)
2981 2986
      */
2982 2987
     public static function get_user_upload_files_by_course($user_id, $course, $resourcetype = 'all')
2983 2988
     {
@@ -3058,7 +3063,7 @@  discard block
 block discarded – undo
3058 3063
     /**
3059 3064
      * Adds a new API key to the users' account
3060 3065
      * @param   int     Optional user ID (defaults to the results of api_get_user_id())
3061
-     * @return  boolean True on success, false on failure
3066
+     * @return  false|string True on success, false on failure
3062 3067
      */
3063 3068
     public static function add_api_key($user_id = null, $api_service = 'dokeos')
3064 3069
     {
@@ -3113,6 +3118,7 @@  discard block
 block discarded – undo
3113 3118
      * Regenerate an API key from the user's account
3114 3119
      * @param   int     user ID (defaults to the results of api_get_user_id())
3115 3120
      * @param   string  API key's internal ID
3121
+     * @param string $api_service
3116 3122
      * @return  int        num
3117 3123
      */
3118 3124
     public static function update_api_key($user_id, $api_service)
@@ -3142,6 +3148,7 @@  discard block
 block discarded – undo
3142 3148
     /**
3143 3149
      * @param   int     user ID (defaults to the results of api_get_user_id())
3144 3150
      * @param   string    API key's internal ID
3151
+     * @param string $api_service
3145 3152
      * @return  int    row ID, or return false if not found
3146 3153
      */
3147 3154
     public static function get_api_key_id($user_id, $api_service)
@@ -3357,7 +3364,7 @@  discard block
 block discarded – undo
3357 3364
      * @param int $field_id
3358 3365
      * @param bool $show_links show links or not
3359 3366
      *
3360
-     * @return array
3367
+     * @return string
3361 3368
      */
3362 3369
     public static function get_user_tags_to_string($user_id, $field_id, $show_links = true)
3363 3370
     {
@@ -3454,7 +3461,7 @@  discard block
 block discarded – undo
3454 3461
      * @param mixed $tag
3455 3462
      * @param int $user_id
3456 3463
      * @param int $field_id field id of the tag
3457
-     * @return bool
3464
+     * @return boolean|null
3458 3465
      */
3459 3466
     public static function add_tag($tag, $user_id, $field_id)
3460 3467
     {
@@ -4896,7 +4903,7 @@  discard block
 block discarded – undo
4896 4903
     }
4897 4904
 
4898 4905
     /**
4899
-     * @return array
4906
+     * @return string[]
4900 4907
      */
4901 4908
     public static function get_user_field_types()
4902 4909
     {
@@ -5188,7 +5195,7 @@  discard block
 block discarded – undo
5188 5195
 
5189 5196
     /**
5190 5197
      * Get the boss user ID from a followed user id
5191
-     * @param $userId
5198
+     * @param integer $userId
5192 5199
      * @return bool
5193 5200
      */
5194 5201
     public static function getStudentBossList($userId)
@@ -5240,7 +5247,7 @@  discard block
 block discarded – undo
5240 5247
      * Get either a Gravatar URL or complete image tag for a specified email address.
5241 5248
      *
5242 5249
      * @param string $email The email address
5243
-     * @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ]
5250
+     * @param integer $s Size in pixels, defaults to 80px [ 1 - 2048 ]
5244 5251
      * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ]
5245 5252
      * @param string $r Maximum rating (inclusive) [ g | pg | r | x ]
5246 5253
      * @param boole $img True to return a complete IMG tag False for just the URL
Please login to merge, or discard this patch.