Passed
Push — master ( d8d9c6...e02ef8 )
by Pedro
02:22
created
module/Application/test/Service/BotParserTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             $configOverrides
22 22
         ));
23 23
 
24
-          parent::setUp();
24
+            parent::setUp();
25 25
     }
26 26
 
27 27
     public function testPositionQuest()
Please login to merge, or discard this patch.
module/Application/src/Service/BotParser.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             }
215 215
             fclose($handle);
216 216
         }
217
-        usort($players, function ($a, $b) {
217
+        usort($players, function($a, $b) {
218 218
             return $b['level'] - $a['level'] ?: $a['ttl_num'] - $b['ttl_num'];
219 219
         });
220 220
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
 
402 402
         $tmp = array_reverse($tmp);
403 403
         $modifiers['total'] = count($tmp);
404
-        $modifiers['items'] = array_slice($tmp, 0, ($limit > 0 ) ? $limit : null);
404
+        $modifiers['items'] = array_slice($tmp, 0, ($limit > 0) ? $limit : null);
405 405
 
406 406
         return $modifiers;
407 407
     }
@@ -448,11 +448,11 @@  discard block
 block discarded – undo
448 448
         if (($handle = fopen($this->config['bot_quest'], "r")) !== false) {
449 449
             while (($data = fgets($handle, 1024)) !== false) {
450 450
                 // T - title
451
-                if (! isset($data['title']) && $data[0] == "T") {
451
+                if (!isset($data['title']) && $data[0] == "T") {
452 452
                     $quest['title'] = trim(substr($data, 2));
453 453
                 }
454 454
                 // Y - type. 1 for time based, 2 for stages
455
-                if (! isset($data['type']) && $data[0] == "Y") {
455
+                if (!isset($data['type']) && $data[0] == "Y") {
456 456
                     $quest['type'] = (int) substr($data, 2);
457 457
                 }
458 458
                 // S - objective
@@ -488,8 +488,8 @@  discard block
 block discarded – undo
488 488
                         if ($quest['type'] == 2) {
489 489
                             $quest['players'][] = [
490 490
                                 'nick'  => trim($data_exploded[1]),
491
-                                'x_pos' => (int)$data_exploded[2],
492
-                                'y_pos' => (int)$data_exploded[3],
491
+                                'x_pos' => (int) $data_exploded[2],
492
+                                'y_pos' => (int) $data_exploded[3],
493 493
                                 'color' => self::ONLINE_COLOR,
494 494
                             ];
495 495
                         } elseif ($quest['type'] == 1) {
Please login to merge, or discard this patch.