@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | // Find the server on this list by iterating over the entire list. |
| 154 | 154 | foreach ($json->GameSessions as $serverEntry) { |
| 155 | 155 | // Server information passed matches an entry on this list |
| 156 | - if ($serverEntry->Address === $this->realIp && (int)$serverEntry->Port === $this->realPortQuery) { |
|
| 156 | + if ($serverEntry->Address === $this->realIp && (int) $serverEntry->Port === $this->realPortQuery) { |
|
| 157 | 157 | $server = $serverEntry; |
| 158 | 158 | break; |
| 159 | 159 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | unset($matches, $serverEntry, $json); |
| 164 | 164 | |
| 165 | 165 | /* Ensure the provided Server has been found in the list provided by the "Metaserver" */ |
| 166 | - if (! $server) { |
|
| 166 | + if (!$server) { |
|
| 167 | 167 | throw new Exception(sprintf( |
| 168 | 168 | '%s Unable to find the server "%s:%d" in the Stationeer Metaservers server list', |
| 169 | 169 | __METHOD__, |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | $result->add('version', $server->Version); |
| 182 | 182 | $result->add('map', $server->MapName); |
| 183 | 183 | $result->add('uptime', $server->UpTime); |
| 184 | - $result->add('password', (int)$server->Password); |
|
| 184 | + $result->add('password', (int) $server->Password); |
|
| 185 | 185 | $result->add('numplayers', $server->Players); |
| 186 | 186 | $result->add('maxplayers', $server->MaxPlayers); |
| 187 | 187 | $result->add('type', $server->Type); |