@@ -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)) { |
@@ -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 | */ |
@@ -12,7 +12,8 @@ |
||
12 | 12 | namespace PH7; |
13 | 13 | defined('PH7') or exit('Restricted access'); |
14 | 14 | |
15 | -use PH7\Framework\Mvc\Request\Http, PH7\Framework\Ip\Ip; |
|
15 | +use PH7\Framework\Mvc\Request\Http; |
|
16 | +use PH7\Framework\Ip\Ip; |
|
16 | 17 | |
17 | 18 | class LikeCoreAjax |
18 | 19 | { |
@@ -8,12 +8,11 @@ |
||
8 | 8 | namespace PH7; |
9 | 9 | defined('PH7') or exit('Restricted access'); |
10 | 10 | |
11 | -use |
|
12 | -PH7\Framework\Mvc\Request\Http, |
|
13 | -PH7\Framework\Layout\Html\Design, |
|
14 | -PH7\Framework\Url\Url, |
|
15 | -PH7\Framework\Mvc\Router\Uri, |
|
16 | -PH7\Framework\Url\Header; |
|
11 | +use PH7\Framework\Mvc\Request\Http; |
|
12 | +use PH7\Framework\Layout\Html\Design; |
|
13 | +use PH7\Framework\Url\Url; |
|
14 | +use PH7\Framework\Mvc\Router\Uri; |
|
15 | +use PH7\Framework\Url\Header; |
|
17 | 16 | |
18 | 17 | if (AdminCore::auth() || UserCore::auth() || AffiliateCore::auth()) |
19 | 18 | { |
@@ -11,7 +11,8 @@ |
||
11 | 11 | namespace PH7; |
12 | 12 | defined('PH7') or exit('Restricted access'); |
13 | 13 | |
14 | -use PH7\Framework\Cache\Cache, PH7\Framework\Http\Http; |
|
14 | +use PH7\Framework\Cache\Cache; |
|
15 | +use PH7\Framework\Http\Http; |
|
15 | 16 | |
16 | 17 | class SmileCoreAjax extends \PH7\Framework\Service\Emoticon |
17 | 18 | { |