@@ -154,6 +154,9 @@ discard block |
||
154 | 154 | return !!gethostbynamel($server); |
155 | 155 | } |
156 | 156 | |
157 | + /** |
|
158 | + * @param boolean $update_claimed_id |
|
159 | + */ |
|
157 | 160 | protected function request_curl($url, $method = 'GET', $params = array(), $update_claimed_id) |
158 | 161 | { |
159 | 162 | $params = http_build_query($params, '', '&'); |
@@ -262,6 +265,9 @@ discard block |
||
262 | 265 | return $headers; |
263 | 266 | } |
264 | 267 | |
268 | + /** |
|
269 | + * @param boolean $update_claimed_id |
|
270 | + */ |
|
265 | 271 | protected function request_streams($url, $method = 'GET', $params = array(), $update_claimed_id) |
266 | 272 | { |
267 | 273 | if (!$this->hostExists($url)) { |
@@ -384,6 +390,11 @@ discard block |
||
384 | 390 | /** |
385 | 391 | * Helper function used to scan for <meta>/<link> tags and extract information |
386 | 392 | * from them |
393 | + * @param string $tag |
|
394 | + * @param string $attrName |
|
395 | + * @param string $attrValue |
|
396 | + * @param string $valueName |
|
397 | + * @return string |
|
387 | 398 | */ |
388 | 399 | protected function htmlTag($content, $tag, $attrName, $attrValue, $valueName) |
389 | 400 | { |
@@ -628,6 +639,9 @@ discard block |
||
628 | 639 | return $params; |
629 | 640 | } |
630 | 641 | |
642 | + /** |
|
643 | + * @param boolean $immediate |
|
644 | + */ |
|
631 | 645 | protected function authUrl_v1($immediate) |
632 | 646 | { |
633 | 647 | $returnUrl = $this->returnUrl; |
@@ -649,6 +663,9 @@ discard block |
||
649 | 663 | , array('query' => http_build_query($params, '', '&'))); |
650 | 664 | } |
651 | 665 | |
666 | + /** |
|
667 | + * @param boolean $immediate |
|
668 | + */ |
|
652 | 669 | protected function authUrl_v2($immediate) |
653 | 670 | { |
654 | 671 | $params = array( |
@@ -684,7 +701,6 @@ discard block |
||
684 | 701 | /** |
685 | 702 | * Returns authentication url. Usually, you want to redirect your user to it. |
686 | 703 | * @return String The authentication url. |
687 | - * @param String $select_identifier Whether to request OP to select identity for an user in OpenID 2. Does not affect OpenID 1. |
|
688 | 704 | * @throws ErrorException |
689 | 705 | */ |
690 | 706 | function authUrl($immediate = false) |
@@ -1,4 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | +/** |
|
3 | + * @param string $string |
|
4 | + */ |
|
2 | 5 | function strToHex($string) |
3 | 6 | { |
4 | 7 | $hex = ''; |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | return $sign . $h; |
47 | 50 | } |
48 | 51 | |
52 | +/** |
|
53 | + * @param string $cs |
|
54 | + */ |
|
49 | 55 | function get_checksum($cs) |
50 | 56 | { |
51 | 57 | $var = computeUnsignedCRC32($cs); |
@@ -61,6 +67,9 @@ discard block |
||
61 | 67 | return chr($d) . chr($c) . chr($b) . chr($a); |
62 | 68 | } |
63 | 69 | |
70 | +/** |
|
71 | + * @param string $answer |
|
72 | + */ |
|
64 | 73 | function fixAnswer($answer) |
65 | 74 | { |
66 | 75 |
@@ -3,6 +3,9 @@ |
||
3 | 3 | |
4 | 4 | class user |
5 | 5 | { |
6 | + /** |
|
7 | + * @param string $steamid |
|
8 | + */ |
|
6 | 9 | public function GetPlayerSummaries($steamid) |
7 | 10 | { |
8 | 11 | $settings = require('config/settings.php'); |
@@ -374,7 +374,7 @@ |
||
374 | 374 | * Get either a Gravatar URL or complete image tag for a specified email address. |
375 | 375 | * |
376 | 376 | * @param string $email The email address |
377 | - * @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
377 | + * @param integer $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
378 | 378 | * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
379 | 379 | * @param string $r Maximum rating (inclusive) [ g | pg | r | x ] |
380 | 380 | * @param boole $img True to return a complete IMG tag False for just the URL |