@@ -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) { |