@@ -154,7 +154,7 @@ |
||
| 154 | 154 | $result->add('serverversion', $json->ServerVersion); |
| 155 | 155 | $result->add('map', ((!empty($json->Map)) ? $json->Map : 'Los Santos/Blaine Country')); |
| 156 | 156 | $result->add('mod', $json->Gamemode); |
| 157 | - $result->add('password', (int)$json->Passworded); |
|
| 157 | + $result->add('password', (int) $json->Passworded); |
|
| 158 | 158 | $result->add('numplayers', $json->CurrentPlayers); |
| 159 | 159 | $result->add('maxplayers', $json->MaxPlayers); |
| 160 | 160 | |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | $socket->write($server->protocol()->getPacket(Protocol::PACKET_CHALLENGE)); |
| 405 | 405 | |
| 406 | 406 | // Add the socket information so we can reference it easily |
| 407 | - $sockets[(int)$socket->get()] = [ |
|
| 407 | + $sockets[(int) $socket->get()] = [ |
|
| 408 | 408 | 'server_id' => $server_id, |
| 409 | 409 | 'socket' => $socket, |
| 410 | 410 | ]; |
@@ -505,7 +505,7 @@ discard block |
||
| 505 | 505 | unset($packets); |
| 506 | 506 | |
| 507 | 507 | // Add the socket information so we can reference it easily |
| 508 | - $sockets[(int)$socket->get()] = [ |
|
| 508 | + $sockets[(int) $socket->get()] = [ |
|
| 509 | 509 | 'server_id' => $server_id, |
| 510 | 510 | 'socket' => $socket, |
| 511 | 511 | ]; |
@@ -601,7 +601,7 @@ discard block |
||
| 601 | 601 | $results['gq_port_client'] = $server->portClient(); |
| 602 | 602 | $results['gq_port_query'] = (isset($results['gq_port_query'])) ? $results['gq_port_query'] : $server->portQuery(); |
| 603 | 603 | $results['gq_protocol'] = $server->protocol()->getProtocol(); |
| 604 | - $results['gq_type'] = (string)$server->protocol(); |
|
| 604 | + $results['gq_type'] = (string) $server->protocol(); |
|
| 605 | 605 | $results['gq_name'] = $server->protocol()->nameLong(); |
| 606 | 606 | $results['gq_transport'] = $server->protocol()->transport(); |
| 607 | 607 | |