@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * Make files writable. First try to use regular chmod, but if that fails, try to use FTP. |
| 143 | 143 | * |
| 144 | - * @param $files |
|
| 144 | + * @param string[] $files |
|
| 145 | 145 | * @return bool |
| 146 | 146 | */ |
| 147 | 147 | function makeFilesWritable(&$files) |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | /** |
| 382 | 382 | * Prints an error to stderr. |
| 383 | 383 | * |
| 384 | - * @param $message |
|
| 384 | + * @param string $message |
|
| 385 | 385 | * @param bool $fatal |
| 386 | 386 | */ |
| 387 | 387 | function print_error($message, $fatal = false) |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | /** |
| 401 | 401 | * Throws a graphical error message. |
| 402 | 402 | * |
| 403 | - * @param $message |
|
| 403 | + * @param string $message |
|
| 404 | 404 | * @return bool |
| 405 | 405 | */ |
| 406 | 406 | function throw_error($message) |
@@ -388,6 +388,9 @@ discard block |
||
| 388 | 388 | } |
| 389 | 389 | |
| 390 | 390 | // Used to direct the user to another location. |
| 391 | +/** |
|
| 392 | + * @param string $location |
|
| 393 | + */ |
|
| 391 | 394 | function redirectLocation($location, $addForm = true) |
| 392 | 395 | { |
| 393 | 396 | global $upgradeurl, $upcontext, $command_line; |
@@ -1560,6 +1563,9 @@ discard block |
||
| 1560 | 1563 | return addslashes(preg_replace(array('~^\.([/\\\]|$)~', '~[/]+~', '~[\\\]+~', '~[/\\\]$~'), array($install_path . '$1', '/', '\\', ''), $path)); |
| 1561 | 1564 | } |
| 1562 | 1565 | |
| 1566 | +/** |
|
| 1567 | + * @param string $filename |
|
| 1568 | + */ |
|
| 1563 | 1569 | function parse_sql($filename) |
| 1564 | 1570 | { |
| 1565 | 1571 | global $db_prefix, $db_collation, $boarddir, $boardurl, $command_line, $file_steps, $step_progress, $custom_warning; |
@@ -1594,6 +1600,10 @@ discard block |
||
| 1594 | 1600 | |
| 1595 | 1601 | // Our custom error handler - does nothing but does stop public errors from XML! |
| 1596 | 1602 | set_error_handler( |
| 1603 | + |
|
| 1604 | + /** |
|
| 1605 | + * @param string $errno |
|
| 1606 | + */ |
|
| 1597 | 1607 | function ($errno, $errstr, $errfile, $errline) use ($support_js) |
| 1598 | 1608 | { |
| 1599 | 1609 | if ($support_js) |
@@ -1840,6 +1850,9 @@ discard block |
||
| 1840 | 1850 | return true; |
| 1841 | 1851 | } |
| 1842 | 1852 | |
| 1853 | +/** |
|
| 1854 | + * @param string $string |
|
| 1855 | + */ |
|
| 1843 | 1856 | function upgrade_query($string, $unbuffered = false) |
| 1844 | 1857 | { |
| 1845 | 1858 | global $db_connection, $db_server, $db_user, $db_passwd, $db_type, $command_line, $upcontext, $upgradeurl, $modSettings; |
@@ -4495,7 +4508,7 @@ discard block |
||
| 4495 | 4508 | * @param int $setSize The amount of entries after which to update the database. |
| 4496 | 4509 | * |
| 4497 | 4510 | * newCol needs to be a varbinary(16) null able field |
| 4498 | - * @return bool |
|
| 4511 | + * @return boolean|null |
|
| 4499 | 4512 | */ |
| 4500 | 4513 | function MySQLConvertOldIp($targetTable, $oldCol, $newCol, $limit = 50000, $setSize = 100) |
| 4501 | 4514 | { |