@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $url = $this->getView()->plugin('url'); |
| 20 | 20 | |
| 21 | 21 | $class = ''; |
| 22 | - if (! $item['status']) { |
|
| 22 | + if (!$item['status']) { |
|
| 23 | 23 | $class = ' class="offline"'; |
| 24 | 24 | } |
| 25 | 25 | $str = '<a' . $class . ' href="' . $url('player-info', ['nick' => $item['nick']]) . '">'; |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | 'level' => (int) $data[3], |
| 206 | 206 | 'class' => $data[4], |
| 207 | 207 | 'ttl' => (int) $data[5], |
| 208 | - 'status' => (bool)$data[8], |
|
| 208 | + 'status' => (bool) $data[8], |
|
| 209 | 209 | ]; |
| 210 | 210 | } |
| 211 | 211 | fclose($handle); |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | */ |
| 455 | 455 | public function getQuestData() |
| 456 | 456 | { |
| 457 | - $key = __FUNCTION__ ; |
|
| 457 | + $key = __FUNCTION__; |
|
| 458 | 458 | |
| 459 | 459 | if ($this->cache->hasItem($key)) { |
| 460 | 460 | $quest = $this->cache->getItem($key); |
@@ -463,11 +463,11 @@ discard block |
||
| 463 | 463 | if (($handle = fopen($this->config['bot_quest'], "r")) !== false) { |
| 464 | 464 | while (($data = fgets($handle, 1024)) !== false) { |
| 465 | 465 | // T - title |
| 466 | - if (! isset($data['title']) && $data[0] == "T") { |
|
| 466 | + if (!isset($data['title']) && $data[0] == "T") { |
|
| 467 | 467 | $quest['title'] = substr($data, 2); |
| 468 | 468 | } |
| 469 | 469 | // Y - type. 1 for time based, 2 for stages |
| 470 | - if (! isset($data['type']) && $data[0] == "Y") { |
|
| 470 | + if (!isset($data['type']) && $data[0] == "Y") { |
|
| 471 | 471 | $quest['type'] = (int) substr($data, 2); |
| 472 | 472 | } |
| 473 | 473 | // S - objective |