| @@ -280,7 +280,7 @@ discard block | ||
| 280 | 280 | /** | 
| 281 | 281 | * Check if Apache's mod_rewrite is installed. | 
| 282 | 282 | * | 
| 283 | - * @return boolean | |
| 283 | + * @return null|boolean | |
| 284 | 284 | */ | 
| 285 | 285 | function is_url_rewrite() | 
| 286 | 286 |  { | 
| @@ -358,7 +358,7 @@ discard block | ||
| 358 | 358 | /** | 
| 359 | 359 | * Checks if the URL is valid and contains the HTTP status code '200 OK', '301 Moved Permanently' or '302 Found' | 
| 360 | 360 | * | 
| 361 | - * @return string $sUrl | |
| 361 | + * @return boolean $sUrl | |
| 362 | 362 | * @return boolean | 
| 363 | 363 | */ | 
| 364 | 364 | function check_url($sUrl) | 
| @@ -376,7 +376,7 @@ discard block | ||
| 376 | 376 | * Check license key. | 
| 377 | 377 | * | 
| 378 | 378 | * @param string $sKey The License Key. | 
| 379 | - * @return boolean | |
| 379 | + * @return integer | |
| 380 | 380 | */ | 
| 381 | 381 | function check_license($sKey) | 
| 382 | 382 |  { | 
| @@ -169,6 +169,13 @@ | ||
| 169 | 169 | } | 
| 170 | 170 | } | 
| 171 | 171 | |
| 172 | +/** | |
| 173 | + * @param string $name | |
| 174 | + * @param string $extra | |
| 175 | + * @param string $separator | |
| 176 | + * @param boolean $labels | |
| 177 | + * @param boolean $label_ids | |
| 178 | + */ | |
| 172 | 179 | function smarty_function_html_checkboxes_output($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids, $escape = true) | 
| 173 | 180 |  { | 
| 174 | 181 | $_output = ''; | 
| @@ -184,6 +184,10 @@ | ||
| 184 | 184 | return $_html_result; | 
| 185 | 185 | } | 
| 186 | 186 | |
| 187 | +/** | |
| 188 | + * @param string|null $id | |
| 189 | + * @param integer $idx | |
| 190 | + */ | |
| 187 | 191 | function smarty_function_html_options_optgroup($key, $values, $selected, $id, $class, &$idx) | 
| 188 | 192 |  { | 
| 189 | 193 | $optgroup_html = '<optgroup label="' . smarty_function_escape_special_chars($key) . '">' . "\n"; | 
| @@ -157,6 +157,14 @@ | ||
| 157 | 157 | } | 
| 158 | 158 | } | 
| 159 | 159 | |
| 160 | +/** | |
| 161 | + * @param string $name | |
| 162 | + * @param string $extra | |
| 163 | + * @param string $separator | |
| 164 | + * @param boolean $labels | |
| 165 | + * @param boolean $label_ids | |
| 166 | + * @param boolean $escape | |
| 167 | + */ | |
| 160 | 168 | function smarty_function_html_radios_output($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids, $escape) | 
| 161 | 169 |  { | 
| 162 | 170 | $_output = ''; | 
| @@ -164,6 +164,10 @@ | ||
| 164 | 164 | return $output; | 
| 165 | 165 | } | 
| 166 | 166 | |
| 167 | +/** | |
| 168 | + * @param string $name | |
| 169 | + * @param string $var | |
| 170 | + */ | |
| 167 | 171 | function smarty_function_html_table_cycle($name, $var, $no) | 
| 168 | 172 |  { | 
| 169 | 173 |      if (!is_array($var)) { | 
| @@ -891,7 +891,7 @@ discard block | ||
| 891 | 891 | /** | 
| 892 | 892 | * Set template directory | 
| 893 | 893 | * | 
| 894 | - * @param string|array $template_dir directory(s) of template sources | |
| 894 | + * @param string $template_dir directory(s) of template sources | |
| 895 | 895 | * | 
| 896 | 896 | * @return Smarty current Smarty instance for chaining | 
| 897 | 897 | */ | 
| @@ -966,7 +966,7 @@ discard block | ||
| 966 | 966 | /** | 
| 967 | 967 | * Set config directory | 
| 968 | 968 | * | 
| 969 | - * @param $config_dir | |
| 969 | + * @param string $config_dir | |
| 970 | 970 | * | 
| 971 | 971 | * @return Smarty current Smarty instance for chaining | 
| 972 | 972 | */ | 
| @@ -1041,7 +1041,7 @@ discard block | ||
| 1041 | 1041 | /** | 
| 1042 | 1042 | * Set plugins directory | 
| 1043 | 1043 | * | 
| 1044 | - * @param string|array $plugins_dir directory(s) of plugins | |
| 1044 | + * @param string $plugins_dir directory(s) of plugins | |
| 1045 | 1045 | * | 
| 1046 | 1046 | * @return Smarty current Smarty instance for chaining | 
| 1047 | 1047 | */ | 
| @@ -310,7 +310,7 @@ discard block | ||
| 310 | 310 | * @param string $compile_id name of compile_id | 
| 311 | 311 | * @param string $exp_time expiration time | 
| 312 | 312 | * | 
| 313 | - * @return boolean | |
| 313 | + * @return integer | |
| 314 | 314 | */ | 
| 315 | 315 | public function clear_cache($tpl_file = null, $cache_id = null, $compile_id = null, $exp_time = null) | 
| 316 | 316 |      { | 
| @@ -322,7 +322,7 @@ discard block | ||
| 322 | 322 | * | 
| 323 | 323 | * @param string $exp_time expire time | 
| 324 | 324 | * | 
| 325 | - * @return boolean | |
| 325 | + * @return integer | |
| 326 | 326 | */ | 
| 327 | 327 | public function clear_all_cache($exp_time = null) | 
| 328 | 328 |      { | 
| @@ -360,7 +360,7 @@ discard block | ||
| 360 | 360 | * @param string $compile_id | 
| 361 | 361 | * @param string $exp_time | 
| 362 | 362 | * | 
| 363 | -     * @return boolean results of {@link smarty_core_rm_auto()} | |
| 363 | +     * @return integer results of {@link smarty_core_rm_auto()} | |
| 364 | 364 | */ | 
| 365 | 365 | public function clear_compiled_tpl($tpl_file = null, $compile_id = null, $exp_time = null) | 
| 366 | 366 |      { | 
| @@ -384,7 +384,7 @@ discard block | ||
| 384 | 384 | * | 
| 385 | 385 | * @param string $name | 
| 386 | 386 | * | 
| 387 | - * @return array | |
| 387 | + * @return string | |
| 388 | 388 | */ | 
| 389 | 389 | public function get_template_vars($name = null) | 
| 390 | 390 |      { | 
| @@ -396,7 +396,7 @@ discard block | ||
| 396 | 396 | * | 
| 397 | 397 | * @param string $name | 
| 398 | 398 | * | 
| 399 | - * @return array | |
| 399 | + * @return string | |
| 400 | 400 | */ | 
| 401 | 401 | public function get_config_vars($name = null) | 
| 402 | 402 |      { | 
| @@ -258,6 +258,7 @@ discard block | ||
| 258 | 258 |       * {@internal the header uses 8 Bytes, the first 4 Bytes are the seconds, the second 4 Bytes are the microseconds}} | 
| 259 | 259 | * | 
| 260 | 260 | * @param string &$content the content to be cached | 
| 261 | + * @param string $content | |
| 261 | 262 | */ | 
| 262 | 263 | protected function addMetaTimestamp(&$content) | 
| 263 | 264 |      { | 
| @@ -364,7 +365,7 @@ discard block | ||
| 364 | 365 | * @param string $compile_id compile id | 
| 365 | 366 | * @param string $resource_uid source's filepath | 
| 366 | 367 | * | 
| 367 | - * @return array list of InvalidationKeys | |
| 368 | + * @return string[] list of InvalidationKeys | |
| 368 | 369 | * @uses $invalidationKeyPrefix to prepend to each InvalidationKey | 
| 369 | 370 | */ | 
| 370 | 371 | protected function listInvalidationKeys($cid, $resource_name = null, $cache_id = null, $compile_id = null, $resource_uid = null) | 
| @@ -456,7 +457,7 @@ discard block | ||
| 456 | 457 | /** | 
| 457 | 458 | * Read values for a set of keys from cache | 
| 458 | 459 | * | 
| 459 | - * @param array $keys list of keys to fetch | |
| 460 | + * @param string[] $keys list of keys to fetch | |
| 460 | 461 | * | 
| 461 | 462 | * @return array list of values with the given keys used as indexes | 
| 462 | 463 | */ | 
| @@ -475,7 +476,7 @@ discard block | ||
| 475 | 476 | /** | 
| 476 | 477 | * Remove values from cache | 
| 477 | 478 | * | 
| 478 | - * @param array $keys list of keys to delete | |
| 479 | + * @param string[] $keys list of keys to delete | |
| 479 | 480 | * | 
| 480 | 481 | * @return boolean true on success, false on failure | 
| 481 | 482 | */ | 
| @@ -70,7 +70,7 @@ | ||
| 70 | 70 | * @param array $args array with attributes from parser | 
| 71 | 71 | * @param object $compiler compiler object | 
| 72 | 72 | * | 
| 73 | - * @return boolean true | |
| 73 | + * @return null|boolean true | |
| 74 | 74 | */ | 
| 75 | 75 | public function compile($args, $compiler) | 
| 76 | 76 |      { |