Completed
Pull Request — master (#555)
by Lucio
09:45
created
htdocs/class/smarty/plugins/function.eval.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
  * @author Monte Ohrt <monte at ohrt dot com>
18 18
  * @param array
19 19
  * @param Smarty
20
+ * @param XoopsTpl $smarty
20 21
  */
21 22
 function smarty_function_eval($params, &$smarty)
22 23
 {
Please login to merge, or discard this patch.
htdocs/class/smarty/plugins/function.html_checkboxes.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -123,6 +123,12 @@
 block discarded – undo
123 123
 
124 124
 }
125 125
 
126
+/**
127
+ * @param string $name
128
+ * @param string $extra
129
+ * @param string $separator
130
+ * @param boolean $labels
131
+ */
126 132
 function smarty_function_html_checkboxes_output($name, $value, $output, $selected, $extra, $separator, $labels) {
127 133
     $_output = '';
128 134
     if ($labels) $_output .= '<label>';
Please login to merge, or discard this patch.
htdocs/class/smarty/plugins/function.html_radios.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -127,6 +127,14 @@
 block discarded – undo
127 127
 
128 128
 }
129 129
 
130
+/**
131
+ * @param string $name
132
+ * @param null|string $selected
133
+ * @param string $extra
134
+ * @param string $separator
135
+ * @param boolean $labels
136
+ * @param boolean $label_ids
137
+ */
130 138
 function smarty_function_html_radios_output($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids) {
131 139
     $_output = '';
132 140
     if ($labels) {
Please login to merge, or discard this patch.
htdocs/class/smarty/plugins/function.html_table.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -161,6 +161,10 @@
 block discarded – undo
161 161
     return $output;
162 162
 }
163 163
 
164
+/**
165
+ * @param string $name
166
+ * @param string $var
167
+ */
164 168
 function smarty_function_html_table_cycle($name, $var, $no) {
165 169
     if(!is_array($var)) {
166 170
         $ret = $var;
Please login to merge, or discard this patch.
htdocs/class/smarty/plugins/modifier.capitalize.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
     return preg_replace_callback('!\'?\b\w(\w|\')*\b!', 'smarty_modifier_capitalize_ucfirst', $string);
25 25
 }
26 26
 
27
+/**
28
+ * @param boolean $uc_digits
29
+ */
27 30
 function smarty_modifier_capitalize_ucfirst($string, $uc_digits = null)
28 31
 {
29 32
     static $_uc_digits = false;
Please login to merge, or discard this patch.
htdocs/class/smarty/plugins/outputfilter.trimwhitespace.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -61,6 +61,10 @@
 block discarded – undo
61 61
     return $source;
62 62
 }
63 63
 
64
+/**
65
+ * @param string $search_str
66
+ * @param string[] $replace
67
+ */
64 68
 function smarty_outputfilter_trimwhitespace_replace($search_str, $replace, &$subject) {
65 69
     $_len = strlen($search_str);
66 70
     $_pos = 0;
Please login to merge, or discard this patch.
htdocs/class/smarty/plugins/shared.make_timestamp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  *           from a string.
13 13
  * @author   Monte Ohrt <monte at ohrt dot com>
14 14
  * @param string
15
- * @return string
15
+ * @return integer
16 16
  */
17 17
 function smarty_make_timestamp($string)
18 18
 {
Please login to merge, or discard this patch.
htdocs/class/smarty/Smarty.class.php 1 patch
Doc Comments   +3 added lines, -16 removed lines patch added patch discarded remove patch
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
     /**
608 608
      * appends values to template variables
609 609
      *
610
-     * @param array|string $tpl_var the template variable name(s)
610
+     * @param string $tpl_var the template variable name(s)
611 611
      * @param mixed $value the value to append
612 612
      */
613 613
     function append($tpl_var, $value=null, $merge=false)
@@ -712,7 +712,6 @@  discard block
 block discarded – undo
712 712
      * @param object &$object_impl the referenced PHP object to register
713 713
      * @param null|array $allowed list of allowed methods (empty = all)
714 714
      * @param boolean $smarty_args smarty argument format, else traditional
715
-     * @param null|array $block_functs list of methods that are block format
716 715
      */
717 716
     function register_object($object, &$object_impl, $allowed = array(), $smarty_args = true, $block_methods = array())
718 717
     {
@@ -977,7 +976,7 @@  discard block
 block discarded – undo
977 976
      * @param string $tpl_file name of template file
978 977
      * @param string $cache_id
979 978
      * @param string $compile_id
980
-     * @return string|false results of {@link _read_cache_file()}
979
+     * @return boolean results of {@link _read_cache_file()}
981 980
      */
982 981
     function is_cached($tpl_file, $cache_id = null, $compile_id = null)
983 982
     {
@@ -1046,7 +1045,6 @@  discard block
 block discarded – undo
1046 1045
      * Returns an array containing template variables
1047 1046
      *
1048 1047
      * @param string $name
1049
-     * @param string $type
1050 1048
      * @return array
1051 1049
      */
1052 1050
     function &get_template_vars($name=null)
@@ -1066,7 +1064,6 @@  discard block
 block discarded – undo
1066 1064
      * Returns an array containing config variables
1067 1065
      *
1068 1066
      * @param string $name
1069
-     * @param string $type
1070 1067
      * @return array
1071 1068
      */
1072 1069
     function &get_config_vars($name=null)
@@ -1444,6 +1441,7 @@  discard block
 block discarded – undo
1444 1441
      * @param string $resource_name
1445 1442
      * @param string $source_content
1446 1443
      * @param string $compiled_content
1444
+     * @param string $cache_include_path
1447 1445
      * @return boolean
1448 1446
      */
1449 1447
     function _compile_source($resource_name, &$source_content, &$compiled_content, $cache_include_path=null)
@@ -1521,11 +1519,6 @@  discard block
 block discarded – undo
1521 1519
      *
1522 1520
      * sets $source_content to the source of the template, and
1523 1521
      * $resource_timestamp to its time stamp
1524
-     * @param string $resource_name
1525
-     * @param string $source_content
1526
-     * @param integer $resource_timestamp
1527
-     * @param boolean $get_source
1528
-     * @param boolean $quiet
1529 1522
      * @return boolean
1530 1523
      */
1531 1524
 
@@ -1606,10 +1599,6 @@  discard block
 block discarded – undo
1606 1599
     /**
1607 1600
      * parse out the type and name from the resource
1608 1601
      *
1609
-     * @param string $resource_base_path
1610
-     * @param string $resource_name
1611
-     * @param string $resource_type
1612
-     * @param string $resource_name
1613 1602
      * @return boolean
1614 1603
      */
1615 1604
 
@@ -1670,8 +1659,6 @@  discard block
 block discarded – undo
1670 1659
     /**
1671 1660
      * Handle modifiers
1672 1661
      *
1673
-     * @param string|null $modifier_name
1674
-     * @param array|null $map_array
1675 1662
      * @return string result of modifiers
1676 1663
      */
1677 1664
     function _run_mod_handler()
Please login to merge, or discard this patch.
htdocs/class/smarty/Smarty_Compiler.class.php 1 patch
Doc Comments   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.