@@ -22,7 +22,7 @@ |
||
22 | 22 | * |
23 | 23 | * @var array $items associative array of items: [modid][catid][itemid] |
24 | 24 | * |
25 | - * @return boolean |
|
25 | + * @return false|null |
|
26 | 26 | * |
27 | 27 | */ |
28 | 28 |
@@ -42,6 +42,9 @@ |
||
42 | 42 | *** |
43 | 43 | * @param $msg |
44 | 44 | */ |
45 | +/** |
|
46 | + * @param string $msg |
|
47 | + */ |
|
45 | 48 | function showerror($msg) |
46 | 49 | { |
47 | 50 | global $xoopsDB; |
@@ -47,6 +47,9 @@ |
||
47 | 47 | * @param $msg |
48 | 48 | */ |
49 | 49 | |
50 | +/** |
|
51 | + * @param string $msg |
|
52 | + */ |
|
50 | 53 | function showerror($msg) |
51 | 54 | { |
52 | 55 | global $xoopsDB; |
@@ -66,10 +66,10 @@ discard block |
||
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Constructor |
69 | - * @param $title |
|
70 | - * @param $modid |
|
71 | - * @param $permname |
|
72 | - * @param $permdesc |
|
69 | + * @param string $title |
|
70 | + * @param integer $modid |
|
71 | + * @param string $permname |
|
72 | + * @param string $permdesc |
|
73 | 73 | */ |
74 | 74 | public function __construct($title, $modid, $permname, $permdesc) |
75 | 75 | { |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | * Add appendix |
103 | 103 | * |
104 | 104 | * @access public |
105 | - * @param $permName |
|
105 | + * @param string $permName |
|
106 | 106 | * @param $itemId |
107 | - * @param $itemName |
|
107 | + * @param string $itemName |
|
108 | 108 | */ |
109 | 109 | public function addAppendix($permName, $itemId, $itemName) |
110 | 110 | { |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | /** |
255 | 255 | * Constructor |
256 | 256 | * @param $caption |
257 | - * @param $name |
|
257 | + * @param string $name |
|
258 | 258 | * @param $groupId |
259 | 259 | * @param null $values |
260 | 260 | */ |
@@ -15,7 +15,7 @@ |
||
15 | 15 | $go = isset($_POST['go']) ? $_POST['go'] : 0; |
16 | 16 | |
17 | 17 | /** |
18 | - * @param $msg |
|
18 | + * @param string $msg |
|
19 | 19 | */ |
20 | 20 | function showerror($msg) |
21 | 21 | { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * |
22 | 22 | * @var array $items associative array of items: [modid][catid][itemid] |
23 | 23 | * |
24 | - * @return boolean |
|
24 | + * @return false|null |
|
25 | 25 | * |
26 | 26 | */ |
27 | 27 |
@@ -18,9 +18,6 @@ |
||
18 | 18 | * @author XOOPS Development Team, hsalazar |
19 | 19 | */ |
20 | 20 | |
21 | -use Xmf\Request; |
|
22 | -use Xmf\Module\Helper; |
|
23 | - |
|
24 | 21 | /** |
25 | 22 | * Class LexikonUtility |
26 | 23 | */ |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @param $user |
|
199 | + * @param integer $user |
|
200 | 200 | */ |
201 | 201 | public static function getUserForm($user) |
202 | 202 | { |
@@ -347,6 +347,10 @@ discard block |
||
347 | 347 | $catids = implode(',', $allowed_cats); |
348 | 348 | $catperms = " AND categoryID IN ($catids) "; |
349 | 349 | $alpha = array(); |
350 | + |
|
351 | + /** |
|
352 | + * @param integer $a |
|
353 | + */ |
|
350 | 354 | function unichr($a) { |
351 | 355 | return mb_convert_encoding(pack("N",$a), mb_internal_encoding(), 'UCS-4BE'); |
352 | 356 | } |
@@ -838,7 +842,7 @@ discard block |
||
838 | 842 | |
839 | 843 | //Retrieve moduleoptions equivalent to $Xoopsmoduleconfig |
840 | 844 | /** |
841 | - * @param $option |
|
845 | + * @param string $option |
|
842 | 846 | * @param string $repmodule |
843 | 847 | * @return bool |
844 | 848 | */ |
@@ -894,8 +898,8 @@ discard block |
||
894 | 898 | /** |
895 | 899 | * Retreive an editor according to the module's option "form_options" |
896 | 900 | * following function is from News modified by trabis |
897 | - * @param $caption |
|
898 | - * @param $name |
|
901 | + * @param string $caption |
|
902 | + * @param string $name |
|
899 | 903 | * @param string $value |
900 | 904 | * @param string $width |
901 | 905 | * @param string $height |
@@ -1151,7 +1155,7 @@ discard block |
||
1151 | 1155 | // functionset to assign terms with accentuated or umlaut initials to the adequate initial |
1152 | 1156 | /** |
1153 | 1157 | * @param $string |
1154 | - * @return mixed|string |
|
1158 | + * @return string |
|
1155 | 1159 | */ |
1156 | 1160 | public static function removeAccents($string) |
1157 | 1161 | { |
@@ -1291,7 +1295,7 @@ discard block |
||
1291 | 1295 | |
1292 | 1296 | /** |
1293 | 1297 | * @param $field |
1294 | - * @return mixed|string |
|
1298 | + * @return string |
|
1295 | 1299 | */ |
1296 | 1300 | public static function sanitizeFieldName($field) |
1297 | 1301 | { |
@@ -1410,7 +1414,7 @@ discard block |
||
1410 | 1414 | /** |
1411 | 1415 | * @author Monte Ohrt <monte at ohrt dot com>, modified by Amos Robinson |
1412 | 1416 | * <amos dot robinson at gmail dot com> |
1413 | - * @param $string |
|
1417 | + * @param string $string |
|
1414 | 1418 | * @return string |
1415 | 1419 | */ |
1416 | 1420 | public static function closeTags($string) |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * @param bool $post |
168 | 168 | * @param string $area |
169 | 169 | * @param bool $allow_repost |
170 | - * @return bool |
|
170 | + * @return null|boolean |
|
171 | 171 | */ |
172 | 172 | public function check($post = true, $area = '', $allow_repost = true) |
173 | 173 | { |
@@ -311,9 +311,9 @@ discard block |
||
311 | 311 | } |
312 | 312 | |
313 | 313 | /** |
314 | - * @param $key_name |
|
314 | + * @param string $key_name |
|
315 | 315 | * @param $tmp_array |
316 | - * @return array |
|
316 | + * @return string[] |
|
317 | 317 | */ |
318 | 318 | public function extract_post_recursive($key_name, $tmp_array) |
319 | 319 | { |
@@ -42,6 +42,9 @@ |
||
42 | 42 | *** |
43 | 43 | * @param $msg |
44 | 44 | */ |
45 | +/** |
|
46 | + * @param string $msg |
|
47 | + */ |
|
45 | 48 | function showerror($msg) |
46 | 49 | { |
47 | 50 | global $xoopsDB; |