Completed
Pull Request — master (#133)
by Goffy
16:45
created
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.
htdocs/class/template.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * XoopsTpl::touch
102 102
      *
103
-     * @param  mixed $resourceName
103
+     * @param  string $resourceName
104 104
      * @return bool
105 105
      */
106 106
     public function touch($resourceName)
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     /**
155 155
      * XoopsTpl::clearCache()
156 156
      *
157
-     * @param  mixed $module_dirname
157
+     * @param  string $module_dirname
158 158
      * @param  mixed $theme_set
159 159
      * @param  mixed $template_set
160 160
      * @return bool
Please login to merge, or discard this patch.
htdocs/class/textsanitizer/syntaxhighlight/syntaxhighlight.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-     * @param $text
56
+     * @param string $text
57 57
      *
58
-     * @return mixed|string
58
+     * @return string
59 59
      */
60 60
     public function php($text)
61 61
     {
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-     * @param $source
107
-     * @param $language
106
+     * @param string $source
107
+     * @param string $language
108 108
      *
109 109
      * @return bool
110 110
      */
Please login to merge, or discard this patch.
htdocs/class/theme.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * Instanciate the specified theme
56 56
      * @param  array $options
57 57
      * @param  array $initArgs
58
-     * @return null|xos_opal_Theme
58
+     * @return xos_opal_Theme
59 59
      */
60 60
     public function &createInstance($options = array(), $initArgs = array())
61 61
     {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * @param array $options
112 112
      * @param array $initArgs
113 113
      *
114
-     * @return null|xos_opal_Theme
114
+     * @return xos_opal_Theme
115 115
      */
116 116
     public function &createInstance($options = array(), $initArgs = array())
117 117
     {
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
      * xos_opal_Theme::renderMetas()
725 725
      *
726 726
      * @param  mixed $type
727
-     * @param  mixed $return
727
+     * @param  boolean $return
728 728
      * @return bool|string
729 729
      */
730 730
     public function renderMetas($type = null, $return = false)
Please login to merge, or discard this patch.
htdocs/class/theme_blocks.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
     /**
142 142
      * xos_logos_PageBuilder::generateCacheId()
143 143
      *
144
-     * @param  mixed $cache_id
144
+     * @param  string $cache_id
145 145
      * @return mixed
146 146
      */
147 147
     public function generateCacheId($cache_id)
Please login to merge, or discard this patch.
htdocs/class/uploader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@
 block discarded – undo
378 378
     /**
379 379
      * Copy the file to its destination
380 380
      *
381
-     * @param $chmod
381
+     * @param integer $chmod
382 382
      * @return bool
383 383
      */
384 384
     public function _copyFile($chmod)
Please login to merge, or discard this patch.
htdocs/class/userutility.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     /**
80 80
      * XoopsUserUtility::validate
81 81
      *
82
-     * @return bool|string
82
+     * @return false|string
83 83
      */
84 84
     public static function validate()
85 85
     {
@@ -256,8 +256,8 @@  discard block
 block discarded – undo
256 256
      * XoopsUserUtility::getUnameFromIds()
257 257
      *
258 258
      * @param  mixed $uid
259
-     * @param  mixed $usereal
260
-     * @param  mixed $linked
259
+     * @param  boolean $usereal
260
+     * @param  boolean $linked
261 261
      * @return array
262 262
      */
263 263
     public static function getUnameFromIds($uid, $usereal = false, $linked = false)
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      *
300 300
      * @param  mixed $userid
301 301
      * @param  mixed $usereal
302
-     * @param  mixed $linked
302
+     * @param  boolean $linked
303 303
      * @return string
304 304
      */
305 305
     public static function getUnameFromId($userid, $usereal = false, $linked = false)
Please login to merge, or discard this patch.
htdocs/class/xml/rpc/xmlrpcapi.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,8 +154,8 @@
 block discarded – undo
154 154
     }
155 155
 
156 156
     /**
157
-     * @param $xoopstag
158
-     * @param $blogtag
157
+     * @param string $xoopstag
158
+     * @param string $blogtag
159 159
      */
160 160
     public function _setXoopsTagMap($xoopstag, $blogtag)
161 161
     {
Please login to merge, or discard this patch.