Passed
Branch master (1838bc)
by Pedro
02:07
created
module/Application/src/Service/ImageGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
     private function drawCrosshair(Image $image, int $x, int $y, string $color, string $text = null)
41 41
     {
42 42
         // Bottom top
43
-        $image->line($x - self::CROSSHAIR_SIZE, $y, $x + self::CROSSHAIR_SIZE, $y, function ($draw) use ($color) {
43
+        $image->line($x - self::CROSSHAIR_SIZE, $y, $x + self::CROSSHAIR_SIZE, $y, function($draw) use ($color) {
44 44
             $draw->color($color);
45 45
         });
46 46
 
47 47
         // Left right
48
-        $image->line($x, $y - self::CROSSHAIR_SIZE, $x, $y + self::CROSSHAIR_SIZE, function ($draw) use ($color) {
48
+        $image->line($x, $y - self::CROSSHAIR_SIZE, $x, $y + self::CROSSHAIR_SIZE, function($draw) use ($color) {
49 49
             $draw->color($color);
50 50
         });
51 51
 
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
             $text_y = $y + self::CROSSHAIR_SIZE;
55 55
 
56 56
             // Draw a "shadow" 1 pixel ahead
57
-            $image->text($text, $text_x + 1, $text_y + 1, function ($font) {
57
+            $image->text($text, $text_x + 1, $text_y + 1, function($font) {
58 58
                 $font->file(4);
59 59
                 $font->color("#000");
60 60
             });
61 61
 
62 62
             // Text
63
-            $image->text($text, $text_x, $text_y, function ($font) use ($color) {
63
+            $image->text($text, $text_x, $text_y, function($font) use ($color) {
64 64
                 $font->file(4);
65 65
                 $font->color($color);
66 66
             });
Please login to merge, or discard this patch.
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
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         $url = $this->getView()->plugin('url');
20 20
 
21 21
         $class = '';
22
-        if (! $item['status']) {
22
+        if (!$item['status']) {
23 23
             $class = ' class="offline"';
24 24
         }
25 25
         $str = '<a' . $class . ' href="' . $url('player-info', ['nick' => $item['nick']]) . '">';
Please login to merge, or discard this patch.
module/Application/src/View/Helper/Event.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
         foreach ($this->nicks as $nick) {
22 22
             $event = str_replace(
23 23
                 $nick,
24
-                '<a href="' . $url('player-info', ['nick' => $nick]) . '">'. $nick .'</a>',
24
+                '<a href="' . $url('player-info', ['nick' => $nick]) . '">' . $nick . '</a>',
25 25
                 $event
26 26
             );
27 27
         }
Please login to merge, or discard this patch.
module/Application/src/Service/BotParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 
377 377
         $tmp = array_reverse($tmp);
378 378
         $modifiers['total'] = count($tmp);
379
-        $modifiers['items'] = array_slice($tmp, 0, ($limit > 0 ) ? $limit : null);
379
+        $modifiers['items'] = array_slice($tmp, 0, ($limit > 0) ? $limit : null);
380 380
 
381 381
         return $modifiers;
382 382
     }
@@ -413,11 +413,11 @@  discard block
 block discarded – undo
413 413
         if (($handle = fopen($this->config['bot_quest'], "r")) !== false) {
414 414
             while (($data = fgets($handle, 1024)) !== false) {
415 415
                 // T - title
416
-                if (! isset($data['title']) && $data[0] == "T") {
416
+                if (!isset($data['title']) && $data[0] == "T") {
417 417
                     $quest['title'] = substr($data, 2);
418 418
                 }
419 419
                 // Y - type. 1 for time based, 2 for stages
420
-                if (! isset($data['type']) && $data[0] == "Y") {
420
+                if (!isset($data['type']) && $data[0] == "Y") {
421 421
                     $quest['type'] = (int) substr($data, 2);
422 422
                 }
423 423
                 // S - objective
Please login to merge, or discard this patch.