@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | * @param string $resource_name |
221 | 221 | * @param string $source_content |
222 | 222 | * @param string $compiled_content |
223 | - * @return true |
|
223 | + * @return null|boolean |
|
224 | 224 | */ |
225 | 225 | function _compile_file($resource_name, $source_content, &$compiled_content) |
226 | 226 | { |
@@ -761,7 +761,8 @@ discard block |
||
761 | 761 | * @param string $tag_command |
762 | 762 | * @param string $tag_args |
763 | 763 | * @param string $tag_modifier |
764 | - * @return string |
|
764 | + * @param string $output |
|
765 | + * @return boolean |
|
765 | 766 | */ |
766 | 767 | function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output) |
767 | 768 | { |
@@ -1420,6 +1421,11 @@ discard block |
||
1420 | 1421 | } |
1421 | 1422 | |
1422 | 1423 | |
1424 | + /** |
|
1425 | + * @param string $type |
|
1426 | + * @param string $name |
|
1427 | + * @param string $cache_code |
|
1428 | + */ |
|
1423 | 1429 | function _compile_arg_list($type, $name, $attrs, &$cache_code) { |
1424 | 1430 | $arg_list = array(); |
1425 | 1431 | |
@@ -1617,7 +1623,6 @@ discard block |
||
1617 | 1623 | * PHP code |
1618 | 1624 | * |
1619 | 1625 | * @param string $val |
1620 | - * @param string $tag_attrs |
|
1621 | 1626 | * @return string |
1622 | 1627 | */ |
1623 | 1628 | function _parse_var_props($val) |
@@ -1703,7 +1708,6 @@ discard block |
||
1703 | 1708 | * parse variable expression into PHP code |
1704 | 1709 | * |
1705 | 1710 | * @param string $var_expr |
1706 | - * @param string $output |
|
1707 | 1711 | * @return string |
1708 | 1712 | */ |
1709 | 1713 | function _parse_var($var_expr) |
@@ -1971,7 +1975,7 @@ discard block |
||
1971 | 1975 | * |
1972 | 1976 | * @param string $type |
1973 | 1977 | * @param string $name |
1974 | - * @param boolean? $delayed_loading |
|
1978 | + * @param boolean $delayed_loading |
|
1975 | 1979 | */ |
1976 | 1980 | function _add_plugin($type, $name, $delayed_loading = null) |
1977 | 1981 | { |
@@ -2261,6 +2265,8 @@ discard block |
||
2261 | 2265 | * check if the compilation changes from cacheable to |
2262 | 2266 | * non-cacheable state with the beginning of the current |
2263 | 2267 | * plugin. return php-code to reflect the transition. |
2268 | + * @param string $type |
|
2269 | + * @param string $name |
|
2264 | 2270 | * @return string |
2265 | 2271 | */ |
2266 | 2272 | function _push_cacheable_state($type, $name) { |
@@ -2279,6 +2285,8 @@ discard block |
||
2279 | 2285 | * check if the compilation changes from non-cacheable to |
2280 | 2286 | * cacheable state with the end of the current plugin return |
2281 | 2287 | * php-code to reflect the transition. |
2288 | + * @param string $type |
|
2289 | + * @param string $name |
|
2282 | 2290 | * @return string |
2283 | 2291 | */ |
2284 | 2292 | function _pop_cacheable_state($type, $name) { |
@@ -2294,6 +2302,7 @@ discard block |
||
2294 | 2302 | /** |
2295 | 2303 | * push opening tag-name, file-name and line-number on the tag-stack |
2296 | 2304 | * @param string the opening tag's name |
2305 | + * @param string $open_tag |
|
2297 | 2306 | */ |
2298 | 2307 | function _push_tag($open_tag) |
2299 | 2308 | { |
@@ -2304,6 +2313,7 @@ discard block |
||
2304 | 2313 | * pop closing tag-name |
2305 | 2314 | * raise an error if this stack-top doesn't match with the closing tag |
2306 | 2315 | * @param string the closing tag's name |
2316 | + * @param string $close_tag |
|
2307 | 2317 | * @return string the opening tag's name |
2308 | 2318 | */ |
2309 | 2319 | function _pop_tag($close_tag) |
@@ -698,6 +698,9 @@ discard block |
||
698 | 698 | Output: |
699 | 699 | \*======================================================================*/ |
700 | 700 | |
701 | + /** |
|
702 | + * @param string $http_method |
|
703 | + */ |
|
701 | 704 | function _httprequest($url, $fp, $URI, $http_method, $content_type = "", $body = "") |
702 | 705 | { |
703 | 706 | $cookie_headers = ''; |
@@ -873,6 +876,9 @@ discard block |
||
873 | 876 | Output: |
874 | 877 | \*======================================================================*/ |
875 | 878 | |
879 | + /** |
|
880 | + * @param string $http_method |
|
881 | + */ |
|
876 | 882 | function _httpsrequest($url, $URI, $http_method, $content_type = "", $body = "") |
877 | 883 | { |
878 | 884 | if ($this->passcookies && $this->_redirectaddr) |
@@ -1106,6 +1112,10 @@ discard block |
||
1106 | 1112 | Output: post body |
1107 | 1113 | \*======================================================================*/ |
1108 | 1114 | |
1115 | + /** |
|
1116 | + * @param string $formvars |
|
1117 | + * @param string $formfiles |
|
1118 | + */ |
|
1109 | 1119 | function _prepare_post_body($formvars, $formfiles) |
1110 | 1120 | { |
1111 | 1121 | settype($formvars, "array"); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * XoopsTpl::touch |
101 | 101 | * |
102 | - * @param mixed $resourceName |
|
102 | + * @param string $resourceName |
|
103 | 103 | * @return bool |
104 | 104 | */ |
105 | 105 | public function touch($resourceName) |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | /** |
154 | 154 | * XoopsTpl::clearCache() |
155 | 155 | * |
156 | - * @param mixed $module_dirname |
|
156 | + * @param string $module_dirname |
|
157 | 157 | * @param mixed $theme_set |
158 | 158 | * @param mixed $template_set |
159 | 159 | * @return bool |
@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @param $textarea_id |
28 | 28 | * |
29 | - * @return array |
|
29 | + * @return string[] |
|
30 | 30 | */ |
31 | 31 | public function encode($textarea_id) |
32 | 32 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | /** |
9 | 9 | * @param $textarea_id |
10 | 10 | * |
11 | - * @return array |
|
11 | + * @return string[] |
|
12 | 12 | */ |
13 | 13 | public function encode($textarea_id) |
14 | 14 | { |
@@ -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 | { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | /** |
30 | 30 | * @param $textarea_id |
31 | 31 | * |
32 | - * @return array |
|
32 | + * @return string[] |
|
33 | 33 | */ |
34 | 34 | public function encode($textarea_id) |
35 | 35 | { |
@@ -90,6 +90,8 @@ discard block |
||
90 | 90 | |
91 | 91 | /** |
92 | 92 | * @param $text |
93 | + * @param integer $width |
|
94 | + * @param integer $height |
|
93 | 95 | * |
94 | 96 | * @return string |
95 | 97 | */ |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * @param $textarea_id |
24 | 24 | * |
25 | - * @return array |
|
25 | + * @return string[] |
|
26 | 26 | */ |
27 | 27 | public function encode($textarea_id) |
28 | 28 | { |
@@ -753,7 +753,7 @@ |
||
753 | 753 | * xos_opal_Theme::renderMetas() |
754 | 754 | * |
755 | 755 | * @param mixed $type |
756 | - * @param mixed $return |
|
756 | + * @param boolean $return |
|
757 | 757 | * @return bool|string |
758 | 758 | */ |
759 | 759 | public function renderMetas($type = null, $return = false) |