@@ -227,7 +227,7 @@ |
||
227 | 227 | * |
228 | 228 | * @throws Exception |
229 | 229 | */ |
230 | - protected function parsePlayerTeam($dataType, Buffer &$buffer, Result &$result) |
|
230 | + protected function parsePlayerTeam($dataType, Buffer & $buffer, Result & $result) |
|
231 | 231 | { |
232 | 232 | |
233 | 233 | // Do count |
@@ -191,7 +191,7 @@ |
||
191 | 191 | $result->addSub('mods', 'steam_id', $responseBuffer->readInt32($infoByte & 0x0F)); |
192 | 192 | |
193 | 193 | // Read the name of the mod |
194 | - $result->addSub('mods', 'name', $responseBuffer->readPascalString(0, true) ?: 'Unknown'); |
|
194 | + $result->addSub('mods', 'name', $responseBuffer->readPascalString(0, true) ? : 'Unknown'); |
|
195 | 195 | |
196 | 196 | --$modCount; |
197 | 197 | } |
@@ -147,16 +147,16 @@ |
||
147 | 147 | |
148 | 148 | $result->add('edition', $info[0]); |
149 | 149 | $result->add('motd_line_1', $info[1]); |
150 | - $result->add('protocol_version', (int)$info[2]); |
|
150 | + $result->add('protocol_version', (int) $info[2]); |
|
151 | 151 | $result->add('version', $info[3]); |
152 | - $result->add('num_players', (int)$info[4]); |
|
153 | - $result->add('max_players', (int)$info[5]); |
|
152 | + $result->add('num_players', (int) $info[4]); |
|
153 | + $result->add('max_players', (int) $info[5]); |
|
154 | 154 | $result->add('server_uid', $info[6]); |
155 | 155 | $result->add('motd_line_2', $info[7]); |
156 | 156 | $result->add('gamemode', $info[8]); |
157 | - $result->add('gamemode_numeric', (int)$info[9]); |
|
158 | - $result->add('port_ipv4', (isset($info[10])) ? (int)$info[10] : null); |
|
159 | - $result->add('port_ipv6', (isset($info[11])) ? (int)$info[11] : null); |
|
157 | + $result->add('gamemode_numeric', (int) $info[9]); |
|
158 | + $result->add('port_ipv4', (isset($info[10])) ? (int) $info[10] : null); |
|
159 | + $result->add('port_ipv6', (isset($info[11])) ? (int) $info[11] : null); |
|
160 | 160 | $result->add('dedicated', 1); |
161 | 161 | |
162 | 162 | unset($header, $serverGUID, $magicCheck, $info); |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | $socket->write($server->protocol()->getPacket(Protocol::PACKET_CHALLENGE)); |
417 | 417 | |
418 | 418 | // Add the socket information so we can reference it easily |
419 | - $sockets[(int)$socket->get()] = [ |
|
419 | + $sockets[(int) $socket->get()] = [ |
|
420 | 420 | 'server_id' => $server_id, |
421 | 421 | 'socket' => $socket, |
422 | 422 | ]; |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | unset($packets); |
518 | 518 | |
519 | 519 | // Add the socket information so we can reference it easily |
520 | - $sockets[(int)$socket->get()] = [ |
|
520 | + $sockets[(int) $socket->get()] = [ |
|
521 | 521 | 'server_id' => $server_id, |
522 | 522 | 'socket' => $socket, |
523 | 523 | ]; |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | $results['gq_port_client'] = $server->portClient(); |
614 | 614 | $results['gq_port_query'] = (isset($results['gq_port_query'])) ? $results['gq_port_query'] : $server->portQuery(); |
615 | 615 | $results['gq_protocol'] = $server->protocol()->getProtocol(); |
616 | - $results['gq_type'] = (string)$server->protocol(); |
|
616 | + $results['gq_type'] = (string) $server->protocol(); |
|
617 | 617 | $results['gq_name'] = $server->protocol()->nameLong(); |
618 | 618 | $results['gq_transport'] = $server->protocol()->transport(); |
619 | 619 | $results['gq_custom'] = $server->getCustom(); |