@@ -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'] = 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 |
@@ -487,8 +487,8 @@ discard block |
||
487 | 487 | if ($quest['type'] == 2) { |
488 | 488 | $quest['players'][] = [ |
489 | 489 | 'nick' => $data_exploded[1], |
490 | - 'x_pos' => (int)$data_exploded[2], |
|
491 | - 'y_pos' => (int)$data_exploded[3], |
|
490 | + 'x_pos' => (int) $data_exploded[2], |
|
491 | + 'y_pos' => (int) $data_exploded[3], |
|
492 | 492 | 'color' => self::ONLINE_COLOR, |
493 | 493 | ]; |
494 | 494 | } elseif ($quest['type'] == 1) { |