@@ -40,12 +40,12 @@ discard block |
||
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 |
||
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 | }); |
@@ -8,8 +8,8 @@ |
||
8 | 8 | use Application\View\Helper\Scoreboard; |
9 | 9 | |
10 | 10 | return [ |
11 | - 'router' => require __DIR__ .'/router.config.php', |
|
12 | - 'navigation' => require __DIR__ .'/navigation.config.php', |
|
11 | + 'router' => require __DIR__ . '/router.config.php', |
|
12 | + 'navigation' => require __DIR__ . '/navigation.config.php', |
|
13 | 13 | |
14 | 14 | 'service_manager' => [ |
15 | 15 | 'factories' => [ |
@@ -21,7 +21,7 @@ |
||
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" |
@@ -19,7 +19,7 @@ |
||
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']]) . '">'; |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | 'level' => (int) $data[3], |
206 | 206 | 'class' => $data[4], |
207 | 207 | 'ttl' => (int) $data[5], |
208 | - 'status' => (bool)$data[8], |
|
208 | + 'status' => (bool) $data[8], |
|
209 | 209 | ]; |
210 | 210 | } |
211 | 211 | fclose($handle); |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | */ |
455 | 455 | public function getQuestData() |
456 | 456 | { |
457 | - $key = __FUNCTION__ ; |
|
457 | + $key = __FUNCTION__; |
|
458 | 458 | |
459 | 459 | if ($this->cache->hasItem($key)) { |
460 | 460 | $quest = $this->cache->getItem($key); |
@@ -463,11 +463,11 @@ discard block |
||
463 | 463 | if (($handle = fopen($this->config['bot_quest'], "r")) !== false) { |
464 | 464 | while (($data = fgets($handle, 1024)) !== false) { |
465 | 465 | // T - title |
466 | - if (! isset($data['title']) && $data[0] == "T") { |
|
466 | + if (!isset($data['title']) && $data[0] == "T") { |
|
467 | 467 | $quest['title'] = substr($data, 2); |
468 | 468 | } |
469 | 469 | // Y - type. 1 for time based, 2 for stages |
470 | - if (! isset($data['type']) && $data[0] == "Y") { |
|
470 | + if (!isset($data['type']) && $data[0] == "Y") { |
|
471 | 471 | $quest['type'] = (int) substr($data, 2); |
472 | 472 | } |
473 | 473 | // S - objective |