@@ -269,6 +269,7 @@ discard block |
||
269 | 269 | * {@internal the header uses 8 Bytes, the first 4 Bytes are the seconds, the second 4 Bytes are the microseconds}} |
270 | 270 | * |
271 | 271 | * @param string &$content the content to be cached |
272 | + * @param string $content |
|
272 | 273 | */ |
273 | 274 | protected function addMetaTimestamp(&$content) |
274 | 275 | { |
@@ -282,7 +283,7 @@ discard block |
||
282 | 283 | * |
283 | 284 | * @param string &$content the cached content |
284 | 285 | * |
285 | - * @return float the microtime the content was cached |
|
286 | + * @return integer the microtime the content was cached |
|
286 | 287 | */ |
287 | 288 | protected function getMetaTimestamp(&$content) |
288 | 289 | { |
@@ -378,7 +379,7 @@ discard block |
||
378 | 379 | * @param string $compile_id compile id |
379 | 380 | * @param string $resource_uid source's filepath |
380 | 381 | * |
381 | - * @return array list of InvalidationKeys |
|
382 | + * @return string[] list of InvalidationKeys |
|
382 | 383 | * @uses $invalidationKeyPrefix to prepend to each InvalidationKey |
383 | 384 | */ |
384 | 385 | protected function listInvalidationKeys($cid, $resource_name = null, $cache_id = null, $compile_id = null, |
@@ -470,7 +471,7 @@ discard block |
||
470 | 471 | /** |
471 | 472 | * Read values for a set of keys from cache |
472 | 473 | * |
473 | - * @param array $keys list of keys to fetch |
|
474 | + * @param string[] $keys list of keys to fetch |
|
474 | 475 | * |
475 | 476 | * @return array list of values with the given keys used as indexes |
476 | 477 | */ |
@@ -489,7 +490,7 @@ discard block |
||
489 | 490 | /** |
490 | 491 | * Remove values from cache |
491 | 492 | * |
492 | - * @param array $keys list of keys to delete |
|
493 | + * @param string[] $keys list of keys to delete |
|
493 | 494 | * |
494 | 495 | * @return boolean true on success, false on failure |
495 | 496 | */ |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object |
38 | 38 | * @param array $parameter array with compilation parameter |
39 | 39 | * |
40 | - * @return bool true |
|
40 | + * @return string true |
|
41 | 41 | */ |
42 | 42 | public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) |
43 | 43 | { |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object |
24 | 24 | * @param array $parameter array with compilation parameter |
25 | 25 | * |
26 | - * @return string compiled code |
|
26 | + * @return boolean compiled code |
|
27 | 27 | */ |
28 | 28 | public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) |
29 | 29 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param array $args array with attributes from parser |
52 | 52 | * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object |
53 | 53 | * |
54 | - * @return string compiled code |
|
54 | + * @return boolean compiled code |
|
55 | 55 | */ |
56 | 56 | public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) |
57 | 57 | { |
@@ -113,6 +113,9 @@ |
||
113 | 113 | return $this->{'yylex' . $this->_yy_state}(); |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param integer $state |
|
118 | + */ |
|
116 | 119 | public function yypushstate($state) |
117 | 120 | { |
118 | 121 | if ($this->yyTraceFILE) { |
@@ -119,7 +119,7 @@ |
||
119 | 119 | * @link http://www.smarty.net/docs/en/api.append.tpl |
120 | 120 | * |
121 | 121 | * @param array|string $tpl_var the template variable name(s) |
122 | - * @param mixed $value the value to append |
|
122 | + * @param string $value the value to append |
|
123 | 123 | * @param bool $merge flag if array elements shall be merged |
124 | 124 | * @param bool $nocache if true any output of this variable will |
125 | 125 | * be not cached |
@@ -135,7 +135,7 @@ |
||
135 | 135 | * @param \Smarty_Internal_Template $_template |
136 | 136 | * @param $name |
137 | 137 | * |
138 | - * @return null |
|
138 | + * @return string|null |
|
139 | 139 | */ |
140 | 140 | public function getBuffer(Smarty_Internal_Template $_template, $name) |
141 | 141 | { |
@@ -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 |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | /** |
300 | 300 | * method to compile a Smarty template |
301 | 301 | * |
302 | - * @param mixed $_content template source |
|
302 | + * @param string $_content template source |
|
303 | 303 | * @param bool $isTemplateSource |
304 | 304 | * |
305 | 305 | * @return bool true if compiling succeeded, false if it failed |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * @param bool $nocache true is shall be compiled in nocache mode |
325 | 325 | * @param null|Smarty_Internal_TemplateCompilerBase $parent_compiler |
326 | 326 | * |
327 | - * @return bool true if compiling succeeded, false if it failed |
|
327 | + * @return string true if compiling succeeded, false if it failed |
|
328 | 328 | * @throws \Exception |
329 | 329 | */ |
330 | 330 | public function compileTemplate(Smarty_Internal_Template $template, $nocache = null, |
@@ -897,7 +897,7 @@ discard block |
||
897 | 897 | * @param string $tag tag name |
898 | 898 | * @param array $args list of tag attributes |
899 | 899 | * @param mixed $param1 optional parameter |
900 | - * @param mixed $param2 optional parameter |
|
900 | + * @param string $param2 optional parameter |
|
901 | 901 | * @param mixed $param3 optional parameter |
902 | 902 | * |
903 | 903 | * @return string|bool compiled code or false |
@@ -917,7 +917,7 @@ discard block |
||
917 | 917 | * |
918 | 918 | * @param string $tag tag name |
919 | 919 | * |
920 | - * @return Smarty_Internal_CompileBase|bool tag compiler object or false if not found |
|
920 | + * @return integer tag compiler object or false if not found |
|
921 | 921 | */ |
922 | 922 | public function getTagCompiler($tag) |
923 | 923 | { |
@@ -1122,7 +1122,7 @@ discard block |
||
1122 | 1122 | * |
1123 | 1123 | * @param string $input |
1124 | 1124 | * |
1125 | - * @return bool|string |
|
1125 | + * @return string|false |
|
1126 | 1126 | */ |
1127 | 1127 | public function getId($input) |
1128 | 1128 | { |
@@ -1137,7 +1137,7 @@ discard block |
||
1137 | 1137 | * |
1138 | 1138 | * @param string $input |
1139 | 1139 | * |
1140 | - * @return bool|string |
|
1140 | + * @return string|false |
|
1141 | 1141 | */ |
1142 | 1142 | public function getVariableName($input) |
1143 | 1143 | { |
@@ -183,7 +183,7 @@ |
||
183 | 183 | * @param string $resource_name template_resource or config_resource to parse |
184 | 184 | * @param string $default_resource the default resource_type defined in $smarty |
185 | 185 | * |
186 | - * @return array with parsed resource name and type |
|
186 | + * @return string[] with parsed resource name and type |
|
187 | 187 | */ |
188 | 188 | public static function parseResourceName($resource_name, $default_resource) |
189 | 189 | { |