@@ -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 | { |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | * Check if PHP function is trusted. |
| 267 | 267 | * |
| 268 | 268 | * @param string $function_name |
| 269 | - * @param object $compiler compiler object |
|
| 269 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 270 | 270 | * |
| 271 | 271 | * @return boolean true if function is trusted |
| 272 | 272 | * @throws SmartyCompilerException if php function is not trusted |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | * |
| 312 | 312 | * @param string $class_name |
| 313 | 313 | * @param string $params |
| 314 | - * @param object $compiler compiler object |
|
| 314 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 315 | 315 | * |
| 316 | 316 | * @return boolean true if class method is trusted |
| 317 | 317 | * @throws SmartyCompilerException if static class method is not trusted |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | * Check if PHP modifier is trusted. |
| 350 | 350 | * |
| 351 | 351 | * @param string $modifier_name |
| 352 | - * @param object $compiler compiler object |
|
| 352 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 353 | 353 | * |
| 354 | 354 | * @return boolean true if modifier is trusted |
| 355 | 355 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | * Check if tag is trusted. |
| 372 | 372 | * |
| 373 | 373 | * @param string $tag_name |
| 374 | - * @param object $compiler compiler object |
|
| 374 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 375 | 375 | * |
| 376 | 376 | * @return boolean true if tag is trusted |
| 377 | 377 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | * Check if special $smarty variable is trusted. |
| 407 | 407 | * |
| 408 | 408 | * @param string $var_name |
| 409 | - * @param object $compiler compiler object |
|
| 409 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 410 | 410 | * |
| 411 | 411 | * @return boolean true if tag is trusted |
| 412 | 412 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | * Check if modifier plugin is trusted. |
| 428 | 428 | * |
| 429 | 429 | * @param string $modifier_name |
| 430 | - * @param object $compiler compiler object |
|
| 430 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 431 | 431 | * |
| 432 | 432 | * @return boolean true if tag is trusted |
| 433 | 433 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | * Check if constants are enabled or trusted |
| 463 | 463 | * |
| 464 | 464 | * @param string $const constant name |
| 465 | - * @param object $compiler compiler object |
|
| 465 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 466 | 466 | * |
| 467 | 467 | * @return bool |
| 468 | 468 | */ |