@@ -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']]) . '">'; |
@@ -151,8 +151,8 @@ discard block |
||
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | $record = [ |
| 154 | - 'x_pos' => (int)$data[0], |
|
| 155 | - 'y_pos' => (int)$data[1], |
|
| 154 | + 'x_pos' => (int) $data[0], |
|
| 155 | + 'y_pos' => (int) $data[1], |
|
| 156 | 156 | 'type' => $data[2], |
| 157 | 157 | 'level' => $data[3], |
| 158 | 158 | 'age' => $data[4] |
@@ -413,11 +413,11 @@ discard block |
||
| 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 |