Passed
Pull Request — v3 (#705)
by
unknown
32:41
created
src/GameQ/Protocols/Gamespy2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/GameQ/Protocols/Arma3.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/GameQ/Protocols/Raknet.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -147,16 +147,16 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/GameQ/GameQ.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.