Passed
Pull Request — v3 (#729)
by
unknown
34:34
created
src/GameQ/Filters/Secondstohuman.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,9 +109,9 @@
 block discarded – undo
109 109
                 // We match one of the keys we are wanting to convert so add it and move on
110 110
                 $result[sprintf(self::RESULT_KEY, $key)] = sprintf(
111 111
                     "%02d:%02d:%02d",
112
-                    (int)floor($value / 3600),    // Hours
113
-                    (int)fmod(($value / 60), 60), // Minutes
114
-                    (int)fmod($value, 60)         // Seconds
112
+                    (int) floor($value / 3600), // Hours
113
+                    (int) fmod(($value / 60), 60), // Minutes
114
+                    (int) fmod($value, 60)         // Seconds
115 115
                 );
116 116
             }
117 117
         }
Please login to merge, or discard this patch.
src/GameQ/Filters/Stripcolors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function apply(array $result, Server $server)
51 51
     {
52 52
         /* Prevent working on empty results */
53
-        if (! empty($result)) {
53
+        if (!empty($result)) {
54 54
             /* Handle unit test data generation */ 
55 55
             if ($this->writeTestData) {
56 56
                 /* Initialize potential data for unit testing **/
Please login to merge, or discard this patch.
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', static::isoToUtf8($buffer->readPascalString(0)));
Please login to merge, or discard this patch.