@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 420 | /** |
| 421 | - * @return string |
|
| 421 | + * @return resource |
|
| 422 | 422 | */ |
| 423 | 423 | public function getFileName() |
| 424 | 424 | { |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | /** |
| 429 | 429 | * Determine and get the type of the image (even an unallowed image type) by reading the first bytes and checking its signature. |
| 430 | 430 | * |
| 431 | - * @return string|bool When a correct signature is found, returns the appropriate value, FALSE otherwise. |
|
| 431 | + * @return integer When a correct signature is found, returns the appropriate value, FALSE otherwise. |
|
| 432 | 432 | */ |
| 433 | 433 | public function getType() |
| 434 | 434 | { |
@@ -12,6 +12,10 @@ discard block |
||
| 12 | 12 | class ModeratorModel extends ModeratorCoreModel |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param integer $iOffset |
|
| 17 | + * @param integer $iLimit |
|
| 18 | + */ |
|
| 15 | 19 | public function getAlbumsPicture($iOffset, $iLimit) |
| 16 | 20 | { |
| 17 | 21 | $iOffset = (int)$iOffset; |
@@ -25,6 +29,10 @@ discard block |
||
| 25 | 29 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 26 | 30 | } |
| 27 | 31 | |
| 32 | + /** |
|
| 33 | + * @param integer $iOffset |
|
| 34 | + * @param integer $iLimit |
|
| 35 | + */ |
|
| 28 | 36 | public function getPictures($iOffset, $iLimit) |
| 29 | 37 | { |
| 30 | 38 | $iOffset = (int)$iOffset; |
@@ -38,6 +46,10 @@ discard block |
||
| 38 | 46 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 39 | 47 | } |
| 40 | 48 | |
| 49 | + /** |
|
| 50 | + * @param integer $iOffset |
|
| 51 | + * @param integer $iLimit |
|
| 52 | + */ |
|
| 41 | 53 | public function getAlbumsVideo($iOffset, $iLimit) |
| 42 | 54 | { |
| 43 | 55 | $iOffset = (int)$iOffset; |
@@ -51,6 +63,10 @@ discard block |
||
| 51 | 63 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 52 | 64 | } |
| 53 | 65 | |
| 66 | + /** |
|
| 67 | + * @param integer $iOffset |
|
| 68 | + * @param integer $iLimit |
|
| 69 | + */ |
|
| 54 | 70 | public function getVideos($iOffset, $iLimit) |
| 55 | 71 | { |
| 56 | 72 | $iOffset = (int)$iOffset; |
@@ -64,6 +80,10 @@ discard block |
||
| 64 | 80 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 65 | 81 | } |
| 66 | 82 | |
| 83 | + /** |
|
| 84 | + * @param integer $iOffset |
|
| 85 | + * @param integer $iLimit |
|
| 86 | + */ |
|
| 67 | 87 | public function getAvatars($iOffset, $iLimit) |
| 68 | 88 | { |
| 69 | 89 | $iOffset = (int)$iOffset; |
@@ -76,6 +96,10 @@ discard block |
||
| 76 | 96 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 77 | 97 | } |
| 78 | 98 | |
| 99 | + /** |
|
| 100 | + * @param integer $iOffset |
|
| 101 | + * @param integer $iLimit |
|
| 102 | + */ |
|
| 79 | 103 | public function getBackgrounds($iOffset, $iLimit) |
| 80 | 104 | { |
| 81 | 105 | $iOffset = (int)$iOffset; |
@@ -347,7 +347,7 @@ |
||
| 347 | 347 | * @param string $sToFind |
| 348 | 348 | * @param string $sContents |
| 349 | 349 | * |
| 350 | - * @return boolean |
|
| 350 | + * @return integer |
|
| 351 | 351 | */ |
| 352 | 352 | protected function find($sToFind, $sContents) |
| 353 | 353 | { |
@@ -6,9 +6,7 @@ |
||
| 6 | 6 | defined('PH7') or exit('Restricted access'); |
| 7 | 7 | |
| 8 | 8 | use PH7\Framework\Translate\Adapter\Gettext\StreamReader; |
| 9 | -use PH7\Framework\Translate\Adapter\Gettext\StringReader; |
|
| 10 | 9 | use PH7\Framework\Translate\Adapter\Gettext\FileReader; |
| 11 | -use PH7\Framework\Translate\Adapter\Gettext\CachedFileReader; |
|
| 12 | 10 | |
| 13 | 11 | |
| 14 | 12 | /* |
@@ -179,6 +179,13 @@ |
||
| 179 | 179 | } |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | +/** |
|
| 183 | + * @param string $name |
|
| 184 | + * @param string $extra |
|
| 185 | + * @param string $separator |
|
| 186 | + * @param boolean $labels |
|
| 187 | + * @param boolean $label_ids |
|
| 188 | + */ |
|
| 182 | 189 | function smarty_function_html_checkboxes_output($name, $value, $output, $selected, $extra, $separator, $labels, |
| 183 | 190 | $label_ids, $escape = true) |
| 184 | 191 | { |
@@ -166,6 +166,14 @@ |
||
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | +/** |
|
| 170 | + * @param string $name |
|
| 171 | + * @param string $extra |
|
| 172 | + * @param string $separator |
|
| 173 | + * @param boolean $labels |
|
| 174 | + * @param boolean $label_ids |
|
| 175 | + * @param boolean $escape |
|
| 176 | + */ |
|
| 169 | 177 | function smarty_function_html_radios_output($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids, |
| 170 | 178 | $escape) |
| 171 | 179 | { |
@@ -1093,7 +1093,7 @@ discard block |
||
| 1093 | 1093 | * @param object $parent next higher level of Smarty variables |
| 1094 | 1094 | * @param boolean $do_clone flag is Smarty object shall be cloned |
| 1095 | 1095 | * |
| 1096 | - * @return object template object |
|
| 1096 | + * @return Smarty_Internal_Template template object |
|
| 1097 | 1097 | */ |
| 1098 | 1098 | public function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null, $do_clone = true) |
| 1099 | 1099 | { |
@@ -1169,7 +1169,7 @@ discard block |
||
| 1169 | 1169 | * @param string $template_name |
| 1170 | 1170 | * @param null|mixed $cache_id |
| 1171 | 1171 | * @param null|mixed $compile_id |
| 1172 | - * @param null $caching |
|
| 1172 | + * @param integer $caching |
|
| 1173 | 1173 | * @param \Smarty_Internal_Template $template |
| 1174 | 1174 | * |
| 1175 | 1175 | * @return string |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | * |
| 166 | 166 | * @param Smarty_Internal_Template $_template template object |
| 167 | 167 | * |
| 168 | - * @return string|boolean content |
|
| 168 | + * @return string|false content |
|
| 169 | 169 | */ |
| 170 | 170 | public function readCachedContent(Smarty_Internal_Template $_template) |
| 171 | 171 | { |
@@ -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 | */ |