@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param ProfileField $field {@link ProfileField} object to get edit form for |
26 | 26 | * @param mixed $action URL to submit to - or false for $_SERVER['REQUEST_URI'] |
27 | 27 | * |
28 | - * @return object |
|
28 | + * @return XoopsThemeForm |
|
29 | 29 | */ |
30 | 30 | function profile_getFieldForm(ProfileField $field, $action = false) |
31 | 31 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * @param int $step Which step we are at |
278 | 278 | * |
279 | 279 | * @internal param \profileRegstep $next_step |
280 | - * @return object |
|
280 | + * @return XoopsThemeForm |
|
281 | 281 | */ |
282 | 282 | function profile_getRegisterForm(XoopsUser $user, $profile, $step = null) |
283 | 283 | { |
@@ -383,10 +383,10 @@ discard block |
||
383 | 383 | * Get {@link XoopsThemeForm} for editing a user |
384 | 384 | * |
385 | 385 | * @param XoopsUser $user {@link XoopsUser} to edit |
386 | - * @param ProfileProfile|XoopsObject|null $profile |
|
386 | + * @param null|ProfileProfile $profile |
|
387 | 387 | * @param bool $action |
388 | 388 | * |
389 | - * @return object |
|
389 | + * @return XoopsThemeForm |
|
390 | 390 | */ |
391 | 391 | function profile_getUserForm(XoopsUser $user, ProfileProfile $profile = null, $action = false) |
392 | 392 | { |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | * @param ProfileRegstep|null $step {@link ProfileRegstep} to edit |
522 | 522 | * @param bool $action |
523 | 523 | * |
524 | - * @return object |
|
524 | + * @return XoopsThemeForm |
|
525 | 525 | */ |
526 | 526 | function profile_getStepForm(ProfileRegstep $step = null, $action = false) |
527 | 527 | { |
@@ -345,6 +345,12 @@ discard block |
||
345 | 345 | } |
346 | 346 | |
347 | 347 | // public: |
348 | + |
|
349 | + /** |
|
350 | + * @param string $param |
|
351 | + * |
|
352 | + * @return integer |
|
353 | + */ |
|
348 | 354 | function getParameter($param) { |
349 | 355 | //if (property_exists('phpThumb', $param)) { |
350 | 356 | return $this->$param; |
@@ -1119,6 +1125,10 @@ discard block |
||
1119 | 1125 | |
1120 | 1126 | /* True if the provided path points inside one of open_basedirs (or if open_basedirs are disabled) */ |
1121 | 1127 | // http://support.silisoftware.com/phpBB3/viewtopic.php?t=961 |
1128 | + |
|
1129 | + /** |
|
1130 | + * @param string $path |
|
1131 | + */ |
|
1122 | 1132 | function isInOpenBasedir($path) { |
1123 | 1133 | static $open_basedirs = null; |
1124 | 1134 | if (is_null($open_basedirs)) { |
@@ -1136,6 +1146,10 @@ discard block |
||
1136 | 1146 | |
1137 | 1147 | /* Resolves all symlinks in $path, checking that each continuous part ends in an allowed zone. Returns null, if any component leads outside of allowed zone. */ |
1138 | 1148 | // http://support.silisoftware.com/phpBB3/viewtopic.php?t=961 |
1149 | + |
|
1150 | + /** |
|
1151 | + * @return string |
|
1152 | + */ |
|
1139 | 1153 | function resolvePath($path, $allowed_dirs) { |
1140 | 1154 | $this->DebugMessage('resolvePath: '.$path.' (allowed_dirs: '.print_r($allowed_dirs, true).')', __FILE__, __LINE__); |
1141 | 1155 | |
@@ -4109,6 +4123,9 @@ discard block |
||
4109 | 4123 | return $this->ErrorImage(implode("\n", $DebugOutput), 700, 500, true); |
4110 | 4124 | } |
4111 | 4125 | |
4126 | + /** |
|
4127 | + * @param string $text |
|
4128 | + */ |
|
4112 | 4129 | function FatalError($text) { |
4113 | 4130 | if (is_null($this->fatalerror)) { |
4114 | 4131 | $this->fatalerror = $text; |
@@ -4116,6 +4133,9 @@ discard block |
||
4116 | 4133 | return true; |
4117 | 4134 | } |
4118 | 4135 | |
4136 | + /** |
|
4137 | + * @param string $text |
|
4138 | + */ |
|
4119 | 4139 | function ErrorImage($text, $width=0, $height=0, $forcedisplay=false) { |
4120 | 4140 | $width = ($width ? $width : $this->config_error_image_width); |
4121 | 4141 | $height = ($height ? $height : $this->config_error_image_height); |
@@ -4362,6 +4382,9 @@ discard block |
||
4362 | 4382 | return true; |
4363 | 4383 | } |
4364 | 4384 | |
4385 | + /** |
|
4386 | + * @param string $message |
|
4387 | + */ |
|
4365 | 4388 | function DebugTimingMessage($message, $file='', $line='', $timestamp=0) { |
4366 | 4389 | if (!$timestamp) { |
4367 | 4390 | $timestamp = array_sum(explode(' ', microtime())); |
@@ -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) |
@@ -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); |
@@ -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; |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * |
215 | 215 | * @param string $scalar |
216 | 216 | * @param string $delimiters |
217 | - * @param array $stringDelimiters |
|
217 | + * @param string[] $stringDelimiters |
|
218 | 218 | * @param int &$i |
219 | 219 | * @param bool $evaluate |
220 | 220 | * @param array $references |
@@ -275,6 +275,7 @@ discard block |
||
275 | 275 | * |
276 | 276 | * @param string $scalar |
277 | 277 | * @param int &$i |
278 | + * @param integer $i |
|
278 | 279 | * |
279 | 280 | * @return string |
280 | 281 | * |
@@ -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 | { |