@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | } |
200 | 200 | fclose($handle); |
201 | 201 | } |
202 | - usort($players, function ($valueA, $valueB) { |
|
202 | + usort($players, function($valueA, $valueB) { |
|
203 | 203 | return $valueB['level'] - $valueA['level'] ?: $valueA['ttl_num'] - $valueB['ttl_num']; |
204 | 204 | }); |
205 | 205 | |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | |
387 | 387 | $tmp = array_reverse($tmp); |
388 | 388 | $modifiers['total'] = count($tmp); |
389 | - $modifiers['items'] = array_slice($tmp, 0, ($limit > 0 ) ? $limit : null); |
|
389 | + $modifiers['items'] = array_slice($tmp, 0, ($limit > 0) ? $limit : null); |
|
390 | 390 | |
391 | 391 | return $modifiers; |
392 | 392 | } |
@@ -433,11 +433,11 @@ discard block |
||
433 | 433 | if (($handle = fopen($this->config['bot_quest'], "r")) !== false) { |
434 | 434 | while (($data = fgets($handle, 1024)) !== false) { |
435 | 435 | // T - title |
436 | - if (! isset($data['title']) && $data[0] == "T") { |
|
436 | + if (!isset($data['title']) && $data[0] == "T") { |
|
437 | 437 | $quest['title'] = trim(substr($data, 2)); |
438 | 438 | } |
439 | 439 | // Y - type. 1 for time based, 2 for stages |
440 | - if (! isset($data['type']) && $data[0] == "Y") { |
|
440 | + if (!isset($data['type']) && $data[0] == "Y") { |
|
441 | 441 | $quest['type'] = (int) substr($data, 2); |
442 | 442 | } |
443 | 443 | // S - objective |
@@ -473,8 +473,8 @@ discard block |
||
473 | 473 | if ($quest['type'] == 2) { |
474 | 474 | $quest['players'][] = [ |
475 | 475 | 'nick' => trim($data_exploded[1]), |
476 | - 'x_pos' => (int)$data_exploded[2], |
|
477 | - 'y_pos' => (int)$data_exploded[3], |
|
476 | + 'x_pos' => (int) $data_exploded[2], |
|
477 | + 'y_pos' => (int) $data_exploded[3], |
|
478 | 478 | 'color' => self::ONLINE_COLOR, |
479 | 479 | ]; |
480 | 480 | } elseif ($quest['type'] == 1) { |