@@ -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 | { |
@@ -771,11 +770,11 @@ discard block |
||
| 771 | 770 | /** |
| 772 | 771 | * This function tries to work out additional error information from a back trace. |
| 773 | 772 | * |
| 774 | - * @param $error_message |
|
| 773 | + * @param string $error_message |
|
| 775 | 774 | * @param $log_message |
| 776 | 775 | * @param $error_type |
| 777 | - * @param $file |
|
| 778 | - * @param $line |
|
| 776 | + * @param string $file |
|
| 777 | + * @param integer $line |
|
| 779 | 778 | */ |
| 780 | 779 | function smf_db_error_backtrace($error_message, $log_message = '', $error_type = false, $file = null, $line = null) |
| 781 | 780 | { |
@@ -645,11 +645,11 @@ |
||
| 645 | 645 | /** |
| 646 | 646 | * This function tries to work out additional error information from a back trace. |
| 647 | 647 | * |
| 648 | - * @param $error_message |
|
| 648 | + * @param string $error_message |
|
| 649 | 649 | * @param $log_message |
| 650 | 650 | * @param $error_type |
| 651 | - * @param $file |
|
| 652 | - * @param $line |
|
| 651 | + * @param string $file |
|
| 652 | + * @param integer $line |
|
| 653 | 653 | */ |
| 654 | 654 | function smf_db_error_backtrace($error_message, $log_message = '', $error_type = false, $file = null, $line = null) |
| 655 | 655 | { |
@@ -29,7 +29,6 @@ discard block |
||
| 29 | 29 | * - updates the database info for the member's avatar. |
| 30 | 30 | * - returns whether the download and resize was successful. |
| 31 | 31 | * |
| 32 | - * @param string $temporary_path, the full path to the temporary file |
|
| 33 | 32 | * @param int $memID, member ID |
| 34 | 33 | * @param int $max_width |
| 35 | 34 | * @param int $max_height |
@@ -205,7 +204,7 @@ discard block |
||
| 205 | 204 | * |
| 206 | 205 | * @param string $fileName |
| 207 | 206 | * @param bool $extensiveCheck = false |
| 208 | - * @return true on success, false on failure. |
|
| 207 | + * @return boolean on success, false on failure. |
|
| 209 | 208 | */ |
| 210 | 209 | function checkImageContents($fileName, $extensiveCheck = false) |
| 211 | 210 | { |
@@ -248,7 +247,7 @@ discard block |
||
| 248 | 247 | * Sets a global $gd2 variable needed by some functions to determine |
| 249 | 248 | * whether the GD2 library is present. |
| 250 | 249 | * |
| 251 | - * @return whether or not GD1 is available. |
|
| 250 | + * @return boolean or not GD1 is available. |
|
| 252 | 251 | */ |
| 253 | 252 | function checkGD() |
| 254 | 253 | { |
@@ -267,7 +266,7 @@ discard block |
||
| 267 | 266 | /** |
| 268 | 267 | * Checks whether the Imagick class is present. |
| 269 | 268 | * |
| 270 | - * @return whether or not Imagick is available. |
|
| 269 | + * @return boolean or not Imagick is available. |
|
| 271 | 270 | */ |
| 272 | 271 | function checkImagick() |
| 273 | 272 | { |
@@ -277,7 +276,7 @@ discard block |
||
| 277 | 276 | /** |
| 278 | 277 | * See if we have enough memory to thumbnail an image |
| 279 | 278 | * |
| 280 | - * @return whether we do |
|
| 279 | + * @return boolean we do |
|
| 281 | 280 | */ |
| 282 | 281 | function imageMemoryCheck($sizes) |
| 283 | 282 | { |
@@ -310,7 +309,7 @@ discard block |
||
| 310 | 309 | * @param int $max_width |
| 311 | 310 | * @param int $max_height |
| 312 | 311 | * @param int $preferred_format = 0 |
| 313 | - * @return whether it succeeded. |
|
| 312 | + * @return boolean it succeeded. |
|
| 314 | 313 | */ |
| 315 | 314 | function resizeImageFile($source, $destination, $max_width, $max_height, $preferred_format = 0) |
| 316 | 315 | { |
@@ -761,7 +760,7 @@ discard block |
||
| 761 | 760 | * Outputs a gif or a png (depending on whether gif ix supported). |
| 762 | 761 | * |
| 763 | 762 | * @param string $code |
| 764 | - * @return false if something goes wrong. |
|
| 763 | + * @return false|null if something goes wrong. |
|
| 765 | 764 | */ |
| 766 | 765 | function showCodeImage($code) |
| 767 | 766 | { |
@@ -280,7 +280,7 @@ |
||
| 280 | 280 | /** |
| 281 | 281 | * Delete a menu. |
| 282 | 282 | * @param string $menu_id = 'last' |
| 283 | - * @return bool |
|
| 283 | + * @return false|null |
|
| 284 | 284 | */ |
| 285 | 285 | function destroyMenu($menu_id = 'last') |
| 286 | 286 | { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * Revalidate a user using OpenID. Note that this function will not return when authentication is required. |
| 84 | - * @return bool |
|
| 84 | + * @return boolean|null |
|
| 85 | 85 | */ |
| 86 | 86 | function smf_openID_revalidate() |
| 87 | 87 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * @param string $server |
| 105 | 105 | * @param string $handle = null |
| 106 | 106 | * @param bool $no_delete = false |
| 107 | - * @return array |
|
| 107 | + * @return string |
|
| 108 | 108 | */ |
| 109 | 109 | function smf_openID_getAssociation($server, $handle = null, $no_delete = false) |
| 110 | 110 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * @todo Enter description here ... |
| 149 | 149 | * @param string $server |
| 150 | - * @return array |
|
| 150 | + * @return string |
|
| 151 | 151 | */ |
| 152 | 152 | function smf_openID_makeAssociation($server) |
| 153 | 153 | { |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | |
| 402 | 402 | /** |
| 403 | 403 | * @todo Enter description here ... |
| 404 | - * @param string $uri |
|
| 404 | + * @param string $url |
|
| 405 | 405 | * @return array |
| 406 | 406 | */ |
| 407 | 407 | function smf_openid_member_exists($url) |
@@ -480,7 +480,7 @@ discard block |
||
| 480 | 480 | |
| 481 | 481 | /** |
| 482 | 482 | * @todo Enter description here ... |
| 483 | - * @return float |
|
| 483 | + * @return string |
|
| 484 | 484 | */ |
| 485 | 485 | function smf_openid_generate_private_key() |
| 486 | 486 | { |
@@ -580,6 +580,9 @@ discard block |
||
| 580 | 580 | return $hmac; |
| 581 | 581 | } |
| 582 | 582 | |
| 583 | +/** |
|
| 584 | + * @param string $str |
|
| 585 | + */ |
|
| 583 | 586 | function binary_to_long($str) |
| 584 | 587 | { |
| 585 | 588 | $bytes = array_merge(unpack('C*', $str)); |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * Reads a .tar.gz file, filename, in and extracts file(s) from it. |
| 24 | 24 | * essentially just a shortcut for read_tgz_data(). |
| 25 | - * @param string $filename |
|
| 25 | + * @param string $gzfilename |
|
| 26 | 26 | * @param string $destination |
| 27 | 27 | * @param bool $single_file = false |
| 28 | 28 | * @param bool $overwrite = false |
@@ -72,7 +72,8 @@ discard block |
||
| 72 | 72 | * @param bool single_file = false, |
| 73 | 73 | * @param bool overwrite = false, |
| 74 | 74 | * @param array files_to_extract = null |
| 75 | - * @return array |
|
| 75 | + * @param string $destination |
|
| 76 | + * @return string |
|
| 76 | 77 | */ |
| 77 | 78 | function read_tgz_data($data, $destination, $single_file = false, $overwrite = false, $files_to_extract = null) |
| 78 | 79 | { |
@@ -342,6 +343,7 @@ discard block |
||
| 342 | 343 | * Checks the existence of a remote file since file_exists() does not do remote. |
| 343 | 344 | * will return false if the file is "moved permanently" or similar. |
| 344 | 345 | * @param string url |
| 346 | + * @param string|null $url |
|
| 345 | 347 | * @return bool true if the remote url exists. |
| 346 | 348 | */ |
| 347 | 349 | function url_exists($url) |
@@ -432,7 +434,7 @@ discard block |
||
| 432 | 434 | * - otherwise returns a basic array of id, version, filename, and similar information. |
| 433 | 435 | * - an xmlArray is available in 'xml'. |
| 434 | 436 | * |
| 435 | - * @param string $filename |
|
| 437 | + * @param string $gzfilename |
|
| 436 | 438 | * @return array |
| 437 | 439 | */ |
| 438 | 440 | function getPackageInfo($gzfilename) |
@@ -1442,6 +1444,7 @@ discard block |
||
| 1442 | 1444 | * - returns true if the version matched. |
| 1443 | 1445 | * |
| 1444 | 1446 | * @param string $versions |
| 1447 | + * @param string $the_version |
|
| 1445 | 1448 | * @return highest install value string or false |
| 1446 | 1449 | */ |
| 1447 | 1450 | function matchHighestPackageVersion($versions, $reset = false, $the_version) |
@@ -1617,8 +1620,7 @@ discard block |
||
| 1617 | 1620 | /** |
| 1618 | 1621 | * Deletes a directory, and all the files and direcories inside it. |
| 1619 | 1622 | * requires access to delete these files. |
| 1620 | - * @param string $path |
|
| 1621 | - * @param bool $delete_directory = true |
|
| 1623 | + * @param bool $delete_dir = true |
|
| 1622 | 1624 | */ |
| 1623 | 1625 | function deltree($dir, $delete_dir = true) |
| 1624 | 1626 | { |
@@ -1692,7 +1694,6 @@ discard block |
||
| 1692 | 1694 | /** |
| 1693 | 1695 | * Creates the specified tree structure with the mode specified. |
| 1694 | 1696 | * creates every directory in path until it finds one that already exists. |
| 1695 | - * @param string $path |
|
| 1696 | 1697 | * @param int $mode |
| 1697 | 1698 | * @return bool true if successful, false otherwise |
| 1698 | 1699 | */ |
@@ -1414,7 +1414,7 @@ discard block |
||
| 1414 | 1414 | * @param string $message - the message to send |
| 1415 | 1415 | * @param resource $socket - socket to send on |
| 1416 | 1416 | * @param string $response - the expected response code |
| 1417 | - * @return whether it responded as such. |
|
| 1417 | + * @return string|boolean it responded as such. |
|
| 1418 | 1418 | */ |
| 1419 | 1419 | function server_parse($message, $socket, $response) |
| 1420 | 1420 | { |
@@ -2793,6 +2793,7 @@ discard block |
||
| 2793 | 2793 | * @param string $type, types supported are 'approval', 'activation', and 'standard'. |
| 2794 | 2794 | * @param int $memberID |
| 2795 | 2795 | * @param string $member_name = null |
| 2796 | + * @param string $type |
|
| 2796 | 2797 | * @uses the Login language file. |
| 2797 | 2798 | */ |
| 2798 | 2799 | function adminNotify($type, $memberID, $member_name = null) |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * Used by VerificationCode() (Register.php). |
| 25 | 25 | * |
| 26 | 26 | * @param string $word |
| 27 | - * @return bool false on failure |
|
| 27 | + * @return null|false false on failure |
|
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | 30 | function createWaveFile($word) |
@@ -730,7 +730,7 @@ discard block |
||
| 730 | 730 | * - additionally converts and '. |
| 731 | 731 | * |
| 732 | 732 | * @param string $string |
| 733 | - * @return the string without entities |
|
| 733 | + * @return string string without entities |
|
| 734 | 734 | */ |
| 735 | 735 | function un_htmlspecialchars($string) |
| 736 | 736 | { |
@@ -833,7 +833,7 @@ discard block |
||
| 833 | 833 | * @param string $message |
| 834 | 834 | * @param bool $smileys = true |
| 835 | 835 | * @param string $cache_id = '' |
| 836 | - * @param array $parse_tags = null |
|
| 836 | + * @param string[] $parse_tags = null |
|
| 837 | 837 | * @return string |
| 838 | 838 | */ |
| 839 | 839 | function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = array()) |
@@ -3482,6 +3482,7 @@ discard block |
||
| 3482 | 3482 | * Lookup an IP; try shell_exec first because we can do a timeout on it. |
| 3483 | 3483 | * |
| 3484 | 3484 | * @param string $ip |
| 3485 | + * @return string |
|
| 3485 | 3486 | */ |
| 3486 | 3487 | function host_from_ip($ip) |
| 3487 | 3488 | { |
@@ -3584,11 +3585,11 @@ discard block |
||
| 3584 | 3585 | /** |
| 3585 | 3586 | * Creates an image/text button |
| 3586 | 3587 | * |
| 3587 | - * @param string $filename |
|
| 3588 | 3588 | * @param string $alt |
| 3589 | 3589 | * @param string $label = '' |
| 3590 | - * @param bool $custom = '' |
|
| 3590 | + * @param string|boolean $custom = '' |
|
| 3591 | 3591 | * @param bool $force_use = false |
| 3592 | + * @param string $name |
|
| 3592 | 3593 | * @return string |
| 3593 | 3594 | */ |
| 3594 | 3595 | function create_button($name, $alt, $label = '', $custom = '', $force_use = false) |
@@ -4041,7 +4042,7 @@ discard block |
||
| 4041 | 4042 | * supports static class method calls. |
| 4042 | 4043 | * |
| 4043 | 4044 | * @param string $hook |
| 4044 | - * @param array $paramaters = array() |
|
| 4045 | + * @param array $parameters = array() |
|
| 4045 | 4046 | * @return array the results of the functions |
| 4046 | 4047 | */ |
| 4047 | 4048 | function call_integration_hook($hook, $parameters = array()) |