Completed
Push — v3 ( 339589...25b7b0 )
by Austin
07:32
created
src/GameQ/Protocols/Bfbc2.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -224,13 +224,13 @@  discard block
 block discarded – undo
224 224
 
225 225
         // These are the same no matter what mode the server is in
226 226
         $result->add('hostname', $items[1]);
227
-        $result->add('num_players', (int)$items[2]);
228
-        $result->add('max_players', (int)$items[3]);
227
+        $result->add('num_players', (int) $items[2]);
228
+        $result->add('max_players', (int) $items[3]);
229 229
         $result->add('gametype', $items[4]);
230 230
         $result->add('map', $items[5]);
231
-        $result->add('roundsplayed', (int)$items[6]);
232
-        $result->add('roundstotal', (int)$items[7]);
233
-        $result->add('num_teams', (int)$items[8]);
231
+        $result->add('roundsplayed', (int) $items[6]);
232
+        $result->add('roundstotal', (int) $items[7]);
233
+        $result->add('num_teams', (int) $items[8]);
234 234
 
235 235
         // Set the current index
236 236
         $index_current = 9;
@@ -247,13 +247,13 @@  discard block
 block discarded – undo
247 247
         }
248 248
 
249 249
         // Get and set the rest of the data points.
250
-        $result->add('targetscore', (int)$items[$index_current]);
250
+        $result->add('targetscore', (int) $items[$index_current]);
251 251
         $result->add('online', 1); // Forced true, shows accepting players
252 252
         $result->add('ranked', (($items[$index_current + 2] == 'true') ? 1 : 0));
253 253
         $result->add('punkbuster', (($items[$index_current + 3] == 'true') ? 1 : 0));
254 254
         $result->add('password', (($items[$index_current + 4] == 'true') ? 1 : 0));
255
-        $result->add('uptime', (int)$items[$index_current + 5]);
256
-        $result->add('roundtime', (int)$items[$index_current + 6]);
255
+        $result->add('uptime', (int) $items[$index_current + 5]);
256
+        $result->add('roundtime', (int) $items[$index_current + 6]);
257 257
         $result->add('mod', $items[$index_current + 7]);
258 258
 
259 259
         $result->add('ip_port', $items[$index_current + 9]);
Please login to merge, or discard this patch.