@@ -104,7 +104,7 @@ |
||
104 | 104 | /** |
105 | 105 | * Initializes the purifier. |
106 | 106 | * |
107 | - * @param HTMLPurifier_Config|mixed $config Optional HTMLPurifier_Config object |
|
107 | + * @param HTMLPurifier_Config $config Optional HTMLPurifier_Config object |
|
108 | 108 | * for all instances of the purifier, if omitted, a default |
109 | 109 | * configuration is supplied (which can be overridden on a |
110 | 110 | * per-use basis). |
@@ -133,6 +133,9 @@ |
||
133 | 133 | return $parts; |
134 | 134 | } |
135 | 135 | |
136 | + /** |
|
137 | + * @param string $character |
|
138 | + */ |
|
136 | 139 | private function str_pad($string, $size, $character) |
137 | 140 | { |
138 | 141 | $start = Util::safeStrlen($string); |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | /** |
197 | 197 | * @param $value |
198 | 198 | * @param $key |
199 | - * @param $ret |
|
199 | + * @param string $ret |
|
200 | 200 | * @param string $hashinfo |
201 | 201 | * |
202 | 202 | * @return string |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | * get a reference to a {@link XoopsFormElement} object by its "name" |
369 | 369 | * |
370 | 370 | * @param string $name "name" attribute assigned to a {@link XoopsFormElement} |
371 | - * @return object reference to a {@link XoopsFormElement}, false if not found |
|
371 | + * @return XoopsFormElement|null reference to a {@link XoopsFormElement}, false if not found |
|
372 | 372 | */ |
373 | 373 | public function &getElementByName($name) |
374 | 374 | { |
@@ -168,6 +168,9 @@ discard block |
||
168 | 168 | return self::imagecreatefromstring(file_get_contents($filename)); |
169 | 169 | } |
170 | 170 | |
171 | + /** |
|
172 | + * @param string $row |
|
173 | + */ |
|
171 | 174 | private static function str_split2($row, $bps, $palette) |
172 | 175 | { |
173 | 176 | switch ($bps) { |
@@ -210,6 +213,9 @@ discard block |
||
210 | 213 | } |
211 | 214 | } |
212 | 215 | |
216 | + /** |
|
217 | + * @param integer $x |
|
218 | + */ |
|
213 | 219 | private static function makepixel($img, $x, $y, $str, $bps) |
214 | 220 | { |
215 | 221 | switch ($bps) { |
@@ -233,11 +239,17 @@ discard block |
||
233 | 239 | } |
234 | 240 | } |
235 | 241 | |
242 | + /** |
|
243 | + * @param integer $n |
|
244 | + */ |
|
236 | 245 | private static function byte3($n) |
237 | 246 | { |
238 | 247 | return chr($n & 255) . chr(($n >> 8) & 255) . chr(($n >> 16) & 255); |
239 | 248 | } |
240 | 249 | |
250 | + /** |
|
251 | + * @param string $n |
|
252 | + */ |
|
241 | 253 | private static function undword($n) |
242 | 254 | { |
243 | 255 | $r = unpack("V", $n); |
@@ -249,6 +261,9 @@ discard block |
||
249 | 261 | return pack("V", $n); |
250 | 262 | } |
251 | 263 | |
264 | + /** |
|
265 | + * @param integer $n |
|
266 | + */ |
|
252 | 267 | private static function word($n) |
253 | 268 | { |
254 | 269 | return pack("v", $n); |
@@ -39,6 +39,9 @@ discard block |
||
39 | 39 | |
40 | 40 | class TGA |
41 | 41 | { |
42 | + /** |
|
43 | + * @param string $data |
|
44 | + */ |
|
42 | 45 | public static function rle_decode($data, $datalen) |
43 | 46 | { |
44 | 47 | $len = strlen($data); |
@@ -77,6 +80,9 @@ discard block |
||
77 | 80 | return $out; |
78 | 81 | } |
79 | 82 | |
83 | + /** |
|
84 | + * @param integer $byte |
|
85 | + */ |
|
80 | 86 | public static function dec_bits($byte, &$type, &$value) |
81 | 87 | { |
82 | 88 | $type = ($byte & 0x80) >> 7; |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | * Private method to list directories and files in each directory |
511 | 511 | * |
512 | 512 | * @param string $path |
513 | - * @param $hidden |
|
513 | + * @param boolean $hidden |
|
514 | 514 | * |
515 | 515 | * @internal param $ $ = boolean $hidden |
516 | 516 | * @access private |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | * |
751 | 751 | * @param array|string $options (to, from, chmod, skip) |
752 | 752 | * |
753 | - * @return boolean Success |
|
753 | + * @return string|false Success |
|
754 | 754 | * @access public |
755 | 755 | */ |
756 | 756 | public function move($options) |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * @param $textarea_id |
29 | 29 | * |
30 | - * @return array |
|
30 | + * @return string[] |
|
31 | 31 | */ |
32 | 32 | public function encode($textarea_id) |
33 | 33 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * @param $textarea_id |
29 | 29 | * |
30 | - * @return array |
|
30 | + * @return string[] |
|
31 | 31 | */ |
32 | 32 | public function encode($textarea_id) |
33 | 33 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * @param $textarea_id |
29 | 29 | * |
30 | - * @return array |
|
30 | + * @return string[] |
|
31 | 31 | */ |
32 | 32 | public function encode($textarea_id) |
33 | 33 | { |