Conditions | 2 |
Paths | 2 |
Total Lines | 26 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | 2 | public function GetGroupSummary($group) |
|
11 | 2 | { |
|
12 | // Set up the api details |
||
13 | 2 | $this->method = 'memberslistxml'; |
|
14 | |||
15 | if (is_numeric($group)) { |
||
16 | 2 | $this->url = 'http://steamcommunity.com/gid/'; |
|
17 | } else { |
||
18 | 2 | $this->url = 'http://steamcommunity.com/groups/'; |
|
19 | 1 | } |
|
20 | 1 | ||
21 | 1 | $this->url = $this->url . $group; |
|
22 | |||
23 | // Set up the arguments |
||
24 | 2 | $arguments = [ |
|
25 | 'xml' => 1, |
||
26 | ]; |
||
27 | 1 | ||
28 | 2 | // Get the client |
|
29 | 2 | $client = $this->setUpXml($arguments); |
|
30 | |||
31 | // Clean up the games |
||
32 | 2 | $group = new GroupContainer($client); |
|
33 | |||
34 | return $group; |
||
35 | 2 | } |
|
36 | } |
||
37 |