@@ -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) |
@@ -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'); |
@@ -286,6 +286,9 @@ |
||
286 | 286 | return substr(str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'), 0, $length); |
287 | 287 | } |
288 | 288 | |
289 | +/** |
|
290 | + * @param integer $type |
|
291 | + */ |
|
289 | 292 | function stripArray($input, $type) |
290 | 293 | { |
291 | 294 | switch ($type) { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * @throws \Exception if the connection is closed |
198 | 198 | * @throws \Exception if sending the command failed |
199 | 199 | * |
200 | - * @return bool Whether sending the command was successful or not |
|
200 | + * @return boolean|null Whether sending the command was successful or not |
|
201 | 201 | */ |
202 | 202 | protected function send($command) |
203 | 203 | { |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * Generates the password's CRC32 data |
228 | 228 | * |
229 | - * @return string |
|
229 | + * @return string[] |
|
230 | 230 | */ |
231 | 231 | private function getAuthCRC() |
232 | 232 | { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | * |
240 | 240 | * @param string $command The message which will be prepared for being sent to the server |
241 | 241 | * |
242 | - * @return string Message which can be sent to the server |
|
242 | + * @return string[] Message which can be sent to the server |
|
243 | 243 | */ |
244 | 244 | private function getMsgCRC($command) |
245 | 245 | { |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | * @author nerdalertdk (https://github.com/nerdalertdk) |
614 | 614 | * @link https://github.com/Nizarii/arma-rcon-class-php/issues/4 The related GitHub issue |
615 | 615 | * |
616 | - * @param $str string |
|
616 | + * @param string $str string |
|
617 | 617 | * |
618 | 618 | * @return string |
619 | 619 | */ |