@@ -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 | { |
@@ -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 |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * Sets the sorting query and the direction |
| 117 | 117 | * |
| 118 | 118 | * @param string $query - The query to be used in the ORDER clause |
| 119 | - * @param bool|int $asc - If the sorting is ascending or not |
|
| 119 | + * @param boolean $asc - If the sorting is ascending or not |
|
| 120 | 120 | */ |
| 121 | 121 | public function setSorting($query, $asc) |
| 122 | 122 | { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | * the messages table |
| 219 | 219 | * @param int $start - position to start the query |
| 220 | 220 | * @param int $limit - number of entries to grab |
| 221 | - * @param bool|int $include_avatars - if avatars should be retrieved as well |
|
| 221 | + * @param boolean $include_avatars - if avatars should be retrieved as well |
|
| 222 | 222 | * @return mixed[] - see Topic_Util::prepareContext |
| 223 | 223 | */ |
| 224 | 224 | private function _getUnreadTopics($join, $start, $limit, $include_avatars = false) |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | * |
| 384 | 384 | * @param int $start - position to start the query |
| 385 | 385 | * @param int $limit - number of entries to grab |
| 386 | - * @param bool|int $include_avatars - if avatars should be retrieved as well |
|
| 386 | + * @param boolean $include_avatars - if avatars should be retrieved as well |
|
| 387 | 387 | * @return mixed[] - see Topic_Util::prepareContext |
| 388 | 388 | */ |
| 389 | 389 | private function _getUnreadReplies($start, $limit, $include_avatars = false) |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | /** |
| 136 | 136 | * The first error occurred |
| 137 | 137 | * |
| 138 | - * @return array|string |
|
| 138 | + * @return string|null |
|
| 139 | 139 | */ |
| 140 | 140 | public function firstError() |
| 141 | 141 | { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * @param bool $single_file = false |
| 29 | 29 | * @param bool $overwrite = false |
| 30 | 30 | * @param string[]|null $files_to_extract = null |
| 31 | - * @return array|false |
|
| 31 | + * @return string |
|
| 32 | 32 | */ |
| 33 | 33 | function read_tgz_file($gzfilename, $destination, $single_file = false, $overwrite = false, $files_to_extract = null) |
| 34 | 34 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @param bool $single_file = false, |
| 78 | 78 | * @param bool $overwrite = false, |
| 79 | 79 | * @param string[]|null $files_to_extract = null |
| 80 | - * @return array|false |
|
| 80 | + * @return string |
|
| 81 | 81 | */ |
| 82 | 82 | function read_tgz_data($data, $destination, $single_file = false, $overwrite = false, $files_to_extract = null) |
| 83 | 83 | { |
@@ -1330,7 +1330,7 @@ |
||
| 1330 | 1330 | * |
| 1331 | 1331 | * @param int $topic id of a topic |
| 1332 | 1332 | * @param int|null $msg the id of a message, if empty, t.id_first_msg is used |
| 1333 | - * @return mixed[]|boolean to topic attributes |
|
| 1333 | + * @return string|null to topic attributes |
|
| 1334 | 1334 | */ |
| 1335 | 1335 | function getTopicInfoByMsg($topic, $msg = null) |
| 1336 | 1336 | { |
@@ -1163,7 +1163,7 @@ |
||
| 1163 | 1163 | * - will look in various header fields where the ip may reside |
| 1164 | 1164 | * - returns false if it can't find a valid IP4 |
| 1165 | 1165 | * |
| 1166 | - * @return string|boolean on fail |
|
| 1166 | + * @return string|false on fail |
|
| 1167 | 1167 | */ |
| 1168 | 1168 | public function load_ip() |
| 1169 | 1169 | { |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | * - Will load a draft if selected is supplied via post |
| 197 | 197 | * |
| 198 | 198 | * @param int $member_id |
| 199 | - * @param int|bool $id_pm = false if set, it will try to load drafts for this id |
|
| 199 | + * @param integer $id_pm = false if set, it will try to load drafts for this id |
|
| 200 | 200 | * |
| 201 | 201 | * @return bool |
| 202 | 202 | */ |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | $sound_letter = substr($sound_letter, strpos($sound_letter, 'data') + 8); |
| 66 | 66 | switch ($word[$i] === 's' ? 0 : mt_rand(0, 2)) |
| 67 | 67 | { |
| 68 | - case 0: |
|
| 69 | - for ($j = 0, $n = strlen($sound_letter); $j < $n; $j++) |
|
| 68 | + case 0 : for ($j = 0, $n = strlen($sound_letter); $j < $n; $j++) |
|
| 70 | 69 | for ($k = 0, $m = round(mt_rand(15, 25) / 10); $k < $m; $k++) |
| 71 | 70 | $sound_word .= $word[$i] === 's' ? $sound_letter[$j] : chr(mt_rand(max(ord($sound_letter[$j]) - 1, 0x00), min(ord($sound_letter[$j]) + 1, 0xFF))); |
| 72 | 71 | break; |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * |
| 25 | 25 | * @param string $word |
| 26 | 26 | * |
| 27 | - * @return bool |
|
| 27 | + * @return null|boolean |
|
| 28 | 28 | */ |
| 29 | 29 | function createWaveFile($word) |
| 30 | 30 | { |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * - Supports single range request only |
| 144 | 144 | * |
| 145 | 145 | * @param int $file_size |
| 146 | - * @return array |
|
| 146 | + * @return integer[] |
|
| 147 | 147 | */ |
| 148 | 148 | function set_range($file_size) |
| 149 | 149 | { |