| @@ -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" | 
| @@ -21,7 +21,7 @@ | ||
| 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 | } | 
| @@ -11,7 +11,7 @@ | ||
| 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"'; | 
| @@ -214,7 +214,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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) { |