@@ -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 | */ |
@@ -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 | { |
@@ -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 |
@@ -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 |
@@ -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 | { |
@@ -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 | */ |
@@ -335,7 +335,7 @@ |
||
| 335 | 335 | /** |
| 336 | 336 | * Get the list of modules that are possible to enable as the default system module. |
| 337 | 337 | * |
| 338 | - * @return array |
|
| 338 | + * @return string[] |
|
| 339 | 339 | */ |
| 340 | 340 | private static function getActivatableDefMods() |
| 341 | 341 | { |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | * |
| 187 | 187 | * @param string $sData |
| 188 | 188 | * |
| 189 | - * @return string|null|self If the cache is disabled, returns null, otherwise returns this class. |
|
| 189 | + * @return null|Cache If the cache is disabled, returns null, otherwise returns this class. |
|
| 190 | 190 | */ |
| 191 | 191 | public function put($sData) |
| 192 | 192 | { |
@@ -388,6 +388,7 @@ |
||
| 388 | 388 | /** |
| 389 | 389 | * Is $c a letter, digit, underscore, dollar sign, or non-ASCII character. |
| 390 | 390 | * |
| 391 | + * @param string $c |
|
| 391 | 392 | * @return bool |
| 392 | 393 | */ |
| 393 | 394 | protected function isAlphaNum($c) |