@@ -77,7 +77,6 @@ discard block |
||
77 | 77 | * @access public |
78 | 78 | * @static |
79 | 79 | * @param string $messageId |
80 | - * @param mixed $args one or multiple parameters injected into placeholders |
|
81 | 80 | * @return string |
82 | 81 | */ |
83 | 82 | public static function _($messageId) |
@@ -91,7 +90,6 @@ discard block |
||
91 | 90 | * @access public |
92 | 91 | * @static |
93 | 92 | * @param string $messageId |
94 | - * @param mixed $args one or multiple parameters injected into placeholders |
|
95 | 93 | * @return string |
96 | 94 | */ |
97 | 95 | public static function translate($messageId) |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * @access public |
46 | 46 | * @static |
47 | 47 | * @param string $filename |
48 | - * @return void |
|
48 | + * @return string |
|
49 | 49 | */ |
50 | 50 | public static function getPath($filename = null) |
51 | 51 | { |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * eg. $t->assign('name','mickey'); |
175 | 175 | * |
176 | 176 | * @access public |
177 | - * @param mixed $variable_name Name of template variable or associative array name/value |
|
177 | + * @param string $variable Name of template variable or associative array name/value |
|
178 | 178 | * @param mixed $value value assigned to this variable. Not set if variable_name is an associative array |
179 | 179 | */ |
180 | 180 | public function assign( $variable, $value = null ){ |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | * |
253 | 253 | * @access public |
254 | 254 | * @param string $tpl_name Name of template (set the same of draw) |
255 | - * @param int $expiration_time Set after how many seconds the cache expire and must be regenerated |
|
255 | + * @param int $expire_time Set after how many seconds the cache expire and must be regenerated |
|
256 | 256 | * @param string $cache_id Suffix to be used when writing file to cache (optional) |
257 | 257 | * @return string it return the HTML or null if the cache must be recreated |
258 | 258 | */ |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | * @access protected |
300 | 300 | * @param string $tpl_name template name to check |
301 | 301 | * @throws RainTpl_NotFoundException |
302 | - * @return bool return true if the template has changed |
|
302 | + * @return boolean|null return true if the template has changed |
|
303 | 303 | */ |
304 | 304 | protected function check_template( $tpl_name ){ |
305 | 305 | |
@@ -1168,8 +1168,6 @@ discard block |
||
1168 | 1168 | * alias for i18n::translate() |
1169 | 1169 | * |
1170 | 1170 | * @access public |
1171 | - * @param string $messageId |
|
1172 | - * @param mixed $args one or multiple parameters injected into placeholders |
|
1173 | 1171 | * @return string |
1174 | 1172 | */ |
1175 | 1173 | function t() { |
@@ -175,8 +175,8 @@ |
||
175 | 175 | * @access private |
176 | 176 | * @param resource $img |
177 | 177 | * @param string $direction |
178 | - * @param array $color1 |
|
179 | - * @param array $color2 |
|
178 | + * @param integer[] $color1 |
|
179 | + * @param integer[] $color2 |
|
180 | 180 | * @return resource |
181 | 181 | */ |
182 | 182 | private function degrade($img,$direction,$color1,$color2) |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * Test if a paste exists. |
87 | 87 | * |
88 | 88 | * @access public |
89 | - * @param string $dataid |
|
89 | + * @param string $pasteid |
|
90 | 90 | * @return bool |
91 | 91 | */ |
92 | 92 | abstract public function exists($pasteid); |
@@ -116,9 +116,9 @@ discard block |
||
116 | 116 | * Test if a comment exists. |
117 | 117 | * |
118 | 118 | * @access public |
119 | - * @param string $dataid |
|
120 | 119 | * @param string $parentid |
121 | 120 | * @param string $commentid |
121 | + * @param string $pasteid |
|
122 | 122 | * @return void |
123 | 123 | */ |
124 | 124 | abstract public function existsComment($pasteid, $parentid, $commentid); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * |
129 | 129 | * @access public |
130 | 130 | * @param array $comments |
131 | - * @param int|string $postdate |
|
131 | + * @param integer $postdate |
|
132 | 132 | * @return void |
133 | 133 | */ |
134 | 134 | protected function getOpenSlot(&$comments, $postdate) |
@@ -124,8 +124,7 @@ discard block |
||
124 | 124 | * Test if a paste exists. |
125 | 125 | * |
126 | 126 | * @access public |
127 | - * @param string $dataid |
|
128 | - * @return void |
|
127 | + * @return boolean |
|
129 | 128 | */ |
130 | 129 | public function exists($pasteid) |
131 | 130 | { |
@@ -197,10 +196,10 @@ discard block |
||
197 | 196 | * Test if a comment exists. |
198 | 197 | * |
199 | 198 | * @access public |
200 | - * @param string $dataid |
|
201 | 199 | * @param string $parentid |
202 | 200 | * @param string $commentid |
203 | - * @return void |
|
201 | + * @param string $pasteid |
|
202 | + * @return boolean |
|
204 | 203 | */ |
205 | 204 | public function existsComment($pasteid, $parentid, $commentid) |
206 | 205 | { |
@@ -245,7 +244,7 @@ discard block |
||
245 | 244 | * @access private |
246 | 245 | * @static |
247 | 246 | * @param string $dataid |
248 | - * @return void |
|
247 | + * @return string |
|
249 | 248 | */ |
250 | 249 | private static function _dataid2path($dataid) |
251 | 250 | { |
@@ -260,7 +259,7 @@ discard block |
||
260 | 259 | * @access private |
261 | 260 | * @static |
262 | 261 | * @param string $dataid |
263 | - * @return void |
|
262 | + * @return string |
|
264 | 263 | */ |
265 | 264 | private static function _dataid2discussionpath($dataid) |
266 | 265 | { |
@@ -295,8 +295,7 @@ discard block |
||
295 | 295 | * Test if a paste exists. |
296 | 296 | * |
297 | 297 | * @access public |
298 | - * @param string $dataid |
|
299 | - * @return void |
|
298 | + * @return boolean |
|
300 | 299 | */ |
301 | 300 | public function exists($pasteid) |
302 | 301 | { |
@@ -373,10 +372,10 @@ discard block |
||
373 | 372 | * Test if a comment exists. |
374 | 373 | * |
375 | 374 | * @access public |
376 | - * @param string $dataid |
|
377 | 375 | * @param string $parentid |
378 | 376 | * @param string $commentid |
379 | - * @return void |
|
377 | + * @param string $pasteid |
|
378 | + * @return boolean |
|
380 | 379 | */ |
381 | 380 | public function existsComment($pasteid, $parentid, $commentid) |
382 | 381 | { |
@@ -393,7 +392,7 @@ discard block |
||
393 | 392 | * @access private |
394 | 393 | * @static |
395 | 394 | * @param string $sql |
396 | - * @param array $params |
|
395 | + * @param string[] $params |
|
397 | 396 | * @throws PDOException |
398 | 397 | * @return array |
399 | 398 | */ |
@@ -411,7 +410,7 @@ discard block |
||
411 | 410 | * @access private |
412 | 411 | * @static |
413 | 412 | * @param string $sql |
414 | - * @param array $params |
|
413 | + * @param string[] $params |
|
415 | 414 | * @param bool $firstOnly if only the first row should be returned |
416 | 415 | * @throws PDOException |
417 | 416 | * @return array |
@@ -93,7 +93,7 @@ |
||
93 | 93 | /** |
94 | 94 | * get example paste |
95 | 95 | * |
96 | - * @return array |
|
96 | + * @return string |
|
97 | 97 | */ |
98 | 98 | public static function getPasteAsJson($meta = array()) |
99 | 99 | { |
@@ -40,6 +40,11 @@ |
||
40 | 40 | if (!function_exists('mcrypt_create_iv')) |
41 | 41 | { |
42 | 42 | if (!defined('MCRYPT_DEV_URANDOM')) define('MCRYPT_DEV_URANDOM', 1); |
43 | + |
|
44 | + /** |
|
45 | + * @param integer $int |
|
46 | + * @param integer $flag |
|
47 | + */ |
|
43 | 48 | function mcrypt_create_iv($int, $flag) |
44 | 49 | { |
45 | 50 | $randomSalt = ''; |