@@ -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"'; |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | |
| 399 | 399 | $tmp = array_reverse($tmp); |
| 400 | 400 | $modifiers['total'] = count($tmp); |
| 401 | - $modifiers['items'] = array_slice($tmp, 0, ($limit > 0 ) ? $limit : null); |
|
| 401 | + $modifiers['items'] = array_slice($tmp, 0, ($limit > 0) ? $limit : null); |
|
| 402 | 402 | |
| 403 | 403 | return $modifiers; |
| 404 | 404 | } |
@@ -445,11 +445,11 @@ discard block |
||
| 445 | 445 | if (($handle = fopen($this->config['bot_quest'], "r")) !== false) { |
| 446 | 446 | while (($data = fgets($handle, 1024)) !== false) { |
| 447 | 447 | // T - title |
| 448 | - if (! isset($data['title']) && $data[0] == "T") { |
|
| 448 | + if (!isset($data['title']) && $data[0] == "T") { |
|
| 449 | 449 | $quest['title'] = substr($data, 2); |
| 450 | 450 | } |
| 451 | 451 | // Y - type. 1 for time based, 2 for stages |
| 452 | - if (! isset($data['type']) && $data[0] == "Y") { |
|
| 452 | + if (!isset($data['type']) && $data[0] == "Y") { |
|
| 453 | 453 | $quest['type'] = (int) substr($data, 2); |
| 454 | 454 | } |
| 455 | 455 | // S - objective |
@@ -484,8 +484,8 @@ discard block |
||
| 484 | 484 | if ($quest['type'] == 2) { |
| 485 | 485 | $quest['players'][] = [ |
| 486 | 486 | 'nick' => $data_exploded[1], |
| 487 | - 'x_pos' => (int)$data_exploded[2], |
|
| 488 | - 'y_pos' => (int)$data_exploded[3], |
|
| 487 | + 'x_pos' => (int) $data_exploded[2], |
|
| 488 | + 'y_pos' => (int) $data_exploded[3], |
|
| 489 | 489 | 'color' => self::ONLINE_COLOR, |
| 490 | 490 | ]; |
| 491 | 491 | } elseif ($quest['type'] == 1) { |