@@ -192,12 +192,12 @@ |
||
192 | 192 | $serverFlags = $buffer->readInt8(); |
193 | 193 | |
194 | 194 | // Read server flags |
195 | - $result->add('password', (int)$this->readFlag($serverFlags, 0)); |
|
196 | - $result->add('registered_only', (int)$this->readFlag($serverFlags, 1)); |
|
197 | - $result->add('fog_of_war', (int)$this->readFlag($serverFlags, 2)); |
|
198 | - $result->add('friendly_fire', (int)$this->readFlag($serverFlags, 3)); |
|
199 | - $result->add('bots_enabled', (int)$this->readFlag($serverFlags, 5)); |
|
200 | - $result->add('lua_scripts', (int)$this->readFlag($serverFlags, 6)); |
|
195 | + $result->add('password', (int) $this->readFlag($serverFlags, 0)); |
|
196 | + $result->add('registered_only', (int) $this->readFlag($serverFlags, 1)); |
|
197 | + $result->add('fog_of_war', (int) $this->readFlag($serverFlags, 2)); |
|
198 | + $result->add('friendly_fire', (int) $this->readFlag($serverFlags, 3)); |
|
199 | + $result->add('bots_enabled', (int) $this->readFlag($serverFlags, 5)); |
|
200 | + $result->add('lua_scripts', (int) $this->readFlag($serverFlags, 6)); |
|
201 | 201 | |
202 | 202 | // Read the rest of the buffer data |
203 | 203 | $result->add('servername', utf8_encode($buffer->readPascalString(0))); |
@@ -135,7 +135,7 @@ |
||
135 | 135 | throw new Exception("JSON response from Gtar protocol is invalid."); |
136 | 136 | } |
137 | 137 | |
138 | - $address = $this->realIp.':'.$this->realPortQuery; |
|
138 | + $address = $this->realIp . ':' . $this->realPortQuery; |
|
139 | 139 | $server = $json->$address; |
140 | 140 | |
141 | 141 | if (empty($server)) { |
@@ -40,24 +40,24 @@ |
||
40 | 40 | */ |
41 | 41 | protected $dlcNames = [ |
42 | 42 | // Base DLC |
43 | - 'bb26feb' => 'Art of War', // aow |
|
43 | + 'bb26feb' => 'Art of War', // aow |
|
44 | 44 | 'c3ba4c1' => 'Contact (Platform)', // enoch |
45 | - '6b26ff75' => 'Tanks', // tank |
|
46 | - '8646e5fd' => 'Tac-Ops', // tacops |
|
47 | - '630e5234' => 'Laws of War', // orange |
|
48 | - '3b10ba25' => 'Malden', // argo |
|
49 | - 'd0356eec' => 'Jets', // jets |
|
50 | - '19984a71' => 'Apex', // expansion |
|
51 | - '7fb4b1f3' => 'Marksmen', // mark |
|
52 | - '456e1ae6' => 'Helicopters', // heli |
|
53 | - '7e766e18' => 'Karts', // kart |
|
54 | - '99d71f90' => 'Zeus', // curator |
|
45 | + '6b26ff75' => 'Tanks', // tank |
|
46 | + '8646e5fd' => 'Tac-Ops', // tacops |
|
47 | + '630e5234' => 'Laws of War', // orange |
|
48 | + '3b10ba25' => 'Malden', // argo |
|
49 | + 'd0356eec' => 'Jets', // jets |
|
50 | + '19984a71' => 'Apex', // expansion |
|
51 | + '7fb4b1f3' => 'Marksmen', // mark |
|
52 | + '456e1ae6' => 'Helicopters', // heli |
|
53 | + '7e766e18' => 'Karts', // kart |
|
54 | + '99d71f90' => 'Zeus', // curator |
|
55 | 55 | |
56 | 56 | // Creator DLC |
57 | 57 | '6e39b4d' => 'ČSLA - Iron Curtain', // csla |
58 | 58 | '4cec2195' => 'Global Mobilization', // gm |
59 | 59 | '60950c6e' => 'S.O.G. Prairie Fire', // vn |
60 | - 'e57a25d' => 'Western Sahara', // ws |
|
60 | + 'e57a25d' => 'Western Sahara', // ws |
|
61 | 61 | ]; |
62 | 62 | |
63 | 63 | /** |