Passed
Push — v3 ( dc00fa...37cdd6 )
by
unknown
02:41
created
src/GameQ/Helpers/Arr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
             unset($path[$i]);
114 114
 
115 115
             /* Create missing key */
116
-            if (! isset($current[$element])) {
116
+            if (!isset($current[$element])) {
117 117
                 $current[$element] = [];
118 118
             }
119 119
 
Please login to merge, or discard this patch.
src/GameQ/Protocols/Justcause2.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @return void
101 101
      * @throws \GameQ\Exception\Protocol
102 102
      */
103
-    protected function processDetails(Buffer &$buffer, Result &$result)
103
+    protected function processDetails(Buffer & $buffer, Result & $result)
104 104
     {
105 105
         parent::processDetails($buffer, $result);
106 106
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      *
120 120
      * @see Gamespy3::processPlayersAndTeams()
121 121
      */
122
-    protected function processPlayersAndTeams(Buffer &$buffer, Result &$result)
122
+    protected function processPlayersAndTeams(Buffer & $buffer, Result & $result)
123 123
     {
124 124
         // Loop until we run out of data
125 125
         while ($buffer->getLength()) {
Please login to merge, or discard this patch.
src/GameQ/Protocols/Gamespy2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
      * @throws Exception
225 225
      * @throws \GameQ\Exception\Protocol
226 226
      */
227
-    protected function parsePlayerTeam($dataType, Buffer &$buffer, Result &$result)
227
+    protected function parsePlayerTeam($dataType, Buffer & $buffer, Result & $result)
228 228
     {
229 229
 
230 230
         // Do count
Please login to merge, or discard this patch.
src/GameQ/Protocols/Teamspeak2.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * @return void
204 204
      * @throws \GameQ\Exception\Protocol
205 205
      */
206
-    protected function processDetails($data, Result &$result)
206
+    protected function processDetails($data, Result & $result)
207 207
     {
208 208
         // Create a buffer
209 209
         $buffer = new Buffer($data);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      * @return void
235 235
      * @throws \GameQ\Exception\Protocol
236 236
      */
237
-    protected function processChannels($data, Result &$result)
237
+    protected function processChannels($data, Result & $result)
238 238
     {
239 239
         // Create a buffer
240 240
         $buffer = new Buffer($data);
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      * @return void
268 268
      * @throws \GameQ\Exception\Protocol
269 269
      */
270
-    protected function processPlayers($data, Result &$result)
270
+    protected function processPlayers($data, Result & $result)
271 271
     {
272 272
 
273 273
         // Create a buffer
Please login to merge, or discard this patch.
src/GameQ/Protocols/Gamespy3.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      * @return void
242 242
      * @throws \GameQ\Exception\Protocol
243 243
      */
244
-    protected function processDetails(Buffer &$buffer, Result &$result)
244
+    protected function processDetails(Buffer & $buffer, Result & $result)
245 245
     {
246 246
 
247 247
         // We go until we hit an empty key
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      * @param \GameQ\Buffer $buffer
261 261
      * @param \GameQ\Result $result
262 262
      */
263
-    protected function processPlayersAndTeams(Buffer &$buffer, Result &$result)
263
+    protected function processPlayersAndTeams(Buffer & $buffer, Result & $result)
264 264
     {
265 265
         /*
266 266
          * Explode the data into groups. First is player, next is team (item_t)
Please login to merge, or discard this patch.
src/GameQ/Protocols/Teamspeak3.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      * @param \GameQ\Result $result
253 253
      * @return void
254 254
      */
255
-    protected function processDetails($data, Result &$result)
255
+    protected function processDetails($data, Result & $result)
256 256
     {
257 257
 
258 258
         // Offload the parsing for these values
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      * @param \GameQ\Result $result
283 283
      * @return void
284 284
      */
285
-    protected function processChannels($data, Result &$result)
285
+    protected function processChannels($data, Result & $result)
286 286
     {
287 287
 
288 288
         // We need to split the data at the pipe
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      * @param \GameQ\Result $result
310 310
      * @return void
311 311
      */
312
-    protected function processPlayers($data, Result &$result)
312
+    protected function processPlayers($data, Result & $result)
313 313
     {
314 314
 
315 315
         // We need to split the data at the pipe
Please login to merge, or discard this patch.
src/GameQ/Protocols/Ventrilo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
      * @param \GameQ\Result $result
840 840
      * @return void
841 841
      */
842
-    protected function processChannel($data, $fieldCount, Result &$result)
842
+    protected function processChannel($data, $fieldCount, Result & $result)
843 843
     {
844 844
 
845 845
         // Split the items on the comma
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
      * @param \GameQ\Result $result
863 863
      * @return void
864 864
      */
865
-    protected function processPlayer($data, $fieldCount, Result &$result)
865
+    protected function processPlayer($data, $fieldCount, Result & $result)
866 866
     {
867 867
 
868 868
         // Split the items on the comma
Please login to merge, or discard this patch.
src/GameQ/Protocols/Ase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @param \GameQ\Result $result
152 152
      * @throws \GameQ\Exception\Protocol
153 153
      */
154
-    protected function processKeyValuePairs(Buffer &$buffer, Result &$result)
154
+    protected function processKeyValuePairs(Buffer & $buffer, Result & $result)
155 155
     {
156 156
 
157 157
         // Key / value pairs
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      * @param \GameQ\Result $result
181 181
      * @throws \GameQ\Exception\Protocol
182 182
      */
183
-    protected function processPlayersAndTeams(Buffer &$buffer, Result &$result)
183
+    protected function processPlayersAndTeams(Buffer & $buffer, Result & $result)
184 184
     {
185 185
 
186 186
         // Players and team info
Please login to merge, or discard this patch.
src/GameQ/Protocols/Etqw.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      * @return void
191 191
      * @throws \GameQ\Exception\Protocol
192 192
      */
193
-    protected function parsePlayers(Buffer &$buffer, Result &$result)
193
+    protected function parsePlayers(Buffer & $buffer, Result & $result)
194 194
     {
195 195
         // By default there are 0 players
196 196
         $players = 0;
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      * @return void
222 222
      * @throws \GameQ\Exception\Protocol
223 223
      */
224
-    protected function parsePlayersExtra(Buffer &$buffer, Result &$result)
224
+    protected function parsePlayersExtra(Buffer & $buffer, Result & $result)
225 225
     {
226 226
         // Iterate over the extra player info
227 227
         while (($id = $buffer->readInt8()) != 32) {
Please login to merge, or discard this patch.