@@ -771,7 +771,7 @@ discard block |
||
771 | 771 | * |
772 | 772 | * @param string $path parent dir path |
773 | 773 | * @param string $name new directory name |
774 | - * @return string|bool |
|
774 | + * @return string|false |
|
775 | 775 | * @author Dmitry (dio) Levashov |
776 | 776 | **/ |
777 | 777 | protected function _mkdir($path, $name) { |
@@ -791,7 +791,7 @@ discard block |
||
791 | 791 | * |
792 | 792 | * @param string $path parent dir path |
793 | 793 | * @param string $name new file name |
794 | - * @return string|bool |
|
794 | + * @return string|false |
|
795 | 795 | * @author Dmitry (dio) Levashov |
796 | 796 | **/ |
797 | 797 | protected function _mkfile($path, $name) { |
@@ -845,7 +845,7 @@ discard block |
||
845 | 845 | * @param string $source source file path |
846 | 846 | * @param $targetDir |
847 | 847 | * @param string $name file name |
848 | - * @return bool|string |
|
848 | + * @return string|false |
|
849 | 849 | * @internal param string $target target dir path |
850 | 850 | * @author Dmitry (dio) Levashov |
851 | 851 | */ |
@@ -1135,7 +1135,7 @@ discard block |
||
1135 | 1135 | * @param array $files files names list |
1136 | 1136 | * @param string $name archive name |
1137 | 1137 | * @param array $arc archiver options |
1138 | - * @return string|bool |
|
1138 | + * @return string|false |
|
1139 | 1139 | * @author Dmitry (dio) Levashov, |
1140 | 1140 | * @author Alexey Sukhotin |
1141 | 1141 | **/ |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * |
65 | 65 | * 以下のものは非対応 |
66 | 66 | * BITMAPV4HEADER と BITMAPV5HEADER に含まれる色空間に関する様々な機能 |
67 | - * @param $filename_or_stream_or_binary |
|
67 | + * @param string $filename_or_stream_or_binary |
|
68 | 68 | * @return bool|resource |
69 | 69 | */ |
70 | 70 | |
@@ -96,6 +96,9 @@ discard block |
||
96 | 96 | return $bmp; |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $str |
|
101 | + */ |
|
99 | 102 | public static function loadFromString($str){ |
100 | 103 | //data scheme より古いバージョンから対応しているようなので php://memory を使う |
101 | 104 | $fp = fopen("php://memory", "r+b"); |
@@ -119,6 +122,9 @@ discard block |
||
119 | 122 | return $bmp; |
120 | 123 | } |
121 | 124 | |
125 | + /** |
|
126 | + * @param resource $stream |
|
127 | + */ |
|
122 | 128 | public static function loadFromStream($stream){ |
123 | 129 | $buf = fread($stream, 14); //2+4+2+2+4 |
124 | 130 | if ($buf === false){ |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
220 | - * @return mixed |
|
220 | + * @return boolean |
|
221 | 221 | */ |
222 | 222 | public function getEnableGeolocation() |
223 | 223 | { |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | * |
446 | 446 | * @param string $address an address |
447 | 447 | * |
448 | - * @return array array with precision, lat & lng |
|
448 | + * @return string array with precision, lat & lng |
|
449 | 449 | */ |
450 | 450 | public function geocoding($address) |
451 | 451 | { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * Get image type if it is one of: .gif, .jpg or .png |
62 | 62 | * |
63 | 63 | * @param string $file Full path to file |
64 | - * @return string|boolean |
|
64 | + * @return string|false |
|
65 | 65 | */ |
66 | 66 | static public function type($file) { |
67 | 67 | $type = getimagesize($file); |
@@ -211,6 +211,9 @@ discard block |
||
211 | 211 | |
212 | 212 | /* Mailhide related code */ |
213 | 213 | |
214 | +/** |
|
215 | + * @param string $ky |
|
216 | + */ |
|
214 | 217 | function _recaptcha_aes_encrypt($val,$ky) { |
215 | 218 | if (! function_exists ("mcrypt_encrypt")) { |
216 | 219 | die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); |
@@ -222,6 +225,9 @@ discard block |
||
222 | 225 | } |
223 | 226 | |
224 | 227 | |
228 | +/** |
|
229 | + * @param null|string $x |
|
230 | + */ |
|
225 | 231 | function _recaptcha_mailhide_urlbase64($x) { |
226 | 232 | return strtr(base64_encode ($x), '+/', '-_'); |
227 | 233 | } |
@@ -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; |
@@ -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 | /* |
@@ -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 | { |