@@ -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 | { |
@@ -2262,9 +2262,9 @@ discard block |
||
| 2262 | 2262 | * |
| 2263 | 2263 | * @uses the template_include() function to include the file. |
| 2264 | 2264 | * @param string $template_name The name of the template to load |
| 2265 | - * @param array|string $style_sheets The name of a single stylesheet or an array of names of stylesheets to load |
|
| 2265 | + * @param string $style_sheets The name of a single stylesheet or an array of names of stylesheets to load |
|
| 2266 | 2266 | * @param bool $fatal If true, dies with an error message if the template cannot be found |
| 2267 | - * @return boolean Whether or not the template was loaded |
|
| 2267 | + * @return boolean|null Whether or not the template was loaded |
|
| 2268 | 2268 | */ |
| 2269 | 2269 | function loadTemplate($template_name, $style_sheets = array(), $fatal = true) |
| 2270 | 2270 | { |
@@ -2447,7 +2447,7 @@ discard block |
||
| 2447 | 2447 | * - all code added with this function is added to the same <style> tag so do make sure your css is valid! |
| 2448 | 2448 | * |
| 2449 | 2449 | * @param string $css Some css code |
| 2450 | - * @return void|bool Adds the CSS to the $context['css_header'] array or returns if no CSS is specified |
|
| 2450 | + * @return false|null Adds the CSS to the $context['css_header'] array or returns if no CSS is specified |
|
| 2451 | 2451 | */ |
| 2452 | 2452 | function addInlineCss($css) |
| 2453 | 2453 | { |
@@ -2463,7 +2463,7 @@ discard block |
||
| 2463 | 2463 | /** |
| 2464 | 2464 | * Add a Javascript file for output later |
| 2465 | 2465 | * |
| 2466 | - * @param string $filename The name of the file to load |
|
| 2466 | + * @param string $fileName The name of the file to load |
|
| 2467 | 2467 | * @param array $params An array of parameter info |
| 2468 | 2468 | * Keys are the following: |
| 2469 | 2469 | * - ['external'] (true/false): define if the file is a externally located file. Needs to be set to true if you are loading an external file |
@@ -2561,7 +2561,7 @@ discard block |
||
| 2561 | 2561 | * |
| 2562 | 2562 | * @param string $javascript Some JS code |
| 2563 | 2563 | * @param bool $defer Whether the script should load in <head> or before the closing <html> tag |
| 2564 | - * @return void|bool Adds the code to one of the $context['javascript_inline'] arrays or returns if no JS was specified |
|
| 2564 | + * @return false|null Adds the code to one of the $context['javascript_inline'] arrays or returns if no JS was specified |
|
| 2565 | 2565 | */ |
| 2566 | 2566 | function addInlineJavaScript($javascript, $defer = false) |
| 2567 | 2567 | { |