for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php declare(strict_types=1);
class SmrPlayer extends AbstractSmrPlayer {
public function getHome() {
if ($this->hasAlliance()) {
$leaderID = $this->getAlliance()->getLeaderID();
$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()));
if ($this->db->nextRecord()) {
return $this->db->getInt('home_sector_id');
}
// Fallback to the standard home sector
return parent::getHome();