@@ -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 | { |