@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Get a list of versions that are currently installed on the server. |
21 | - * @param array $checkFor An array of what to check versions for - can contain one or more of 'gd', 'imagemagick', 'db_server', 'phpa', 'memcache', 'xcache', 'apc', 'php' or 'server' |
|
21 | + * @param string[] $checkFor An array of what to check versions for - can contain one or more of 'gd', 'imagemagick', 'db_server', 'phpa', 'memcache', 'xcache', 'apc', 'php' or 'server' |
|
22 | 22 | * @return array An array of versions (keys are same as what was in $checkFor, values are the versions) |
23 | 23 | */ |
24 | 24 | function getServerVersions($checkFor) |
@@ -150,7 +150,7 @@ |
||
150 | 150 | * |
151 | 151 | * @param bool $local Whether we want local cookies |
152 | 152 | * @param bool $global Whether we want global cookies |
153 | - * @return array An array to set the cookie on with domain and path in it, in that order |
|
153 | + * @return string An array to set the cookie on with domain and path in it, in that order |
|
154 | 154 | */ |
155 | 155 | function url_parts($local, $global) |
156 | 156 | { |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | * Backtrace, log, try to fix. |
560 | 560 | * |
561 | 561 | * @param string $db_string The DB string |
562 | - * @param object $connection The connection to use (if null, $db_connection is used) |
|
562 | + * @param resource $connection The connection to use (if null, $db_connection is used) |
|
563 | 563 | */ |
564 | 564 | function smf_db_error($db_string, $connection = null) |
565 | 565 | { |
@@ -754,7 +754,7 @@ discard block |
||
754 | 754 | * @param array $data The data to insert |
755 | 755 | * @param array $keys The keys for the table |
756 | 756 | * @param bool $disable_trans Whether to disable transactions |
757 | - * @param object $connection The connection to use (if null, $db_connection is used) |
|
757 | + * @param resource $connection The connection to use (if null, $db_connection is used) |
|
758 | 758 | */ |
759 | 759 | function smf_db_insert($method = 'replace', $table, $columns, $data, $keys, $disable_trans = false, $connection = null) |
760 | 760 | { |
@@ -457,7 +457,6 @@ discard block |
||
457 | 457 | |
458 | 458 | /** |
459 | 459 | * affected_rows |
460 | - * @param resource $connection |
|
461 | 460 | */ |
462 | 461 | function smf_db_affected_rows($result = null) |
463 | 462 | { |
@@ -800,7 +799,7 @@ discard block |
||
800 | 799 | * |
801 | 800 | * @param string $db_name The database name |
802 | 801 | * @param resource $db_connection The database connection |
803 | - * @return true Always returns true |
|
802 | + * @return boolean Always returns true |
|
804 | 803 | */ |
805 | 804 | function smf_db_select_db($db_name, $db_connection) |
806 | 805 | { |
@@ -170,7 +170,7 @@ |
||
170 | 170 | * |
171 | 171 | * @param string $fileName The path to the file |
172 | 172 | * @param int $preferred_format The preferred format - 0 to automatically determine, 1 for gif, 2 for jpg, 3 for png, 6 for bmp and 15 for wbmp |
173 | - * @return boolean Whether the reencoding was successful |
|
173 | + * @return false|null Whether the reencoding was successful |
|
174 | 174 | */ |
175 | 175 | function reencodeImage($fileName, $preferred_format = 0) |
176 | 176 | { |
@@ -243,6 +243,7 @@ |
||
243 | 243 | * @param null|array The groups to remove the member(s) from. If null, the specified members are stripped from all their membergroups. |
244 | 244 | * @param bool $permissionCheckDone Whether we've already checked permissions prior to calling this function |
245 | 245 | * @param bool $ignoreProtected Whether to ignore protected groups |
246 | + * @param integer $groups |
|
246 | 247 | * @return bool Whether the operation was successful |
247 | 248 | */ |
248 | 249 | function removeMembersFromGroups($members, $groups = null, $permissionCheckDone = false, $ignoreProtected = false) |
@@ -286,7 +286,7 @@ |
||
286 | 286 | /** |
287 | 287 | * Delete a menu. |
288 | 288 | * @param string $menu_id The ID of the menu to destroy or 'last' for the most recent one |
289 | - * @return bool|void False if the menu doesn't exist, nothing otherwise |
|
289 | + * @return false|null False if the menu doesn't exist, nothing otherwise |
|
290 | 290 | */ |
291 | 291 | function destroyMenu($menu_id = 'last') |
292 | 292 | { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param bool $single_file If true returns the contents of the file specified by destination if it exists |
29 | 29 | * @param bool $overwrite Whether to overwrite existing files |
30 | 30 | * @param null|array $files_to_extract Specific files to extract |
31 | - * @return array|false An array of information about extracted files or false on failure |
|
31 | + * @return string An array of information about extracted files or false on failure |
|
32 | 32 | */ |
33 | 33 | function read_tgz_file($gzfilename, $destination, $single_file = false, $overwrite = false, $files_to_extract = null) |
34 | 34 | { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @param bool $single_file Whether to only extract a single file |
60 | 60 | * @param bool $overwrite Whether to overwrite existing data |
61 | 61 | * @param null|array $files_to_extract If set, only extracts the specified files |
62 | - * @return array|false An array of information about the extracted files or false on failure |
|
62 | + * @return string An array of information about the extracted files or false on failure |
|
63 | 63 | */ |
64 | 64 | function read_tgz_data($gzfilename, $destination, $single_file = false, $overwrite = false, $files_to_extract = null) |
65 | 65 | { |
@@ -3251,7 +3251,7 @@ discard block |
||
3251 | 3251 | * http://www.php.net/crc32#79567 |
3252 | 3252 | * |
3253 | 3253 | * @param string $number |
3254 | - * @return string The crc32 |
|
3254 | + * @return integer The crc32 |
|
3255 | 3255 | */ |
3256 | 3256 | function smf_crc32($number) |
3257 | 3257 | { |
@@ -1445,7 +1445,7 @@ discard block |
||
1445 | 1445 | * @param resource $socket Socket to send on |
1446 | 1446 | * @param string $code The expected response code |
1447 | 1447 | * @param string $response The response from the SMTP server |
1448 | - * @return bool Whether it responded as such. |
|
1448 | + * @return string|boolean Whether it responded as such. |
|
1449 | 1449 | */ |
1450 | 1450 | function server_parse($message, $socket, $code, &$response = null) |
1451 | 1451 | { |
@@ -2259,7 +2259,7 @@ discard block |
||
2259 | 2259 | * @param array $msgs Array of message ids |
2260 | 2260 | * @param bool $approve Whether to approve the posts (if false, posts are unapproved) |
2261 | 2261 | * @param bool $notify Whether to notify users |
2262 | - * @return bool Whether the operation was successful |
|
2262 | + * @return null|boolean Whether the operation was successful |
|
2263 | 2263 | */ |
2264 | 2264 | function approvePosts($msgs, $approve = true, $notify = true) |
2265 | 2265 | { |
@@ -2512,7 +2512,7 @@ discard block |
||
2512 | 2512 | * |
2513 | 2513 | * @param array $topics Array of topic ids |
2514 | 2514 | * @param bool $approve Whether to approve the topics. If false, unapproves them instead |
2515 | - * @return bool Whether the operation was successful |
|
2515 | + * @return null|boolean Whether the operation was successful |
|
2516 | 2516 | */ |
2517 | 2517 | function approveTopics($topics, $approve = true) |
2518 | 2518 | { |
@@ -2902,7 +2902,7 @@ discard block |
||
2902 | 2902 | * |
2903 | 2903 | * @param resource $dict An enchant or pspell dictionary resource set up by {@link spell_init()} |
2904 | 2904 | * @param string $word A word to check the spelling of |
2905 | - * @return bool Whether or not the specified word is spelled properly |
|
2905 | + * @return boolean|null Whether or not the specified word is spelled properly |
|
2906 | 2906 | */ |
2907 | 2907 | function spell_check($dict, $word) |
2908 | 2908 | { |