@@ -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 | */ |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | - * @return array |
|
| 138 | + * @return string[] |
|
| 139 | 139 | */ |
| 140 | 140 | private function getAdminAvatarDetails() |
| 141 | 141 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | - * @return array |
|
| 150 | + * @return string[] |
|
| 151 | 151 | */ |
| 152 | 152 | private function getGhostAvatarDetails() |
| 153 | 153 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | /** |
| 86 | 86 | * @param int $iStatus The "code" for the HTTP status. |
| 87 | 87 | * |
| 88 | - * @return string|bool $iStatus Returns the "HTTP status code" if found otherwise returns "false" |
|
| 88 | + * @return integer $iStatus Returns the "HTTP status code" if found otherwise returns "false" |
|
| 89 | 89 | */ |
| 90 | 90 | public static function getStatusCodes($iStatus) |
| 91 | 91 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | /** |
| 123 | 123 | * Set one or multiple headers. |
| 124 | 124 | * |
| 125 | - * @param string|array $mHeaders Headers to send. |
|
| 125 | + * @param string $mHeaders Headers to send. |
|
| 126 | 126 | * |
| 127 | 127 | * @throws Exception |
| 128 | 128 | */ |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * @param string $sUsr |
| 186 | 186 | * @param string $sPwd |
| 187 | 187 | * |
| 188 | - * @return bool TRUE if the authentication is correct, otherwise FALSE. |
|
| 188 | + * @return null|boolean TRUE if the authentication is correct, otherwise FALSE. |
|
| 189 | 189 | */ |
| 190 | 190 | public static function requireAuth($sUsr, $sPwd) |
| 191 | 191 | { |
@@ -355,7 +355,7 @@ |
||
| 355 | 355 | * @param string $sToFind |
| 356 | 356 | * @param string $sContents |
| 357 | 357 | * |
| 358 | - * @return bool |
|
| 358 | + * @return integer |
|
| 359 | 359 | */ |
| 360 | 360 | private function find($sToFind, $sContents) |
| 361 | 361 | { |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * @param string $sMessage |
| 105 | 105 | * @param string $sCreatedDate |
| 106 | 106 | * |
| 107 | - * @return bool|int Returns the ID of the message on success or FALSE on failure. |
|
| 107 | + * @return integer Returns the ID of the message on success or FALSE on failure. |
|
| 108 | 108 | */ |
| 109 | 109 | public function sendMsg($iSender, $iRecipient, $sTitle, $sMessage, $sCreatedDate) |
| 110 | 110 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param int $iOffset |
| 23 | 23 | * @param int $iLimit |
| 24 | 24 | * @param string $sOrder A constant: SearchCoreModel::CREATED (default value) or SearchCoreModel::UPDATED |
| 25 | - * @param int|null $iApproved (0 = Unmoderated | 1 = Approved | NULL = unmoderated and approved) |
|
| 25 | + * @param integer $iApproved (0 = Unmoderated | 1 = Approved | NULL = unmoderated and approved) |
|
| 26 | 26 | * |
| 27 | 27 | * @return array |
| 28 | 28 | */ |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * Gets total note posts. |
| 63 | 63 | * |
| 64 | - * @param int|null $iApproved (0 = Unmoderated | 1 = Approved | NULL = unmoderated and approved) Default 1 |
|
| 64 | + * @param integer $iApproved (0 = Unmoderated | 1 = Approved | NULL = unmoderated and approved) Default 1 |
|
| 65 | 65 | * @param int $iDay Default 0 |
| 66 | 66 | * |
| 67 | 67 | * @return int |