@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * |
143 | 143 | * @param array tables 'list of tables' |
144 | 144 | * @param array maintenance 'optimize, check, repair, analyze' |
145 | - * @return array |
|
145 | + * @return string |
|
146 | 146 | */ |
147 | 147 | public function CheckRepairAnalyzeOptimizeQueries($tables, $maintenance) |
148 | 148 | { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * |
215 | 215 | * @param array tables 'list of tables' |
216 | 216 | * @param int drop |
217 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
217 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
218 | 218 | */ |
219 | 219 | public function dump_tables($tables, $drop) |
220 | 220 | { |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | * |
244 | 244 | * @param array modules 'list of modules' |
245 | 245 | * @param int drop |
246 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
246 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
247 | 247 | */ |
248 | 248 | public function dump_modules($modules, $drop) |
249 | 249 | { |
@@ -285,7 +285,10 @@ discard block |
||
285 | 285 | * @param string table |
286 | 286 | * @param int drop |
287 | 287 | * @param string class |
288 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
288 | + * @param string[] $ret |
|
289 | + * @param string $table |
|
290 | + * @param string $class |
|
291 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
289 | 292 | */ |
290 | 293 | public function dump_table_structure($ret, $table, $drop, $class) |
291 | 294 | { |
@@ -314,7 +317,9 @@ discard block |
||
314 | 317 | * |
315 | 318 | * @param array |
316 | 319 | * @param string table |
317 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
320 | + * @param string[] $ret |
|
321 | + * @param string $table |
|
322 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
318 | 323 | */ |
319 | 324 | public function dump_table_datas($ret, $table) |
320 | 325 | { |
@@ -379,7 +384,8 @@ discard block |
||
379 | 384 | * Dump Write |
380 | 385 | * |
381 | 386 | * @param array |
382 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
387 | + * @param string[] $ret |
|
388 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
383 | 389 | */ |
384 | 390 | public function dump_write($ret) |
385 | 391 | { |
@@ -799,6 +799,9 @@ discard block |
||
799 | 799 | |
800 | 800 | // from getid3.lib.php |
801 | 801 | |
802 | + /** |
|
803 | + * @param double $floatnumber |
|
804 | + */ |
|
802 | 805 | function trunc($floatnumber) { |
803 | 806 | // truncates a floating-point number at the decimal point |
804 | 807 | // returns int (if possible, otherwise float) |
@@ -815,6 +818,9 @@ discard block |
||
815 | 818 | return $truncatednumber; |
816 | 819 | } |
817 | 820 | |
821 | + /** |
|
822 | + * @param string $byteword |
|
823 | + */ |
|
818 | 824 | function LittleEndian2Int($byteword) { |
819 | 825 | $intvalue = 0; |
820 | 826 | $byteword = strrev($byteword); |
@@ -838,11 +844,17 @@ discard block |
||
838 | 844 | return $binvalue; |
839 | 845 | } |
840 | 846 | |
847 | + /** |
|
848 | + * @param string $rawdata |
|
849 | + */ |
|
841 | 850 | function FixedPoint2_30($rawdata) { |
842 | 851 | $binarystring = $this->BigEndian2Bin($rawdata); |
843 | 852 | return $this->Bin2Dec(substr($binarystring, 0, 2)) + (float) ($this->Bin2Dec(substr($binarystring, 2, 30)) / 1073741824); |
844 | 853 | } |
845 | 854 | |
855 | + /** |
|
856 | + * @param string $binstring |
|
857 | + */ |
|
846 | 858 | function Bin2Dec($binstring, $signed=false) { |
847 | 859 | $signmult = 1; |
848 | 860 | if ($signed) { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | // irmtfan bug fix: solve templates duplicate issue |
57 | 57 | /** |
58 | - * @param $module |
|
58 | + * @param XoopsModule $module |
|
59 | 59 | * |
60 | 60 | * @return bool |
61 | 61 | */ |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * @param $pass |
45 | 45 | * @param $vpass |
46 | 46 | * |
47 | - * @return bool|string |
|
47 | + * @return false|string |
|
48 | 48 | */ |
49 | 49 | function userCheck($uname, $email, $pass, $vpass) |
50 | 50 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * @param string $area |
163 | 163 | * @param bool $allow_repost |
164 | 164 | * |
165 | - * @return bool |
|
165 | + * @return null|boolean |
|
166 | 166 | */ |
167 | 167 | public function check($post = true, $area = '', $allow_repost = true) |
168 | 168 | { |
@@ -297,10 +297,10 @@ discard block |
||
297 | 297 | } |
298 | 298 | |
299 | 299 | /** |
300 | - * @param $key_name |
|
300 | + * @param string $key_name |
|
301 | 301 | * @param $tmp_array |
302 | 302 | * |
303 | - * @return array |
|
303 | + * @return string[] |
|
304 | 304 | */ |
305 | 305 | public function extract_post_recursive($key_name, $tmp_array) |
306 | 306 | { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | /** |
116 | 116 | * @param $val |
117 | - * @param $key |
|
117 | + * @param string $key |
|
118 | 118 | */ |
119 | 119 | protected function _initial_recursive($val, $key) |
120 | 120 | { |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * @param bool $unique_check |
255 | 255 | * @param int $level |
256 | 256 | * |
257 | - * @return bool |
|
257 | + * @return boolean|null |
|
258 | 258 | */ |
259 | 259 | public function output_log($type = 'UNKNOWN', $uid = 0, $unique_check = false, $level = 1) |
260 | 260 | { |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | } |
305 | 305 | |
306 | 306 | /** |
307 | - * @param $expire |
|
307 | + * @param integer $expire |
|
308 | 308 | * |
309 | 309 | * @return bool |
310 | 310 | */ |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | } |
327 | 327 | |
328 | 328 | /** |
329 | - * @return mixed |
|
329 | + * @return integer |
|
330 | 330 | */ |
331 | 331 | public function get_bwlimit() |
332 | 332 | { |
@@ -1094,7 +1094,7 @@ discard block |
||
1094 | 1094 | * @param int $uid |
1095 | 1095 | * @param bool $can_ban |
1096 | 1096 | * |
1097 | - * @return bool |
|
1097 | + * @return boolean|null |
|
1098 | 1098 | */ |
1099 | 1099 | public function check_dos_attack($uid = 0, $can_ban = false) |
1100 | 1100 | { |
@@ -1334,7 +1334,7 @@ discard block |
||
1334 | 1334 | } |
1335 | 1335 | |
1336 | 1336 | /** |
1337 | - * @param $points4deny |
|
1337 | + * @param integer $points4deny |
|
1338 | 1338 | * @param $uid |
1339 | 1339 | */ |
1340 | 1340 | public function spam_check($points4deny, $uid) |
@@ -1445,10 +1445,10 @@ discard block |
||
1445 | 1445 | } |
1446 | 1446 | |
1447 | 1447 | /** |
1448 | - * @param $type |
|
1448 | + * @param string $type |
|
1449 | 1449 | * @param string $dying_message |
1450 | 1450 | * |
1451 | - * @return int|mixed |
|
1451 | + * @return null|integer |
|
1452 | 1452 | */ |
1453 | 1453 | public function call_filter($type, $dying_message = '') |
1454 | 1454 | { |
@@ -75,7 +75,7 @@ |
||
75 | 75 | /** |
76 | 76 | * @param $type |
77 | 77 | * |
78 | - * @return int|mixed |
|
78 | + * @return integer |
|
79 | 79 | */ |
80 | 80 | public function execute($type) |
81 | 81 | { |
@@ -111,7 +111,7 @@ |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @param $sql |
|
114 | + * @param string $sql |
|
115 | 115 | */ |
116 | 116 | public function checkSql($sql) |
117 | 117 | { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | public $method; |
10 | 10 | |
11 | 11 | /** |
12 | - * @return bool |
|
12 | + * @return null|boolean |
|
13 | 13 | */ |
14 | 14 | public function execute() |
15 | 15 | { |