We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | public function getHome() { |
||
| 6 | if ($this->hasAlliance()) { |
||
| 7 | $leaderID = $this->getAlliance()->getLeaderID(); |
||
| 8 | $this->db->query('SELECT home_sector_id FROM draft_leaders WHERE account_id = ' . $this->db->escapeNumber($leaderID) . ' AND game_id = ' . $this->db->escapeNumber($this->getGameID())); |
||
| 9 | if ($this->db->nextRecord()) { |
||
| 10 | return $this->db->getInt('home_sector_id'); |
||
| 11 | } |
||
| 12 | } |
||
| 13 | // Fallback to the standard home sector |
||
| 14 | return parent::getHome(); |
||
| 15 | } |
||
| 18 |