@@ -1096,7 +1096,7 @@ |
||
1096 | 1096 | /** |
1097 | 1097 | * CHMOD control form |
1098 | 1098 | * |
1099 | - * @return bool False if nothing to do. |
|
1099 | + * @return false|null False if nothing to do. |
|
1100 | 1100 | */ |
1101 | 1101 | function template_control_chmod() |
1102 | 1102 | { |
@@ -180,7 +180,7 @@ |
||
180 | 180 | * |
181 | 181 | * @access public |
182 | 182 | * @param string $dir A valid path |
183 | - * @return boolean If this was successful or not. |
|
183 | + * @return boolean|null If this was successful or not. |
|
184 | 184 | */ |
185 | 185 | public function setCachedir($dir = null) |
186 | 186 | { |
@@ -393,6 +393,9 @@ discard block |
||
393 | 393 | } |
394 | 394 | |
395 | 395 | // Used to direct the user to another location. |
396 | +/** |
|
397 | + * @param string $location |
|
398 | + */ |
|
396 | 399 | function redirectLocation($location, $addForm = true) |
397 | 400 | { |
398 | 401 | global $upgradeurl, $upcontext, $command_line; |
@@ -1573,6 +1576,9 @@ discard block |
||
1573 | 1576 | return addslashes(preg_replace(array('~^\.([/\\\]|$)~', '~[/]+~', '~[\\\]+~', '~[/\\\]$~'), array($install_path . '$1', '/', '\\', ''), $path)); |
1574 | 1577 | } |
1575 | 1578 | |
1579 | +/** |
|
1580 | + * @param string $filename |
|
1581 | + */ |
|
1576 | 1582 | function parse_sql($filename) |
1577 | 1583 | { |
1578 | 1584 | global $db_prefix, $db_collation, $boarddir, $boardurl, $command_line, $file_steps, $step_progress, $custom_warning; |
@@ -1607,6 +1613,10 @@ discard block |
||
1607 | 1613 | |
1608 | 1614 | // Our custom error handler - does nothing but does stop public errors from XML! |
1609 | 1615 | set_error_handler( |
1616 | + |
|
1617 | + /** |
|
1618 | + * @param string $errno |
|
1619 | + */ |
|
1610 | 1620 | function ($errno, $errstr, $errfile, $errline) use ($support_js) |
1611 | 1621 | { |
1612 | 1622 | if ($support_js) |
@@ -1853,6 +1863,9 @@ discard block |
||
1853 | 1863 | return true; |
1854 | 1864 | } |
1855 | 1865 | |
1866 | +/** |
|
1867 | + * @param string $string |
|
1868 | + */ |
|
1856 | 1869 | function upgrade_query($string, $unbuffered = false) |
1857 | 1870 | { |
1858 | 1871 | global $db_connection, $db_server, $db_user, $db_passwd, $db_type, $command_line, $upcontext, $upgradeurl, $modSettings; |
@@ -4512,7 +4525,7 @@ discard block |
||
4512 | 4525 | * @param int $setSize The amount of entries after which to update the database. |
4513 | 4526 | * |
4514 | 4527 | * newCol needs to be a varbinary(16) null able field |
4515 | - * @return bool |
|
4528 | + * @return boolean|null |
|
4516 | 4529 | */ |
4517 | 4530 | function MySQLConvertOldIp($targetTable, $oldCol, $newCol, $limit = 50000, $setSize = 100) |
4518 | 4531 | { |
@@ -540,6 +540,7 @@ |
||
540 | 540 | * @param string $xml_format The format to use ('atom', 'rss', 'rss2' or empty for plain XML) |
541 | 541 | * @param array $forceCdataKeys A list of keys on which to force cdata wrapping (used by mods, maybe) |
542 | 542 | * @param array $nsKeys Key-value pairs of namespace prefixes to pass to cdata_parse() (used by mods, maybe) |
543 | + * @param string $tag |
|
543 | 544 | */ |
544 | 545 | function dumpTags($data, $i, $tag = null, $xml_format = '', $forceCdataKeys = array(), $nsKeys = array()) |
545 | 546 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * Display a list of upcoming events, birthdays, and holidays. |
69 | 69 | * |
70 | 70 | * @param string $grid_name The grid name |
71 | - * @return void|bool Returns false if the grid doesn't exist. |
|
71 | + * @return false|null Returns false if the grid doesn't exist. |
|
72 | 72 | */ |
73 | 73 | function template_show_upcoming_list($grid_name) |
74 | 74 | { |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * |
239 | 239 | * @param string $grid_name The grid name |
240 | 240 | * @param bool $is_mini Is this a mini grid? |
241 | - * @return void|bool Returns false if the grid doesn't exist. |
|
241 | + * @return false|null Returns false if the grid doesn't exist. |
|
242 | 242 | */ |
243 | 243 | function template_show_month_grid($grid_name, $is_mini = false) |
244 | 244 | { |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | * Shows a weekly grid |
524 | 524 | * |
525 | 525 | * @param string $grid_name The name of the grid |
526 | - * @return void|bool Returns false if the grid doesn't exist |
|
526 | + * @return false|null Returns false if the grid doesn't exist |
|
527 | 527 | */ |
528 | 528 | function template_show_week_grid($grid_name) |
529 | 529 | { |
@@ -143,7 +143,7 @@ |
||
143 | 143 | * |
144 | 144 | * @param string $dir A valid path |
145 | 145 | * |
146 | - * @return boolean If this was successful or not. |
|
146 | + * @return boolean|null If this was successful or not. |
|
147 | 147 | */ |
148 | 148 | public function setCachedir($dir = null) |
149 | 149 | { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * Start the curl object |
98 | 98 | * - allow for user override values |
99 | 99 | * |
100 | - * @param array $options An array of cURL options |
|
100 | + * @param integer[] $options An array of cURL options |
|
101 | 101 | * @param int $max_redirect Maximum number of redirects |
102 | 102 | */ |
103 | 103 | public function __construct($options = array(), $max_redirect = 3) |
@@ -115,8 +115,8 @@ discard block |
||
115 | 115 | * - calls set_options to set the curl opts array values based on the defaults and user input |
116 | 116 | * |
117 | 117 | * @param string $url the site we are going to fetch |
118 | - * @param array $post_data any post data as form name => value |
|
119 | - * @return object An instance of the curl_fetch_web_data class |
|
118 | + * @param string $post_data any post data as form name => value |
|
119 | + * @return curl_fetch_web_data An instance of the curl_fetch_web_data class |
|
120 | 120 | */ |
121 | 121 | public function get_url_data($url, $post_data = array()) |
122 | 122 | { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * |
141 | 141 | * @param string $url The site to fetch |
142 | 142 | * @param bool $redirect Whether or not this was a redirect request |
143 | - * @return void|bool Sets various properties of the class or returns false if the URL isn't specified |
|
143 | + * @return false|null Sets various properties of the class or returns false if the URL isn't specified |
|
144 | 144 | */ |
145 | 145 | private function curl_request($url, $redirect = false) |
146 | 146 | { |
@@ -382,7 +382,7 @@ |
||
382 | 382 | * @param array $parameters Not used? |
383 | 383 | * @param string $if_exists What to do if the index exists. If 'update', the definition will be updated. |
384 | 384 | * @param string $error |
385 | - * @return boolean Whether or not the operation was successful |
|
385 | + * @return false|null Whether or not the operation was successful |
|
386 | 386 | */ |
387 | 387 | function smf_db_add_index($table_name, $index_info, $parameters = array(), $if_exists = 'update', $error = 'fatal') |
388 | 388 | { |
@@ -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 | { |
@@ -3255,7 +3255,7 @@ discard block |
||
3255 | 3255 | * https://php.net/crc32#79567 |
3256 | 3256 | * |
3257 | 3257 | * @param string $number |
3258 | - * @return string The crc32 |
|
3258 | + * @return integer The crc32 |
|
3259 | 3259 | */ |
3260 | 3260 | function smf_crc32($number) |
3261 | 3261 | { |