@@ -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 | */ |
@@ -126,7 +126,6 @@ |
||
126 | 126 | /** |
127 | 127 | * create Source Object container |
128 | 128 | * |
129 | - * @param Smarty_Resource $handler Resource Handler this source object communicates with |
|
130 | 129 | * @param Smarty $smarty Smarty instance this source object belongs to |
131 | 130 | * @param string $resource full template_resource |
132 | 131 | * @param string $type type of resource |
@@ -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 | { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * @param integer $iHeight |
62 | 62 | * @param boolean $bOnlyActive |
63 | 63 | * |
64 | - * @return boolean|void |
|
64 | + * @return false|null |
|
65 | 65 | */ |
66 | 66 | public function ad($iWidth, $iHeight, $bOnlyActive = true) |
67 | 67 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | /** |
86 | 86 | * @param integer $iStatus The "code" for the HTTP status. |
87 | 87 | * |
88 | - * @return string|boolean $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 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | /** |
122 | 122 | * Set one or multiple headers. |
123 | 123 | * |
124 | - * @param string|array $mHeaders Headers to send. |
|
124 | + * @param string $mHeaders Headers to send. |
|
125 | 125 | * |
126 | 126 | * @throws Exception |
127 | 127 | */ |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * @param string $sUsr |
181 | 181 | * @param string $sPwd |
182 | 182 | * |
183 | - * @return boolean TRUE if the authentication is correct, otherwise FALSE. |
|
183 | + * @return null|boolean TRUE if the authentication is correct, otherwise FALSE. |
|
184 | 184 | */ |
185 | 185 | public static function requireAuth($sUsr, $sPwd) |
186 | 186 | { |
@@ -120,7 +120,7 @@ |
||
120 | 120 | /** |
121 | 121 | * Check is the POST request method exists. |
122 | 122 | * |
123 | - * @param array|string $mKey The key of the request or an array with the list of key of the variables request. |
|
123 | + * @param string $mKey The key of the request or an array with the list of key of the variables request. |
|
124 | 124 | * @param string $sParam Optional parameter, check the type of the request variable | Value type is: str, int, float, bool |
125 | 125 | * |
126 | 126 | * @return boolean |
@@ -296,7 +296,7 @@ |
||
296 | 296 | /** |
297 | 297 | * Check if Apache's mod_rewrite is installed. |
298 | 298 | * |
299 | - * @return boolean |
|
299 | + * @return null|boolean |
|
300 | 300 | */ |
301 | 301 | function is_url_rewrite() |
302 | 302 | { |
@@ -68,6 +68,9 @@ discard block |
||
68 | 68 | $this->_bIsGoogleClosure = (bool) Config::getInstance()->values['cache']['enable.js.closure_compiler_service']; |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param string $sPhp |
|
73 | + */ |
|
71 | 74 | public function parsePhp($sPhp) |
72 | 75 | { |
73 | 76 | $sPhp = preg_replace('#/\*.*+\*#', '', $sPhp); # Removing PHP comments |
@@ -90,6 +93,9 @@ discard block |
||
90 | 93 | return $sHtml; |
91 | 94 | } |
92 | 95 | |
96 | + /** |
|
97 | + * @param string $sContent |
|
98 | + */ |
|
93 | 99 | public function parseCss($sContent) |
94 | 100 | { |
95 | 101 | if ($this->_bJavaCompiler) |
@@ -144,6 +150,9 @@ discard block |
||
144 | 150 | return $sCssMinified; |
145 | 151 | } |
146 | 152 | |
153 | + /** |
|
154 | + * @param string $sContent |
|
155 | + */ |
|
147 | 156 | public function parseJs($sContent) |
148 | 157 | { |
149 | 158 | if ($this->_bJavaCompiler) |