Passed
Pull Request — v3 (#544)
by
unknown
03:39
created
src/GameQ/Protocols/Cs2d.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -192,12 +192,12 @@
 block discarded – undo
192 192
         $serverFlags = $buffer->readInt8();
193 193
 
194 194
         // Read server flags
195
-        $result->add('password', (int)$this->readFlag($serverFlags, 0));
196
-        $result->add('registered_only', (int)$this->readFlag($serverFlags, 1));
197
-        $result->add('fog_of_war', (int)$this->readFlag($serverFlags, 2));
198
-        $result->add('friendly_fire', (int)$this->readFlag($serverFlags, 3));
199
-        $result->add('bots_enabled', (int)$this->readFlag($serverFlags, 5));
200
-        $result->add('lua_scripts', (int)$this->readFlag($serverFlags, 6));
195
+        $result->add('password', (int) $this->readFlag($serverFlags, 0));
196
+        $result->add('registered_only', (int) $this->readFlag($serverFlags, 1));
197
+        $result->add('fog_of_war', (int) $this->readFlag($serverFlags, 2));
198
+        $result->add('friendly_fire', (int) $this->readFlag($serverFlags, 3));
199
+        $result->add('bots_enabled', (int) $this->readFlag($serverFlags, 5));
200
+        $result->add('lua_scripts', (int) $this->readFlag($serverFlags, 6));
201 201
 
202 202
         // Read the rest of the buffer data
203 203
         $result->add('servername', utf8_encode($buffer->readPascalString(0)));
Please login to merge, or discard this patch.
src/GameQ/Protocols/Gtar.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,10 +135,10 @@
 block discarded – undo
135 135
             throw new Exception("JSON response from Gtar protocol is invalid.");
136 136
         }
137 137
 		
138
-		$address = $this->realIp.':'.$this->realPortQuery;
139
-		$server = $json->$address;
138
+        $address = $this->realIp.':'.$this->realPortQuery;
139
+        $server = $json->$address;
140 140
 		
141
-		if (empty($server)) {
141
+        if (empty($server)) {
142 142
             return [
143 143
                 'gq_address'    => $this->realIp,
144 144
                 'gq_port_query' => $this->realPortQuery,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
             throw new Exception("JSON response from Gtar protocol is invalid.");
136 136
         }
137 137
 		
138
-		$address = $this->realIp.':'.$this->realPortQuery;
138
+		$address = $this->realIp . ':' . $this->realPortQuery;
139 139
 		$server = $json->$address;
140 140
 		
141 141
 		if (empty($server)) {
Please login to merge, or discard this patch.