@@ -1732,6 +1732,9 @@ discard block |
||
| 1732 | 1732 | return true; |
| 1733 | 1733 | } |
| 1734 | 1734 | |
| 1735 | + /** |
|
| 1736 | + * @param integer $chmod |
|
| 1737 | + */ |
|
| 1735 | 1738 | function chmod($ftp_file, $chmod) |
| 1736 | 1739 | { |
| 1737 | 1740 | if (!is_resource($this->connection)) |
@@ -1748,6 +1751,9 @@ discard block |
||
| 1748 | 1751 | return true; |
| 1749 | 1752 | } |
| 1750 | 1753 | |
| 1754 | + /** |
|
| 1755 | + * @param string $ftp_file |
|
| 1756 | + */ |
|
| 1751 | 1757 | function unlink($ftp_file) |
| 1752 | 1758 | { |
| 1753 | 1759 | // We are actually connected, right? |
@@ -1816,6 +1822,9 @@ discard block |
||
| 1816 | 1822 | return true; |
| 1817 | 1823 | } |
| 1818 | 1824 | |
| 1825 | + /** |
|
| 1826 | + * @param string $ftp_file |
|
| 1827 | + */ |
|
| 1819 | 1828 | function create_file($ftp_file) |
| 1820 | 1829 | { |
| 1821 | 1830 | // First, we have to be connected... very important. |
@@ -1887,6 +1896,10 @@ discard block |
||
| 1887 | 1896 | return $data; |
| 1888 | 1897 | } |
| 1889 | 1898 | |
| 1899 | + /** |
|
| 1900 | + * @param string $file |
|
| 1901 | + * @param false|string $listing |
|
| 1902 | + */ |
|
| 1890 | 1903 | function locate($file, $listing = null) |
| 1891 | 1904 | { |
| 1892 | 1905 | if ($listing === null) |
@@ -205,6 +205,9 @@ discard block |
||
| 205 | 205 | // MD5 Encryption. |
| 206 | 206 | if (!function_exists('md5_hmac')) |
| 207 | 207 | { |
| 208 | + /** |
|
| 209 | + * @param string $key |
|
| 210 | + */ |
|
| 208 | 211 | function md5_hmac($data, $key) |
| 209 | 212 | { |
| 210 | 213 | if (strlen($key) > 64) |
@@ -293,6 +296,9 @@ discard block |
||
| 293 | 296 | return true; |
| 294 | 297 | } |
| 295 | 298 | |
| 299 | + /** |
|
| 300 | + * @param integer $chmod |
|
| 301 | + */ |
|
| 296 | 302 | function chmod($ftp_file, $chmod) |
| 297 | 303 | { |
| 298 | 304 | if (!is_resource($this->connection)) |
@@ -309,6 +315,9 @@ discard block |
||
| 309 | 315 | return true; |
| 310 | 316 | } |
| 311 | 317 | |
| 318 | + /** |
|
| 319 | + * @param string $ftp_file |
|
| 320 | + */ |
|
| 312 | 321 | function unlink($ftp_file) |
| 313 | 322 | { |
| 314 | 323 | // We are actually connected, right? |
@@ -377,6 +386,9 @@ discard block |
||
| 377 | 386 | return true; |
| 378 | 387 | } |
| 379 | 388 | |
| 389 | + /** |
|
| 390 | + * @param string $ftp_file |
|
| 391 | + */ |
|
| 380 | 392 | function create_file($ftp_file) |
| 381 | 393 | { |
| 382 | 394 | // First, we have to be connected... very important. |
@@ -448,6 +460,10 @@ discard block |
||
| 448 | 460 | return $data; |
| 449 | 461 | } |
| 450 | 462 | |
| 463 | + /** |
|
| 464 | + * @param string $file |
|
| 465 | + * @param false|string $listing |
|
| 466 | + */ |
|
| 451 | 467 | function locate($file, $listing = null) |
| 452 | 468 | { |
| 453 | 469 | if ($listing === null) |
@@ -756,6 +772,9 @@ discard block |
||
| 756 | 772 | } |
| 757 | 773 | |
| 758 | 774 | // Used to direct the user to another location. |
| 775 | +/** |
|
| 776 | + * @param string $location |
|
| 777 | + */ |
|
| 759 | 778 | function redirectLocation($location, $addForm = true) |
| 760 | 779 | { |
| 761 | 780 | global $upgradeurl, $upcontext, $command_line; |
@@ -2437,6 +2456,9 @@ discard block |
||
| 2437 | 2456 | return addslashes(preg_replace(array('~^\.([/\\\]|$)~', '~[/]+~', '~[\\\]+~', '~[/\\\]$~'), array($install_path . '$1', '/', '\\', ''), $path)); |
| 2438 | 2457 | } |
| 2439 | 2458 | |
| 2459 | +/** |
|
| 2460 | + * @param string $filename |
|
| 2461 | + */ |
|
| 2440 | 2462 | function parse_sql($filename) |
| 2441 | 2463 | { |
| 2442 | 2464 | global $db_prefix, $db_collation, $boarddir, $boardurl, $command_line, $file_steps, $step_progress, $custom_warning; |
@@ -2723,6 +2745,9 @@ discard block |
||
| 2723 | 2745 | return true; |
| 2724 | 2746 | } |
| 2725 | 2747 | |
| 2748 | +/** |
|
| 2749 | + * @param string $string |
|
| 2750 | + */ |
|
| 2726 | 2751 | function upgrade_query($string, $unbuffered = false) |
| 2727 | 2752 | { |
| 2728 | 2753 | global $db_connection, $db_server, $db_user, $db_passwd, $db_type, $command_line, $upcontext, $upgradeurl, $modSettings; |
@@ -3349,6 +3374,9 @@ discard block |
||
| 3349 | 3374 | $upcontext['current_step'] = 1; |
| 3350 | 3375 | } |
| 3351 | 3376 | |
| 3377 | +/** |
|
| 3378 | + * @param string $message |
|
| 3379 | + */ |
|
| 3352 | 3380 | function print_error($message, $fatal = false) |
| 3353 | 3381 | { |
| 3354 | 3382 | static $fp = null; |
@@ -3362,6 +3390,9 @@ discard block |
||
| 3362 | 3390 | exit; |
| 3363 | 3391 | } |
| 3364 | 3392 | |
| 3393 | +/** |
|
| 3394 | + * @param string $message |
|
| 3395 | + */ |
|
| 3365 | 3396 | function throw_error($message) |
| 3366 | 3397 | { |
| 3367 | 3398 | global $upcontext; |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * Start the curl object |
| 63 | 63 | * - allow for user override values |
| 64 | 64 | * |
| 65 | - * @param array $options An array of cURL options |
|
| 65 | + * @param integer[] $options An array of cURL options |
|
| 66 | 66 | * @param int $max_redirect Maximum number of redirects |
| 67 | 67 | * @return void |
| 68 | 68 | */ |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | * - calls set_options to set the curl opts array values based on the defaults and user input |
| 82 | 82 | * |
| 83 | 83 | * @param string $url the site we are going to fetch |
| 84 | - * @param array $post_data any post data as form name => value |
|
| 85 | - * @return object An instance of the curl_fetch_web_data class |
|
| 84 | + * @param string $post_data any post data as form name => value |
|
| 85 | + * @return curl_fetch_web_data An instance of the curl_fetch_web_data class |
|
| 86 | 86 | */ |
| 87 | 87 | public function get_url_data($url, $post_data = array()) |
| 88 | 88 | { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * |
| 107 | 107 | * @param string $url The site to fetch |
| 108 | 108 | * @param bool $redirect Whether or not this was a redirect request |
| 109 | - * @return void|bool Sets various properties of the class or returns false if the URL isn't specified |
|
| 109 | + * @return false|null Sets various properties of the class or returns false if the URL isn't specified |
|
| 110 | 110 | */ |
| 111 | 111 | private function curl_request($url, $redirect = false) |
| 112 | 112 | { |
@@ -59,13 +59,13 @@ discard block |
||
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * Start the curl object |
|
| 63 | - * - allow for user override values |
|
| 64 | - * |
|
| 65 | - * @param array $options An array of cURL options |
|
| 66 | - * @param int $max_redirect Maximum number of redirects |
|
| 67 | - * @return void |
|
| 68 | - */ |
|
| 62 | + * Start the curl object |
|
| 63 | + * - allow for user override values |
|
| 64 | + * |
|
| 65 | + * @param array $options An array of cURL options |
|
| 66 | + * @param int $max_redirect Maximum number of redirects |
|
| 67 | + * @return void |
|
| 68 | + */ |
|
| 69 | 69 | public function __construct($options = array(), $max_redirect = 3) |
| 70 | 70 | { |
| 71 | 71 | // Initialize class variables |
@@ -74,16 +74,16 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * Main calling function, |
|
| 78 | - * - will request the page data from a given $url |
|
| 79 | - * - optionally will post data to the page form if post data is supplied |
|
| 80 | - * - passed arrays will be converted to a post string joined with &'s |
|
| 81 | - * - calls set_options to set the curl opts array values based on the defaults and user input |
|
| 82 | - * |
|
| 83 | - * @param string $url the site we are going to fetch |
|
| 84 | - * @param array $post_data any post data as form name => value |
|
| 85 | - * @return object An instance of the curl_fetch_web_data class |
|
| 86 | - */ |
|
| 77 | + * Main calling function, |
|
| 78 | + * - will request the page data from a given $url |
|
| 79 | + * - optionally will post data to the page form if post data is supplied |
|
| 80 | + * - passed arrays will be converted to a post string joined with &'s |
|
| 81 | + * - calls set_options to set the curl opts array values based on the defaults and user input |
|
| 82 | + * |
|
| 83 | + * @param string $url the site we are going to fetch |
|
| 84 | + * @param array $post_data any post data as form name => value |
|
| 85 | + * @return object An instance of the curl_fetch_web_data class |
|
| 86 | + */ |
|
| 87 | 87 | public function get_url_data($url, $post_data = array()) |
| 88 | 88 | { |
| 89 | 89 | // POSTing some data perhaps? |
@@ -100,14 +100,14 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | - * Makes the actual cURL call |
|
| 104 | - * - stores responses (url, code, error, headers, body) in the response array |
|
| 105 | - * - detects 301, 302, 307 codes and will redirect to the given response header location |
|
| 106 | - * |
|
| 107 | - * @param string $url The site to fetch |
|
| 108 | - * @param bool $redirect Whether or not this was a redirect request |
|
| 109 | - * @return void|bool Sets various properties of the class or returns false if the URL isn't specified |
|
| 110 | - */ |
|
| 103 | + * Makes the actual cURL call |
|
| 104 | + * - stores responses (url, code, error, headers, body) in the response array |
|
| 105 | + * - detects 301, 302, 307 codes and will redirect to the given response header location |
|
| 106 | + * |
|
| 107 | + * @param string $url The site to fetch |
|
| 108 | + * @param bool $redirect Whether or not this was a redirect request |
|
| 109 | + * @return void|bool Sets various properties of the class or returns false if the URL isn't specified |
|
| 110 | + */ |
|
| 111 | 111 | private function curl_request($url, $redirect = false) |
| 112 | 112 | { |
| 113 | 113 | // we do have a url I hope |
@@ -159,12 +159,12 @@ discard block |
||
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | - * Used if being redirected to ensure we have a fully qualified address |
|
| 163 | - * |
|
| 164 | - * @param string $last_url The URL we went to |
|
| 165 | - * @param string $new_url The URL we were redirected to |
|
| 166 | - * @return string The new URL that was in the HTTP header |
|
| 167 | - */ |
|
| 162 | + * Used if being redirected to ensure we have a fully qualified address |
|
| 163 | + * |
|
| 164 | + * @param string $last_url The URL we went to |
|
| 165 | + * @param string $new_url The URL we were redirected to |
|
| 166 | + * @return string The new URL that was in the HTTP header |
|
| 167 | + */ |
|
| 168 | 168 | private function get_redirect_url($last_url = '', $new_url = '') |
| 169 | 169 | { |
| 170 | 170 | // Get the elements for these urls |
@@ -182,13 +182,13 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | - * Used to return the results to the calling program |
|
| 186 | - * - called as ->result() will return the full final array |
|
| 187 | - * - called as ->result('body') to just return the page source of the result |
|
| 188 | - * |
|
| 189 | - * @param string $area Used to return an area such as body, header, error |
|
| 190 | - * @return string The response |
|
| 191 | - */ |
|
| 185 | + * Used to return the results to the calling program |
|
| 186 | + * - called as ->result() will return the full final array |
|
| 187 | + * - called as ->result('body') to just return the page source of the result |
|
| 188 | + * |
|
| 189 | + * @param string $area Used to return an area such as body, header, error |
|
| 190 | + * @return string The response |
|
| 191 | + */ |
|
| 192 | 192 | public function result($area = '') |
| 193 | 193 | { |
| 194 | 194 | $max_result = count($this->response) - 1; |
@@ -201,13 +201,13 @@ discard block |
||
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | /** |
| 204 | - * Will return all results from all loops (redirects) |
|
| 205 | - * - Can be called as ->result_raw(x) where x is a specific loop results. |
|
| 206 | - * - Call as ->result_raw() for everything. |
|
| 207 | - * |
|
| 208 | - * @param string $response_number Which response we want to get |
|
| 209 | - * @return array|string The entire response array or just the specified response |
|
| 210 | - */ |
|
| 204 | + * Will return all results from all loops (redirects) |
|
| 205 | + * - Can be called as ->result_raw(x) where x is a specific loop results. |
|
| 206 | + * - Call as ->result_raw() for everything. |
|
| 207 | + * |
|
| 208 | + * @param string $response_number Which response we want to get |
|
| 209 | + * @return array|string The entire response array or just the specified response |
|
| 210 | + */ |
|
| 211 | 211 | public function result_raw($response_number = '') |
| 212 | 212 | { |
| 213 | 213 | if (!is_numeric($response_number)) |
@@ -220,13 +220,13 @@ discard block |
||
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | /** |
| 223 | - * Takes supplied POST data and url encodes it |
|
| 224 | - * - forms the date (for post) in to a string var=xyz&var2=abc&var3=123 |
|
| 225 | - * - drops vars with @ since we don't support sending files (uploading) |
|
| 226 | - * |
|
| 227 | - * @param array|string $post_data The raw POST data |
|
| 228 | - * @return string A string of post data |
|
| 229 | - */ |
|
| 223 | + * Takes supplied POST data and url encodes it |
|
| 224 | + * - forms the date (for post) in to a string var=xyz&var2=abc&var3=123 |
|
| 225 | + * - drops vars with @ since we don't support sending files (uploading) |
|
| 226 | + * |
|
| 227 | + * @param array|string $post_data The raw POST data |
|
| 228 | + * @return string A string of post data |
|
| 229 | + */ |
|
| 230 | 230 | private function build_post_data($post_data) |
| 231 | 231 | { |
| 232 | 232 | if (is_array($post_data)) |
@@ -245,11 +245,11 @@ discard block |
||
| 245 | 245 | } |
| 246 | 246 | |
| 247 | 247 | /** |
| 248 | - * Sets the final cURL options for the current call |
|
| 249 | - * - overwrites our default values with user supplied ones or appends new user ones to what we have |
|
| 250 | - * - sets the callback function now that $this is existing |
|
| 251 | - * @return void |
|
| 252 | - */ |
|
| 248 | + * Sets the final cURL options for the current call |
|
| 249 | + * - overwrites our default values with user supplied ones or appends new user ones to what we have |
|
| 250 | + * - sets the callback function now that $this is existing |
|
| 251 | + * @return void |
|
| 252 | + */ |
|
| 253 | 253 | private function set_options() |
| 254 | 254 | { |
| 255 | 255 | // Callback to parse the returned headers, if any |
@@ -274,12 +274,12 @@ discard block |
||
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | /** |
| 277 | - * Called to initiate a redirect from a 301, 302 or 307 header |
|
| 278 | - * - resets the cURL options for the loop, sets the referrer flag |
|
| 279 | - * |
|
| 280 | - * @param string $target_url The URL we want to redirect to |
|
| 281 | - * @param string $referer_url The URL that we're redirecting from |
|
| 282 | - */ |
|
| 277 | + * Called to initiate a redirect from a 301, 302 or 307 header |
|
| 278 | + * - resets the cURL options for the loop, sets the referrer flag |
|
| 279 | + * |
|
| 280 | + * @param string $target_url The URL we want to redirect to |
|
| 281 | + * @param string $referer_url The URL that we're redirecting from |
|
| 282 | + */ |
|
| 283 | 283 | private function redirect($target_url, $referer_url) |
| 284 | 284 | { |
| 285 | 285 | // no no I last saw that over there ... really, 301, 302, 307 |
@@ -289,13 +289,13 @@ discard block |
||
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | /** |
| 292 | - * Callback function to parse returned headers |
|
| 293 | - * - lowercases everything to make it consistent |
|
| 294 | - * |
|
| 295 | - * @param type $cr Not sure what this is used for? |
|
| 296 | - * @param string $header The header |
|
| 297 | - * @return int The length of the header |
|
| 298 | - */ |
|
| 292 | + * Callback function to parse returned headers |
|
| 293 | + * - lowercases everything to make it consistent |
|
| 294 | + * |
|
| 295 | + * @param type $cr Not sure what this is used for? |
|
| 296 | + * @param string $header The header |
|
| 297 | + * @return int The length of the header |
|
| 298 | + */ |
|
| 299 | 299 | private function header_callback($cr, $header) |
| 300 | 300 | { |
| 301 | 301 | $_header = trim($header); |
@@ -44,6 +44,10 @@ discard block |
||
| 44 | 44 | $this->Buf = range(0, 279); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $data |
|
| 49 | + * @param integer $datLen |
|
| 50 | + */ |
|
| 47 | 51 | public function decompress($data, &$datLen) |
| 48 | 52 | { |
| 49 | 53 | $stLen = strlen($data); |
@@ -63,6 +67,11 @@ discard block |
||
| 63 | 67 | return $ret; |
| 64 | 68 | } |
| 65 | 69 | |
| 70 | + /** |
|
| 71 | + * @param boolean $bInit |
|
| 72 | + * |
|
| 73 | + * @return integer |
|
| 74 | + */ |
|
| 66 | 75 | public function LZWCommand(&$data, $bInit) |
| 67 | 76 | { |
| 68 | 77 | if ($bInit) |
@@ -253,6 +262,10 @@ discard block |
||
| 253 | 262 | unset($this->m_nColors, $this->m_arColors); |
| 254 | 263 | } |
| 255 | 264 | |
| 265 | + /** |
|
| 266 | + * @param string $lpData |
|
| 267 | + * @param integer $num |
|
| 268 | + */ |
|
| 256 | 269 | public function load($lpData, $num) |
| 257 | 270 | { |
| 258 | 271 | $this->m_nColors = 0; |
@@ -324,6 +337,9 @@ discard block |
||
| 324 | 337 | unset($this->m_bSorted, $this->m_nTableSize, $this->m_nBgColor, $this->m_nPixelRatio, $this->m_colorTable); |
| 325 | 338 | } |
| 326 | 339 | |
| 340 | + /** |
|
| 341 | + * @param integer $hdrLen |
|
| 342 | + */ |
|
| 327 | 343 | public function load($lpData, &$hdrLen) |
| 328 | 344 | { |
| 329 | 345 | $hdrLen = 0; |
@@ -370,6 +386,10 @@ discard block |
||
| 370 | 386 | unset($this->m_bInterlace, $this->m_bSorted, $this->m_nTableSize, $this->m_colorTable); |
| 371 | 387 | } |
| 372 | 388 | |
| 389 | + /** |
|
| 390 | + * @param string $lpData |
|
| 391 | + * @param integer $hdrLen |
|
| 392 | + */ |
|
| 373 | 393 | public function load($lpData, &$hdrLen) |
| 374 | 394 | { |
| 375 | 395 | $hdrLen = 0; |
@@ -412,6 +432,10 @@ discard block |
||
| 412 | 432 | $this->m_lzw = new gif_lzw_compression(); |
| 413 | 433 | } |
| 414 | 434 | |
| 435 | + /** |
|
| 436 | + * @param string $data |
|
| 437 | + * @param integer $datLen |
|
| 438 | + */ |
|
| 415 | 439 | public function load($data, &$datLen) |
| 416 | 440 | { |
| 417 | 441 | $datLen = 0; |
@@ -464,6 +488,10 @@ discard block |
||
| 464 | 488 | return false; |
| 465 | 489 | } |
| 466 | 490 | |
| 491 | + /** |
|
| 492 | + * @param string $data |
|
| 493 | + * @param integer $extLen |
|
| 494 | + */ |
|
| 467 | 495 | public function skipExt(&$data, &$extLen) |
| 468 | 496 | { |
| 469 | 497 | $extLen = 0; |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | * of elements, an array of xmlArray's is returned for use with foreach. |
| 258 | 258 | * Example use: |
| 259 | 259 | * foreach ($xml->set('html/body/p') as $p) |
| 260 | - * @param $path string The path to search for. |
|
| 260 | + * @param string $path string The path to search for. |
|
| 261 | 261 | * @return array An array of xmlArray objects |
| 262 | 262 | */ |
| 263 | 263 | public function set($path) |
@@ -1019,7 +1019,7 @@ discard block |
||
| 1019 | 1019 | * |
| 1020 | 1020 | * @param string $ftp_path The path to the directory |
| 1021 | 1021 | * @param bool $search Whether or not to get a recursive directory listing |
| 1022 | - * @return string|boolean The results of the command or false if unsuccessful |
|
| 1022 | + * @return false|string The results of the command or false if unsuccessful |
|
| 1023 | 1023 | */ |
| 1024 | 1024 | public function list_dir($ftp_path = '', $search = false) |
| 1025 | 1025 | { |
@@ -1064,7 +1064,7 @@ discard block |
||
| 1064 | 1064 | * |
| 1065 | 1065 | * @param string $file The name of a file |
| 1066 | 1066 | * @param string $listing A directory listing or null to generate one |
| 1067 | - * @return string|boolean The name of the file or false if it wasn't found |
|
| 1067 | + * @return string|false The name of the file or false if it wasn't found |
|
| 1068 | 1068 | */ |
| 1069 | 1069 | public function locate($file, $listing = null) |
| 1070 | 1070 | { |
@@ -56,6 +56,7 @@ discard block |
||
| 56 | 56 | * @param array $wordsSearch Search words |
| 57 | 57 | * @param array $wordsExclude Words to exclude |
| 58 | 58 | * @param bool $isExcluded Whether the specfied word should be excluded |
| 59 | + * @return void |
|
| 59 | 60 | */ |
| 60 | 61 | public function prepareIndexes($word, array &$wordsSearch, array &$wordsExclude, $isExcluded); |
| 61 | 62 | |
@@ -130,7 +131,7 @@ discard block |
||
| 130 | 131 | * @param array $excludedIndexWords Indexed words that should be excluded |
| 131 | 132 | * @param array $participants |
| 132 | 133 | * @param array $searchArray |
| 133 | - * @return mixed |
|
| 134 | + * @return integer |
|
| 134 | 135 | */ |
| 135 | 136 | public function searchQuery(array $query_params, array $searchWords, array $excludedIndexWords, array $participants, array $searchArray); |
| 136 | 137 | } |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | /** |
| 280 | 280 | * Generate the timestamp for the calculation |
| 281 | 281 | * |
| 282 | - * @return integer Timestamp |
|
| 282 | + * @return double Timestamp |
|
| 283 | 283 | */ |
| 284 | 284 | public function generateTimestamp() |
| 285 | 285 | { |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | * Truncate the given hash down to just what we need |
| 291 | 291 | * |
| 292 | 292 | * @param string $hash Hash to truncate |
| 293 | - * @return string Truncated hash value |
|
| 293 | + * @return integer Truncated hash value |
|
| 294 | 294 | */ |
| 295 | 295 | public function truncateHash($hash) |
| 296 | 296 | { |
@@ -518,7 +518,7 @@ |
||
| 518 | 518 | * @param array $parameters Not used? |
| 519 | 519 | * @param string $if_exists What to do if the index exists. If 'update', the definition will be updated. |
| 520 | 520 | * @param string $error |
| 521 | - * @return boolean Whether or not the operation was successful |
|
| 521 | + * @return false|null Whether or not the operation was successful |
|
| 522 | 522 | */ |
| 523 | 523 | function smf_db_add_index($table_name, $index_info, $parameters = array(), $if_exists = 'update', $error = 'fatal') |
| 524 | 524 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * |
| 176 | 176 | * @param string $post_errors A string of info about errors encountered trying to save this draft |
| 177 | 177 | * @param array $recipientList An array of data about who this PM is being sent to |
| 178 | - * @return boolean false if you can't save the draft, true if we're doing this via XML more than 5 seconds after the last save, nothing otherwise |
|
| 178 | + * @return boolean|null false if you can't save the draft, true if we're doing this via XML more than 5 seconds after the last save, nothing otherwise |
|
| 179 | 179 | */ |
| 180 | 180 | function SavePMDraft(&$post_errors, $recipientList) |
| 181 | 181 | { |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | * |
| 393 | 393 | * @param int $id_draft The ID of the draft to delete |
| 394 | 394 | * @param boolean $check Whether or not to check that the draft belongs to the current user |
| 395 | - * @return boolean False if it couldn't be deleted (doesn't return anything otherwise) |
|
| 395 | + * @return false|null False if it couldn't be deleted (doesn't return anything otherwise) |
|
| 396 | 396 | */ |
| 397 | 397 | function DeleteDraft($id_draft, $check = true) |
| 398 | 398 | { |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | * @param int $member_id ID of the member to show drafts for |
| 427 | 427 | * @param boolean|integer If $type is 1, this can be set to only load drafts for posts in the specific topic |
| 428 | 428 | * @param int $draft_type The type of drafts to show - 0 for post drafts, 1 for PM drafts |
| 429 | - * @return boolean False if the drafts couldn't be loaded, nothing otherwise |
|
| 429 | + * @return false|null False if the drafts couldn't be loaded, nothing otherwise |
|
| 430 | 430 | */ |
| 431 | 431 | function ShowDrafts($member_id, $topic = false, $draft_type = 0) |
| 432 | 432 | { |
@@ -510,7 +510,7 @@ discard block |
||
| 510 | 510 | * Allows for the deleting and loading/editing of drafts |
| 511 | 511 | * |
| 512 | 512 | * @param type $memID |
| 513 | - * @param type $draft_type |
|
| 513 | + * @param integer $draft_type |
|
| 514 | 514 | */ |
| 515 | 515 | function showProfileDrafts($memID, $draft_type = 0) |
| 516 | 516 | { |
@@ -663,7 +663,7 @@ discard block |
||
| 663 | 663 | * Uses the showpmdraft template |
| 664 | 664 | * Allows for the deleting and loading/editing of drafts |
| 665 | 665 | * |
| 666 | - * @param type $memID |
|
| 666 | + * @param integer $memID |
|
| 667 | 667 | */ |
| 668 | 668 | function showPMDrafts($memID = -1) |
| 669 | 669 | { |