Completed
Push — master ( a1e988...77759c )
by Pedro
04:30
created
public/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 // Composer autoloading
22 22
 include __DIR__ . '/../vendor/autoload.php';
23 23
 
24
-if (! class_exists(Application::class)) {
24
+if (!class_exists(Application::class)) {
25 25
     throw new RuntimeException(
26 26
         "Unable to load application.\n"
27 27
         . "- Type `composer install` if you are developing locally.\n"
Please login to merge, or discard this patch.
module/Application/src/View/Helper/Scoreboard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
         $url = $this->getView()->plugin('url');
12 12
 
13 13
         $class = '';
14
-        if (! $item['status']) {
14
+        if (!$item['status']) {
15 15
             $class = ' class="text-danger"';
16 16
         } else {
17 17
             $class = ' class="text-success"';
Please login to merge, or discard this patch.
module/Application/test/Service/BotParserTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 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()
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
         // Test first event
436 436
         $this->assertEquals(
437 437
             "[06/22/18 09:03:15] fAGSO has fallen ill with the black plague. " .
438
-                     "This terrible calamity has slowed them 0 days, 10:51:59 from level 81.",
438
+                        "This terrible calamity has slowed them 0 days, 10:51:59 from level 81.",
439 439
             $events['items'][0]
440 440
         );
441 441
 
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
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             }
200 200
             fclose($handle);
201 201
         }
202
-        usort($players, function ($valueA, $valueB) {
202
+        usort($players, function($valueA, $valueB) {
203 203
             return $valueB['level'] - $valueA['level'] ?: $valueA['ttl_num'] - $valueB['ttl_num'];
204 204
         });
205 205
 
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 
387 387
         $tmp = array_reverse($tmp);
388 388
         $modifiers['total'] = count($tmp);
389
-        $modifiers['items'] = array_slice($tmp, 0, ($limit > 0 ) ? $limit : null);
389
+        $modifiers['items'] = array_slice($tmp, 0, ($limit > 0) ? $limit : null);
390 390
 
391 391
         return $modifiers;
392 392
     }
@@ -433,11 +433,11 @@  discard block
 block discarded – undo
433 433
         if (($handle = fopen($this->config['bot_quest'], "r")) !== false) {
434 434
             while (($data = fgets($handle, 1024)) !== false) {
435 435
                 // T - title
436
-                if (! isset($data['title']) && $data[0] == "T") {
436
+                if (!isset($data['title']) && $data[0] == "T") {
437 437
                     $quest['title'] = trim(substr($data, 2));
438 438
                 }
439 439
                 // Y - type. 1 for time based, 2 for stages
440
-                if (! isset($data['type']) && $data[0] == "Y") {
440
+                if (!isset($data['type']) && $data[0] == "Y") {
441 441
                     $quest['type'] = (int) substr($data, 2);
442 442
                 }
443 443
                 // S - objective
@@ -473,8 +473,8 @@  discard block
 block discarded – undo
473 473
                         if ($quest['type'] == 2) {
474 474
                             $quest['players'][] = [
475 475
                                 'nick'  => trim($data_exploded[1]),
476
-                                'x_pos' => (int)$data_exploded[2],
477
-                                'y_pos' => (int)$data_exploded[3],
476
+                                'x_pos' => (int) $data_exploded[2],
477
+                                'y_pos' => (int) $data_exploded[3],
478 478
                                 'color' => self::ONLINE_COLOR,
479 479
                             ];
480 480
                         } elseif ($quest['type'] == 1) {
Please login to merge, or discard this patch.