Completed
Push — 1.11.x ( 3ca1af...7f27ad )
by José
93:15 queued 54:45
created
main/auth/openid/openid.lib.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -242,6 +242,9 @@  discard block
 block discarded – undo
242 242
     return $hmac;
243 243
 }
244 244
 
245
+/**
246
+ * @param string|false $text
247
+ */
245 248
 function _openid_sha1($text) {
246 249
     $hex = sha1($text);
247 250
     $raw = '';
@@ -404,6 +407,10 @@  discard block
 block discarded – undo
404 407
  */
405 408
 if (!function_exists('bcpowmod')) {
406 409
 
410
+    /**
411
+     * @param string $exp
412
+     * @param string $mod
413
+     */
407 414
     function bcpowmod($base, $exp, $mod) {
408 415
         $square = bcmod($base, $mod);
409 416
         $result = 1;
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/Language.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
     /**
231 231
      * Get id
232 232
      *
233
-     * @return boolean
233
+     * @return integer
234 234
      */
235 235
     public function getId()
236 236
     {
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Component/CourseCopy/CourseBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     }
92 92
 
93 93
     /**
94
-     * @param array $array
94
+     * @param string[] $array
95 95
      */
96 96
     public function set_tools_to_build($array)
97 97
     {
Please login to merge, or discard this patch.
main/forum/forumfunction.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3054,7 +3054,7 @@
 block discarded – undo
3054 3054
  * @param integer $thread_qualify
3055 3055
  * @param integer $qualify_time
3056 3056
  * @param integer $session_id
3057
- * @return array optional
3057
+ * @return string|null optional
3058 3058
  * @author Isaac Flores <[email protected]>, U.N.A.S University
3059 3059
  * @version October 2008, dokeos  1.8.6
3060 3060
  */
Please login to merge, or discard this patch.
main/inc/lib/api.lib.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1244,6 +1244,7 @@  discard block
 block discarded – undo
1244 1244
  * Gets the list of courses a specific user is subscribed to
1245 1245
  * @param int       User ID
1246 1246
  * @param boolean   $fetch_session Whether to get session courses or not - NOT YET IMPLEMENTED
1247
+ * @param integer $userid
1247 1248
  * @return array    Array of courses in the form [0]=>('code'=>xxx,'db'=>xxx,'dir'=>xxx,'status'=>d)
1248 1249
  */
1249 1250
 function api_get_user_courses($userid, $fetch_session = true)
@@ -3036,7 +3037,7 @@  discard block
 block discarded – undo
3036 3037
 * on the session visibility
3037 3038
 * @param bool $tutor  Whether to check if the user has the tutor role
3038 3039
 * @param bool  $coach Whether to check if the user has the coach role
3039
-* @return boolean true: the user has the rights to edit, false: he does not
3040
+* @return boolean|null true: the user has the rights to edit, false: he does not
3040 3041
 */
3041 3042
 function api_is_allowed_to_session_edit($tutor = false, $coach = false)
3042 3043
 {
@@ -6656,7 +6657,7 @@  discard block
 block discarded – undo
6656 6657
 /**
6657 6658
  * Returns an array of global configuration settings which should be ignored
6658 6659
  * when printing the configuration settings screens
6659
- * @return array Array of strings, each identifying one of the excluded settings
6660
+ * @return string[] Array of strings, each identifying one of the excluded settings
6660 6661
  */
6661 6662
 function api_get_locked_settings() {
6662 6663
     return array(
@@ -6699,6 +6700,7 @@  discard block
 block discarded – undo
6699 6700
  * false if he isn't. If the user ID is given and is an integer, then the same
6700 6701
  * ID is simply returned
6701 6702
  * @param  integer User ID
6703
+ * @param integer $user_id
6702 6704
  * @return boolean Integer User ID is logged in, or false otherwise
6703 6705
  */
6704 6706
 function api_user_is_login($user_id = null) {
@@ -7143,6 +7145,7 @@  discard block
 block discarded – undo
7143 7145
 /**
7144 7146
  * Gets memory limit in bytes
7145 7147
  * @param string The memory size (128M, 1G, 1000K, etc)
7148
+ * @param string $mem
7146 7149
  * @return int
7147 7150
  * @assert (null) === false
7148 7151
  * @assert ('1t')  === 1099511627776
Please login to merge, or discard this patch.
main/inc/lib/course_request.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      * @param string $objetives
52 52
      * @param string $target_audience
53 53
      * @param int $user_id
54
-     * @return mixed The database id of the newly created course request or FALSE on failure.
54
+     * @return false|string The database id of the newly created course request or FALSE on failure.
55 55
      */
56 56
     public static function create_course_request(
57 57
         $wanted_code,
Please login to merge, or discard this patch.
main/inc/lib/document.lib.php 1 patch
Doc Comments   +24 added lines, -19 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     /**
278 278
      *  @param string
279 279
      *  @param string
280
-     * 	@return true if the user is allowed to see the document, false otherwise
280
+     * 	@return boolean if the user is allowed to see the document, false otherwise
281 281
      * 	@author Sergio A Kessler, first version
282 282
      * 	@author Roan Embrechts, bugfix
283 283
      *  @todo not only check if a file is visible, but also check if the user is allowed to see the file??
@@ -1529,7 +1529,7 @@  discard block
 block discarded – undo
1529 1529
      * Return true if the documentpath have visibility=1 as
1530 1530
      * item_property (you should use the is_visible_by_id)
1531 1531
      *
1532
-     * @param string $document_path the relative complete path of the document
1532
+     * @param string $doc_path the relative complete path of the document
1533 1533
      * @param array  $course the _course array info of the document's course
1534 1534
      * @param int
1535 1535
      * @param string
@@ -1614,6 +1614,8 @@  discard block
 block discarded – undo
1614 1614
      * @param   int
1615 1615
      * @param   int
1616 1616
      * @param bool
1617
+     * @param integer $session_id
1618
+     * @param integer $user_id
1617 1619
      * @return  bool
1618 1620
      */
1619 1621
     public static function is_visible_by_id(
@@ -1965,7 +1967,7 @@  discard block
 block discarded – undo
1965 1967
      * Remove default certificate
1966 1968
      * @param string $course_id The course code
1967 1969
      * @param int $default_certificate_id The document id of the default certificate
1968
-     * @return void
1970
+     * @return false|null
1969 1971
      */
1970 1972
     public static function remove_attach_certificate($course_id, $default_certificate_id)
1971 1973
     {
@@ -2100,6 +2102,7 @@  discard block
 block discarded – undo
2100 2102
      * @param	bool  	is file or string html
2101 2103
      * @param	string	type (one of the app tools) - optional (otherwise takes the current item's type)
2102 2104
      * @param	int		level of recursivity we're in
2105
+     * @param string $source_html
2103 2106
      * @return	array	List of file paths. An additional field containing 'local' or 'remote' helps determine
2104 2107
      * if the file should be copied into the zip or just linked
2105 2108
      */
@@ -2938,6 +2941,7 @@  discard block
 block discarded – undo
2938 2941
 
2939 2942
     /**
2940 2943
      * Obtains the text inside the file with the right parser
2944
+     * @param string $doc_path
2941 2945
      */
2942 2946
     public static function get_text_content($doc_path, $doc_mime)
2943 2947
     {
@@ -3188,6 +3192,7 @@  discard block
 block discarded – undo
3188 3192
      * Shows a play icon next to the document title in the document list
3189 3193
      * @param int
3190 3194
      * @param string
3195
+     * @param integer|null $i
3191 3196
      * @return string	html content
3192 3197
      */
3193 3198
     static function generate_media_preview($i, $type = 'simple')
@@ -3581,7 +3586,7 @@  discard block
 block discarded – undo
3581 3586
      * @param bool $add_move_button
3582 3587
      * @param string $target
3583 3588
      * @param string $overwrite_url
3584
-     * @return null|string
3589
+     * @return string
3585 3590
      */
3586 3591
     private static function parseFile(
3587 3592
         $course_info,
@@ -4086,7 +4091,7 @@  discard block
 block discarded – undo
4086 4091
     }
4087 4092
 
4088 4093
     /**
4089
-     * @return array
4094
+     * @return string[]
4090 4095
      */
4091 4096
     public static function get_web_odf_extension_list()
4092 4097
     {
@@ -4095,10 +4100,10 @@  discard block
 block discarded – undo
4095 4100
 
4096 4101
     /**
4097 4102
      * Set of extension allowed to use Jodconverter
4098
-     * @param $mode 'from'
4103
+     * @param string $mode 'from'
4099 4104
      *              'to'
4100 4105
      *              'all'
4101
-     * @param $format   'text'
4106
+     * @param string $format   'text'
4102 4107
      *                  'spreadsheet'
4103 4108
      *                  'presentation'
4104 4109
      *                  'drawing'
@@ -4302,7 +4307,7 @@  discard block
 block discarded – undo
4302 4307
     }
4303 4308
 
4304 4309
     /**
4305
-     * @return array
4310
+     * @return string[]
4306 4311
      */
4307 4312
     public static function get_system_folders()
4308 4313
     {
@@ -4320,7 +4325,7 @@  discard block
 block discarded – undo
4320 4325
     }
4321 4326
 
4322 4327
     /**
4323
-     * @return array
4328
+     * @return string[]
4324 4329
      */
4325 4330
     public static function getProtectedFolderFromStudent()
4326 4331
     {
@@ -4476,7 +4481,7 @@  discard block
 block discarded – undo
4476 4481
      * Requires the ffmpeg lib. In ubuntu: sudo apt-get install ffmpeg
4477 4482
      * @param string $wavFile
4478 4483
      * @param bool $removeWavFileIfSuccess
4479
-     * @return bool
4484
+     * @return string|false
4480 4485
      */
4481 4486
     public static function convertWavToMp3($wavFile, $removeWavFileIfSuccess = false)
4482 4487
     {
@@ -5051,6 +5056,8 @@  discard block
 block discarded – undo
5051 5056
      * @param string	The current folder (path inside of the "document" directory, including the prefix "/")
5052 5057
      * @param string	Group directory, if empty, prevents documents to be uploaded (because group documents cannot be uploaded in root)
5053 5058
      * @param	boolean	Whether to change the renderer (this will add a template <span> to the QuickForm object displaying the form)
5059
+     * @param string $document_id
5060
+     * @param FormValidator $form
5054 5061
 
5055 5062
      * @return string html form
5056 5063
      */
@@ -5560,9 +5567,6 @@  discard block
 block discarded – undo
5560 5567
     /**
5561 5568
      * Creates the row of edit icons for a file/folder
5562 5569
      *
5563
-     * @param string $curdirpath current path (cfr open folder)
5564
-     * @param string $type (file/folder)
5565
-     * @param string $path dbase path of file/folder
5566 5570
      * @param int $visibility (1/0)
5567 5571
      * @param int $id dbase id of the document
5568 5572
      * @return string html img tags with hyperlinks
@@ -5894,7 +5898,7 @@  discard block
 block discarded – undo
5894 5898
     /**
5895 5899
      * Gets the path translated with title of docs and folders
5896 5900
      * @param string $path the real path
5897
-     * @return the path which should be displayed
5901
+     * @return string path which should be displayed
5898 5902
      */
5899 5903
     public static function get_titles_of_path($path)
5900 5904
     {
@@ -5949,7 +5953,8 @@  discard block
 block discarded – undo
5949 5953
 
5950 5954
     /**
5951 5955
      * Checks whether the user is in shared folder
5952
-     * @return return bool Return true when user is into shared folder
5956
+     * @param integer $current_session_id
5957
+     * @return boolean bool Return true when user is into shared folder
5953 5958
      */
5954 5959
     public static function is_shared_folder($curdirpath, $current_session_id)
5955 5960
     {
@@ -5965,7 +5970,7 @@  discard block
 block discarded – undo
5965 5970
 
5966 5971
     /**
5967 5972
      * Checks whether the user is into any user shared folder
5968
-     * @return return bool Return true when user is in any user shared folder
5973
+     * @return boolean bool Return true when user is in any user shared folder
5969 5974
      */
5970 5975
     public static function is_any_user_shared_folder($path, $current_session_id)
5971 5976
     {
@@ -6179,7 +6184,7 @@  discard block
 block discarded – undo
6179 6184
      * @param int $id
6180 6185
      * @param array $courseInfo
6181 6186
      * @param int $sessionId
6182
-     * @return bool
6187
+     * @return boolean|null
6183 6188
      */
6184 6189
     public static function downloadDeletedDocument($id, $courseInfo, $sessionId)
6185 6190
     {
@@ -6198,7 +6203,7 @@  discard block
 block discarded – undo
6198 6203
      * @param array $courseInfo
6199 6204
      * @param int $sessionId
6200 6205
      *
6201
-     * @return bool
6206
+     * @return false|null
6202 6207
      */
6203 6208
     public static function downloadAllDeletedDocument($courseInfo, $sessionId)
6204 6209
     {
@@ -6237,7 +6242,7 @@  discard block
 block discarded – undo
6237 6242
      * @param array $courseInfo
6238 6243
      * @param int $sessionId
6239 6244
      *
6240
-     * @return bool
6245
+     * @return false|null
6241 6246
      */
6242 6247
     public function deleteDocumentsFromSession($courseInfo, $sessionId)
6243 6248
     {
Please login to merge, or discard this patch.
main/inc/lib/fileManage.lib.php 1 patch
Doc Comments   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,6 +13,8 @@  discard block
 block discarded – undo
13 13
  * @param  - action (string) - action type require : 'delete' or 'update'
14 14
  * @param  - old_path (string) - old path info stored to change
15 15
  * @param  - new_path (string) - new path info to substitute
16
+ * @param string $action
17
+ * @param string $old_path
16 18
  * @desc Update the file or directory path in the document db document table
17 19
  *
18 20
  */
@@ -75,8 +77,8 @@  discard block
 block discarded – undo
75 77
  * Deletes a file or a directory
76 78
  *
77 79
  * @author - Hugues Peeters
78
- * @param  $file (String) - the path of file or directory to delete
79
- * @return boolean - true if the delete succeed, false otherwise.
80
+ * @param  string $file (String) - the path of file or directory to delete
81
+ * @return boolean|null - true if the delete succeed, false otherwise.
80 82
  * @see    - delete() uses check_name_exist() and removeDir() functions
81 83
  */
82 84
 function my_delete($file)
@@ -163,7 +165,7 @@  discard block
 block discarded – undo
163 165
  * @author Hugues Peeters <[email protected]>
164 166
  * @param  string $file_path complete path of the file or the directory
165 167
  * @param  string $new_file_name new name for the file or the directory
166
- * @return boolean true if succeed, false otherwise
168
+ * @return string|false true if succeed, false otherwise
167 169
  * @see rename() uses the check_name_exist() and php2phps() functions
168 170
  */
169 171
 function my_rename($file_path, $new_file_name) {
@@ -209,7 +211,7 @@  discard block
 block discarded – undo
209 211
  * @param  string $target the path of the new area
210 212
  * @param  bool $forceMove Whether to force a move or to make a copy (safer but slower) and then delete the original
211 213
  * @param	bool $moveContent In some cases (including migrations), we need to move the *content* and not the folder itself
212
- * @return bool true if the move succeed, false otherwise.
214
+ * @return boolean|null true if the move succeed, false otherwise.
213 215
  * @see move() uses check_name_exist() and copyDirTo() functions
214 216
  */
215 217
 function move($source, $target, $forceMove = false, $moveContent = false)
Please login to merge, or discard this patch.
main/inc/lib/internationalization.lib.php 1 patch
Doc Comments   +20 added lines, -14 removed lines patch added patch discarded remove patch
@@ -422,6 +422,7 @@  discard block
 block discarded – undo
422 422
  * If null, the timezone will be determined based on user preference,
423 423
  * or timezone chosen by the admin for the platform.
424 424
  * @param string The timezone to be converted from. If null, UTC will be assumed.
425
+ * @param string $to_timezone
425 426
  * @return string The converted time formatted as Y-m-d H:i:s
426 427
  *
427 428
  * @author Guillaume Viguier <[email protected]>
@@ -666,6 +667,7 @@  discard block
 block discarded – undo
666 667
  * @param mixed The time to be converted
667 668
  * @param mixed Format to be used (TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG)
668 669
  * @param string Timezone to be converted from. If null, UTC will be assumed.
670
+ * @param string $from_timezone
669 671
  * @return string Converted and localized date
670 672
  *
671 673
  * @author Guillaume Viguier <[email protected]>
@@ -735,7 +737,7 @@  discard block
 block discarded – undo
735 737
  * @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.
736 738
  * @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.
737 739
  * @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.
738
- * @return bool							The result is sort of full name of the person.
740
+ * @return string							The result is sort of full name of the person.
739 741
  * Sample results:
740 742
  * Peter Ustinoff or Dr. Peter Ustinoff     - the Western order
741 743
  * Ustinoff Peter or Dr. Ustinoff Peter     - the Eastern order
@@ -1054,8 +1056,8 @@  discard block
 block discarded – undo
1054 1056
 
1055 1057
 /**
1056 1058
  * This function returns a string or an array with all occurrences of search in subject (ignoring case) replaced with the given replace value.
1057
- * @param mixed $search					String or array of strings to be found.
1058
- * @param mixed $replace				String or array of strings used for replacement.
1059
+ * @param string $search					String or array of strings to be found.
1060
+ * @param string $replace				String or array of strings used for replacement.
1059 1061
  * @param mixed $subject				String or array of strings being searched.
1060 1062
  * @param int $count (optional)			The number of matched and replaced needles will be returned in count, which is passed by reference.
1061 1063
  * @param string $encoding (optional)	The used internally by this function character encoding.
@@ -1118,10 +1120,10 @@  discard block
 block discarded – undo
1118 1120
 /**
1119 1121
  * Finds first occurrence of a string within another, case insensitive.
1120 1122
  * @param string $haystack					The string from which to get the first occurrence.
1121
- * @param mixed $needle						The string to be found.
1123
+ * @param string $needle						The string to be found.
1122 1124
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1123 1125
  * @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.
1124
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1126
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1125 1127
  * Notes:
1126 1128
  * 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.
1127 1129
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1177,7 +1179,7 @@  discard block
 block discarded – undo
1177 1179
  * @param mixed $needle						The string which first character is to be found.
1178 1180
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1179 1181
  * @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.
1180
- * @return mixed							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1182
+ * @return false|string							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1181 1183
  * Notes:
1182 1184
  * 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.
1183 1185
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence.
@@ -1244,7 +1246,7 @@  discard block
 block discarded – undo
1244 1246
  * @param mixed $needle						The string to be found.
1245 1247
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1246 1248
  * @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.
1247
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1249
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1248 1250
  * Notes:
1249 1251
  * 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.
1250 1252
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1387,7 +1389,7 @@  discard block
 block discarded – undo
1387 1389
  * 										Note that this changes the return value in an array where every element is an array consisting of the matched string at index 0 and its string offset into subject at index 1.
1388 1390
  * @param int $offset (optional)		Normally, the search starts from the beginning of the subject string. The optional parameter offset can be used to specify the alternate place from which to start the search.
1389 1391
  * @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.
1390
- * @return int|boolean					Returns the number of times pattern matches or FALSE if an error occurred.
1392
+ * @return integer					Returns the number of times pattern matches or FALSE if an error occurred.
1391 1393
  * @link http://php.net/preg_match
1392 1394
  */
1393 1395
 function api_preg_match($pattern, $subject, &$matches = null, $flags = 0, $offset = 0, $encoding = null) {
@@ -1410,7 +1412,7 @@  discard block
 block discarded – undo
1410 1412
  * If no order flag is given, PREG_PATTERN_ORDER is assumed.
1411 1413
  * @param int $offset (optional)		Normally, the search starts from the beginning of the subject string. The optional parameter offset can be used to specify the alternate place from which to start the search.
1412 1414
  * @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.
1413
- * @return int|boolean					Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred.
1415
+ * @return integer					Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred.
1414 1416
  * @link http://php.net/preg_match_all
1415 1417
  */
1416 1418
 function api_preg_match_all($pattern, $subject, &$matches, $flags = PREG_PATTERN_ORDER, $offset = 0, $encoding = null) {
@@ -1425,8 +1427,8 @@  discard block
 block discarded – undo
1425 1427
 
1426 1428
 /**
1427 1429
  * Performs a regular expression search and replace, UTF-8 aware when it is applicable.
1428
- * @param string|array $pattern			The pattern to search for. It can be either a string or an array with strings.
1429
- * @param string|array $replacement		The string or an array with strings to replace.
1430
+ * @param string $pattern			The pattern to search for. It can be either a string or an array with strings.
1431
+ * @param string $replacement		The string or an array with strings to replace.
1430 1432
  * @param string|array $subject			The string or an array with strings to search and replace.
1431 1433
  * @param int $limit					The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit).
1432 1434
  * @param int &$count					If specified, this variable will be filled with the number of replacements done.
@@ -1574,7 +1576,7 @@  discard block
 block discarded – undo
1574 1576
 
1575 1577
 /**
1576 1578
  * This function checks whether two $encoding are equal (same, equvalent).
1577
- * @param string|array $encoding1		The first encoding
1579
+ * @param string $encoding1		The first encoding
1578 1580
  * @param string|array $encoding2		The second encoding
1579 1581
  * @param bool $strict					When this parameter is TRUE the comparison ignores aliases of encodings.
1580 1582
  * When the parameter is FALSE, aliases are taken into account.
@@ -1678,6 +1680,7 @@  discard block
 block discarded – undo
1678 1680
 /**
1679 1681
  * Checks a string for UTF-8 validity.
1680 1682
  *
1683
+ * @param string $string
1681 1684
  */
1682 1685
 function api_is_valid_utf8(&$string)
1683 1686
 {
@@ -1820,7 +1823,7 @@  discard block
 block discarded – undo
1820 1823
 /**
1821 1824
  * Replaces non-valid formats for person names with the default (English) format.
1822 1825
  * @param string $format	The input format to be verified.
1823
- * @return bool				Returns the same format if is is valid, otherwise returns a valid English format.
1826
+ * @return string				Returns the same format if is is valid, otherwise returns a valid English format.
1824 1827
  */
1825 1828
 function _api_validate_person_name_format($format) {
1826 1829
     if (empty($format) || stripos($format, '%f') === false || stripos($format, '%l') === false) {
@@ -1947,6 +1950,9 @@  discard block
 block discarded – undo
1947 1950
 
1948 1951
 // This function checks whether the function _api_convert_encoding() (the php-
1949 1952
 // implementation) is able to convert from/to a given encoding.
1953
+/**
1954
+ * @param string $encoding
1955
+ */
1950 1956
 function _api_convert_encoding_supports($encoding) {
1951 1957
     static $supports = array();
1952 1958
     if (!isset($supports[$encoding])) {
@@ -1957,7 +1963,7 @@  discard block
 block discarded – undo
1957 1963
 
1958 1964
 /**
1959 1965
  * Given a date object, return a human or ISO format, with or without h:m:s
1960
- * @param object $date The Date object
1966
+ * @param DateTime $date The Date object
1961 1967
  * @param bool $showTime Whether to show the time and date (true) or only the date (false)
1962 1968
  * @param bool $humanForm Whether to show day-month-year (true) or year-month-day (false)
1963 1969
  * @return string Formatted date
Please login to merge, or discard this patch.