@@ -62,6 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Get the original filename |
65 | + * @return string |
|
65 | 66 | */ |
66 | 67 | public function getName() |
67 | 68 | { |
@@ -269,6 +270,9 @@ discard block |
||
269 | 270 | } |
270 | 271 | } |
271 | 272 | |
273 | + /** |
|
274 | + * @param string $mimeType |
|
275 | + */ |
|
272 | 276 | protected function storeUploadedFile($target, $mimeType, $uuid) |
273 | 277 | { |
274 | 278 | if (!is_dir(dirname($target))) { |
@@ -44,9 +44,9 @@ |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param $text |
|
47 | + * @param string $text |
|
48 | 48 | * |
49 | - * @return mixed|string |
|
49 | + * @return string |
|
50 | 50 | */ |
51 | 51 | public function php($text) |
52 | 52 | { |
@@ -57,6 +57,9 @@ |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | |
60 | + /** |
|
61 | + * @param string $domain |
|
62 | + */ |
|
60 | 63 | public function loadLanguage($domain, $language = null) |
61 | 64 | { |
62 | 65 | $supports = null; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | /** |
20 | - * @param $sql |
|
20 | + * @param string $sql |
|
21 | 21 | */ |
22 | 22 | protected function query($sql) |
23 | 23 | { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | /** |
20 | - * @param $sql |
|
20 | + * @param string $sql |
|
21 | 21 | */ |
22 | 22 | protected function query($sql) |
23 | 23 | { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | /** |
20 | - * @param $sql |
|
20 | + * @param string $sql |
|
21 | 21 | */ |
22 | 22 | protected function query($sql) |
23 | 23 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @param string $sourceName template file name |
99 | 99 | * @param string $fileName configuration file name |
100 | 100 | * |
101 | - * @return true|string true on success, error message on failure |
|
101 | + * @return string|boolean true on success, error message on failure |
|
102 | 102 | */ |
103 | 103 | protected function writeConfigurationFile($vars, $path, $sourceName, $fileName) |
104 | 104 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Rewrite mainfile and secure file with current templates |
194 | 194 | * |
195 | - * @return bool |
|
195 | + * @return string|boolean |
|
196 | 196 | */ |
197 | 197 | public function apply_zaplegacy() |
198 | 198 | { |
@@ -363,6 +363,9 @@ discard block |
||
363 | 363 | } |
364 | 364 | } |
365 | 365 | |
366 | + /** |
|
367 | + * @param integer $value |
|
368 | + */ |
|
366 | 369 | public static function eq($value, $value2, $message = '') |
367 | 370 | { |
368 | 371 | if ($value2 != $value) { |
@@ -937,6 +940,9 @@ discard block |
||
937 | 940 | return mb_strwidth($value, $encoding); |
938 | 941 | } |
939 | 942 | |
943 | + /** |
|
944 | + * @param string $message |
|
945 | + */ |
|
940 | 946 | protected static function reportInvalidArgument($message) |
941 | 947 | { |
942 | 948 | throw new InvalidArgumentException($message); |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | } |
522 | 522 | |
523 | 523 | /** |
524 | - * @param $dirname |
|
524 | + * @param string $dirname |
|
525 | 525 | * @param $template |
526 | 526 | * @param string $type |
527 | 527 | * |
@@ -1405,9 +1405,9 @@ discard block |
||
1405 | 1405 | |
1406 | 1406 | /** |
1407 | 1407 | * @param $module |
1408 | - * @param $title |
|
1408 | + * @param string $title |
|
1409 | 1409 | * |
1410 | - * @return array |
|
1410 | + * @return string[] |
|
1411 | 1411 | */ |
1412 | 1412 | function xoops_module_log_header($module, $title) |
1413 | 1413 | { |
@@ -1433,7 +1433,7 @@ discard block |
||
1433 | 1433 | * 2 = smarty compile |
1434 | 1434 | * 3 = xoops cache |
1435 | 1435 | * or null to clear all |
1436 | - * @return bool |
|
1436 | + * @return boolean|null |
|
1437 | 1437 | */ |
1438 | 1438 | function xoops_module_delayed_clean_cache($cacheList = null) |
1439 | 1439 | { |