@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * - Examines all words passed to it, checking spelling of each |
| 116 | 116 | * - Incorrect ones are supplied an array of possible substitutions |
| 117 | 117 | * |
| 118 | - * @return array |
|
| 118 | + * @return string |
|
| 119 | 119 | */ |
| 120 | 120 | protected function _build_misps_array() |
| 121 | 121 | { |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | * - Calls _setOptions to set the curl opts array values based on the defaults and user input |
| 125 | 125 | * |
| 126 | 126 | * @param string $url the site we are going to fetch |
| 127 | - * @param mixed[]|string $post_data data to send in the curl request as post data |
|
| 127 | + * @param string $post_data data to send in the curl request as post data |
|
| 128 | 128 | */ |
| 129 | 129 | public function get_url_data($url, $post_data = array()) |
| 130 | 130 | { |
@@ -332,7 +332,7 @@ |
||
| 332 | 332 | * http://www.greywyvern.com/code/php/utf8_html.phps |
| 333 | 333 | * |
| 334 | 334 | * @param string $c |
| 335 | - * @return integer|false |
|
| 335 | + * @return integer |
|
| 336 | 336 | */ |
| 337 | 337 | private function _uniord($c) |
| 338 | 338 | { |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | /** |
| 84 | 84 | * Halts execution, optional displays an error message |
| 85 | 85 | * |
| 86 | - * @param string|integer $error |
|
| 86 | + * @param integer $error |
|
| 87 | 87 | */ |
| 88 | 88 | protected function terminate($error = 0) |
| 89 | 89 | { |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | * - Caches the formatting data from the setting for optimization. |
| 344 | 344 | * |
| 345 | 345 | * @param float $number The float value to apply comma formatting |
| 346 | - * @param integer|false $override_decimal_count = false or number of decimals |
|
| 346 | + * @param integer $override_decimal_count = false or number of decimals |
|
| 347 | 347 | */ |
| 348 | 348 | function comma_format($number, $override_decimal_count = false) |
| 349 | 349 | { |
@@ -1797,7 +1797,7 @@ discard block |
||
| 1797 | 1797 | * Chops a string into words and prepares them to be inserted into (or searched from) the database. |
| 1798 | 1798 | * |
| 1799 | 1799 | * @param string $text The string to process |
| 1800 | - * @param int|null $max_chars = 20 |
|
| 1800 | + * @param integer $max_chars = 20 |
|
| 1801 | 1801 | * - if encrypt = true this is the maximum number of bytes to use in integer hashes (for searching) |
| 1802 | 1802 | * - if encrypt = false this is the maximum number of letters in each word |
| 1803 | 1803 | * @param bool $encrypt = false Used for custom search indexes to return an int[] array representing the words |
@@ -2528,7 +2528,7 @@ discard block |
||
| 2528 | 2528 | * |
| 2529 | 2529 | * @param resource $messages_request holds a query result |
| 2530 | 2530 | * @param bool $reset |
| 2531 | - * @return integer|boolean |
|
| 2531 | + * @return integer|null |
|
| 2532 | 2532 | */ |
| 2533 | 2533 | function currentContext($messages_request, $reset = false) |
| 2534 | 2534 | { |
@@ -2798,7 +2798,7 @@ discard block |
||
| 2798 | 2798 | * is less than 255 characters (for database limits) |
| 2799 | 2799 | * |
| 2800 | 2800 | * @param string $value - The string to evaluate as valid email |
| 2801 | - * @return bool|string - The email if valid, false if not a valid email |
|
| 2801 | + * @return string|false - The email if valid, false if not a valid email |
|
| 2802 | 2802 | */ |
| 2803 | 2803 | function isValidEmail($value) |
| 2804 | 2804 | { |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | /** |
| 396 | 396 | * Turn smiley parsing on/off |
| 397 | 397 | * @param bool $toggle |
| 398 | - * @return \BBC\Parser |
|
| 398 | + * @return BBCParser |
|
| 399 | 399 | */ |
| 400 | 400 | public function doSmileys($toggle) |
| 401 | 401 | { |
@@ -424,6 +424,7 @@ discard block |
||
| 424 | 424 | * Parse the HTML in a string |
| 425 | 425 | * |
| 426 | 426 | * @param string &$data |
| 427 | + * @param string $data |
|
| 427 | 428 | */ |
| 428 | 429 | protected function parseHTML(&$data) |
| 429 | 430 | { |
@@ -939,6 +939,9 @@ |
||
| 939 | 939 | return $this->parsing_codes[$char]; |
| 940 | 940 | } |
| 941 | 941 | |
| 942 | + /** |
|
| 943 | + * @param string $code |
|
| 944 | + */ |
|
| 942 | 945 | protected function getItemCodeTag($code) |
| 943 | 946 | { |
| 944 | 947 | return array( |
@@ -2084,7 +2084,7 @@ |
||
| 2084 | 2084 | * Count boards all or specific depending on argument, redirect boards excluded by default. |
| 2085 | 2085 | * |
| 2086 | 2086 | * @package Boards |
| 2087 | - * @param mixed[]|string $conditions is an associative array that holds the board or the cat IDs |
|
| 2087 | + * @param string $conditions is an associative array that holds the board or the cat IDs |
|
| 2088 | 2088 | * 'categories' => an array of category IDs (it accepts a single ID too) |
| 2089 | 2089 | * 'boards' => an array of board IDs (it accepts a single ID too) |
| 2090 | 2090 | * if conditions is set to 'all' (not an array) all the boards are queried |
@@ -265,7 +265,7 @@ |
||
| 265 | 265 | |
| 266 | 266 | /** |
| 267 | 267 | * Return the validation data, all or a specific key |
| 268 | - * @param integer|string|null $key int or string |
|
| 268 | + * @param string $key int or string |
|
| 269 | 269 | */ |
| 270 | 270 | public function validation_data($key = null) |
| 271 | 271 | { |