@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * Start logging template |
| 49 | 49 | * |
| 50 | 50 | * @param \Smarty_Internal_Template $template template |
| 51 | - * @param null $mode true: display false: fetch null: subtemplate |
|
| 51 | + * @param null|boolean $mode true: display false: fetch null: subtemplate |
|
| 52 | 52 | */ |
| 53 | 53 | public function start_template(Smarty_Internal_Template $template, $mode = null) |
| 54 | 54 | { |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | /** |
| 192 | 192 | * Opens a window for the Smarty Debugging Console and display the data |
| 193 | 193 | * |
| 194 | - * @param Smarty_Internal_Template|Smarty $obj object to debug |
|
| 194 | + * @param Smarty_Internal_Template $obj object to debug |
|
| 195 | 195 | * @param bool $full |
| 196 | 196 | * |
| 197 | 197 | * @throws \Exception |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data |
| 27 | 27 | * @param string $variable the stream of the variable |
| 28 | 28 | * |
| 29 | - * @return mixed |
|
| 29 | + * @return string|null |
|
| 30 | 30 | * @throws \SmartyException |
| 31 | 31 | */ |
| 32 | 32 | public function getStreamVariable(Smarty_Internal_Data $data, $variable) |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | * @param string $file |
| 109 | 109 | * @param \Smarty $smarty |
| 110 | 110 | * |
| 111 | - * @return bool|string full filepath or false |
|
| 111 | + * @return string|false full filepath or false |
|
| 112 | 112 | * |
| 113 | 113 | */ |
| 114 | 114 | public function getIncludePath($dirs, $file, Smarty $smarty) |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | * |
| 77 | 77 | * @param \Smarty_Template_Cached $cached |
| 78 | 78 | * @param \Smarty_Internal_Template $_template |
| 79 | - * @param $no_output_filter |
|
| 79 | + * @param boolean $no_output_filter |
|
| 80 | 80 | * |
| 81 | 81 | * @throws \Exception |
| 82 | 82 | */ |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | * @param mixed $_content template source |
| 80 | 80 | * @param bool $isTemplateSource |
| 81 | 81 | * |
| 82 | - * @return bool true if compiling succeeded, false if it failed |
|
| 82 | + * @return string true if compiling succeeded, false if it failed |
|
| 83 | 83 | * @throws \SmartyCompilerException |
| 84 | 84 | */ |
| 85 | 85 | protected function doCompile($_content, $isTemplateSource = false) |
@@ -259,8 +259,8 @@ |
||
| 259 | 259 | * Runtime function to render sub-template |
| 260 | 260 | * |
| 261 | 261 | * @param string $template template name |
| 262 | - * @param mixed $cache_id cache id |
|
| 263 | - * @param mixed $compile_id compile id |
|
| 262 | + * @param string $cache_id cache id |
|
| 263 | + * @param string $compile_id compile id |
|
| 264 | 264 | * @param integer $caching cache mode |
| 265 | 265 | * @param integer $cache_lifetime life time of cache data |
| 266 | 266 | * @param array $data passed parameter template variables |
@@ -140,9 +140,9 @@ |
||
| 140 | 140 | * @api Smarty::isCached() |
| 141 | 141 | * @link http://www.smarty.net/docs/en/api.is.cached.tpl |
| 142 | 142 | * |
| 143 | - * @param null|string|\Smarty_Internal_Template $template the resource handle of the template file or template object |
|
| 144 | - * @param mixed $cache_id cache id to be used with this template |
|
| 145 | - * @param mixed $compile_id compile id to be used with this template |
|
| 143 | + * @param string $template the resource handle of the template file or template object |
|
| 144 | + * @param string|null $cache_id cache id to be used with this template |
|
| 145 | + * @param string|null $compile_id compile id to be used with this template |
|
| 146 | 146 | * @param object $parent next higher level of Smarty variables |
| 147 | 147 | * |
| 148 | 148 | * @return bool cache status |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | * @param bool $nocache true is shall be compiled in nocache mode |
| 318 | 318 | * @param null|Smarty_Internal_TemplateCompilerBase $parent_compiler |
| 319 | 319 | * |
| 320 | - * @return bool true if compiling succeeded, false if it failed |
|
| 320 | + * @return string true if compiling succeeded, false if it failed |
|
| 321 | 321 | * @throws \Exception |
| 322 | 322 | */ |
| 323 | 323 | public function compileTemplate(Smarty_Internal_Template $template, |
@@ -654,7 +654,7 @@ discard block |
||
| 654 | 654 | * @param string $tag tag name |
| 655 | 655 | * @param array $args list of tag attributes |
| 656 | 656 | * @param mixed $param1 optional parameter |
| 657 | - * @param mixed $param2 optional parameter |
|
| 657 | + * @param string $param2 optional parameter |
|
| 658 | 658 | * @param mixed $param3 optional parameter |
| 659 | 659 | * |
| 660 | 660 | * @return bool|string compiled code or false |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | * |
| 677 | 677 | * @param string $tag tag name |
| 678 | 678 | * |
| 679 | - * @return bool|\Smarty_Internal_CompileBase tag compiler object or false if not found |
|
| 679 | + * @return integer tag compiler object or false if not found |
|
| 680 | 680 | * @throws \SmartyCompilerException |
| 681 | 681 | */ |
| 682 | 682 | public function getTagCompiler($tag) |
@@ -701,7 +701,7 @@ discard block |
||
| 701 | 701 | /** |
| 702 | 702 | * Check for plugins and return function name |
| 703 | 703 | * |
| 704 | - * @param $plugin_name |
|
| 704 | + * @param null|string $plugin_name |
|
| 705 | 705 | * @param string $plugin_type type of plugin |
| 706 | 706 | * |
| 707 | 707 | * @return string call name of function |
@@ -883,7 +883,7 @@ discard block |
||
| 883 | 883 | * |
| 884 | 884 | * @param string $input |
| 885 | 885 | * |
| 886 | - * @return bool|string |
|
| 886 | + * @return string|false |
|
| 887 | 887 | */ |
| 888 | 888 | public function getId($input) |
| 889 | 889 | { |
@@ -898,7 +898,7 @@ discard block |
||
| 898 | 898 | * |
| 899 | 899 | * @param string $input |
| 900 | 900 | * |
| 901 | - * @return bool|string |
|
| 901 | + * @return string|false |
|
| 902 | 902 | */ |
| 903 | 903 | public function getVariableName($input) |
| 904 | 904 | { |
@@ -1075,7 +1075,7 @@ discard block |
||
| 1075 | 1075 | } |
| 1076 | 1076 | |
| 1077 | 1077 | /** |
| 1078 | - * @param $lexerPreg |
|
| 1078 | + * @param string $lexerPreg |
|
| 1079 | 1079 | * |
| 1080 | 1080 | * @return mixed |
| 1081 | 1081 | */ |
@@ -1268,7 +1268,7 @@ discard block |
||
| 1268 | 1268 | /** |
| 1269 | 1269 | * method to compile a Smarty template |
| 1270 | 1270 | * |
| 1271 | - * @param mixed $_content template source |
|
| 1271 | + * @param string $_content template source |
|
| 1272 | 1272 | * @param bool $isTemplateSource |
| 1273 | 1273 | * |
| 1274 | 1274 | * @return bool true if compiling succeeded, false if it failed |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * @param string $resource_name template_resource or config_resource to parse |
| 111 | 111 | * @param string $default_resource the default resource_type defined in $smarty |
| 112 | 112 | * |
| 113 | - * @return array with parsed resource name and type |
|
| 113 | + * @return string[] with parsed resource name and type |
|
| 114 | 114 | */ |
| 115 | 115 | public static function parseResourceName($resource_name, $default_resource) |
| 116 | 116 | { |