We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function __construct($dbName) { |
| 14 | 14 | if (!self::$dbConn) { |
| 15 | 15 | self::$dbConn = new mysqli(self::$host, self::$user, self::$password, |
| 16 | - $dbName, self::$port, self::$socket); |
|
| 16 | + $dbName, self::$port, self::$socket); |
|
| 17 | 17 | if (self::$dbConn->connect_errno) { |
| 18 | 18 | $this->error('Connection failed: ' . self::$dbConn->connect_error); |
| 19 | 19 | } |
@@ -707,7 +707,7 @@ |
||
| 707 | 707 | if ($buildingTypeID === false) { |
| 708 | 708 | $structs = $this->typeInfo::STRUCTURES; |
| 709 | 709 | return array_combine(array_keys($structs), |
| 710 | - array_column($structs, 'max_amount')); |
|
| 710 | + array_column($structs, 'max_amount')); |
|
| 711 | 711 | } |
| 712 | 712 | return $this->getStructureTypes($buildingTypeID)->maxAmount(); |
| 713 | 713 | } |
@@ -197,7 +197,7 @@ |
||
| 197 | 197 | while ($this->db->nextRecord()) { |
| 198 | 198 | try { |
| 199 | 199 | $otherPlayer = SmrPlayer::getPlayer($this->db->getInt('from_account_id'), |
| 200 | - $this->getGameID(), $forceUpdate); |
|
| 200 | + $this->getGameID(), $forceUpdate); |
|
| 201 | 201 | } catch (PlayerNotFoundException $e) { |
| 202 | 202 | // Skip players that have not joined this game |
| 203 | 203 | continue; |
@@ -19,8 +19,8 @@ discard block |
||
| 19 | 19 | $shareFrom[$fromAccountId] = array( |
| 20 | 20 | 'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(), |
| 21 | 21 | 'Player Name' => $otherPlayer == null ? |
| 22 | - '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() : |
|
| 23 | - $otherPlayer->getPlayerName(), |
|
| 22 | + '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() : |
|
| 23 | + $otherPlayer->getPlayerName(), |
|
| 24 | 24 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
| 25 | 25 | 'Game ID' => $gameId, |
| 26 | 26 | ); |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | $shareTo[$toAccountId] = array( |
| 41 | 41 | 'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(), |
| 42 | 42 | 'Player Name' => $otherPlayer == null ? |
| 43 | - '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : |
|
| 44 | - $otherPlayer->getPlayerName(), |
|
| 43 | + '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : |
|
| 44 | + $otherPlayer->getPlayerName(), |
|
| 45 | 45 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
| 46 | 46 | 'Game ID' => $gameId, |
| 47 | 47 | ); |
@@ -857,14 +857,14 @@ |
||
| 857 | 857 | |
| 858 | 858 | public function isFederal() { |
| 859 | 859 | return $this->getShipTypeID() == SHIP_TYPE_FEDERAL_DISCOVERY || |
| 860 | - $this->getShipTypeID() == SHIP_TYPE_FEDERAL_WARRANT || |
|
| 861 | - $this->getShipTypeID() == SHIP_TYPE_FEDERAL_ULTIMATUM; |
|
| 860 | + $this->getShipTypeID() == SHIP_TYPE_FEDERAL_WARRANT || |
|
| 861 | + $this->getShipTypeID() == SHIP_TYPE_FEDERAL_ULTIMATUM; |
|
| 862 | 862 | } |
| 863 | 863 | |
| 864 | 864 | public function isUnderground() { |
| 865 | 865 | return $this->getShipTypeID() == SHIP_TYPE_THIEF || |
| 866 | - $this->getShipTypeID() == SHIP_TYPE_ASSASSIN || |
|
| 867 | - $this->getShipTypeID() == SHIP_TYPE_DEATH_CRUISER; |
|
| 866 | + $this->getShipTypeID() == SHIP_TYPE_ASSASSIN || |
|
| 867 | + $this->getShipTypeID() == SHIP_TYPE_DEATH_CRUISER; |
|
| 868 | 868 | } |
| 869 | 869 | |
| 870 | 870 | public function &shootPlayer(AbstractSmrPlayer $targetPlayer) { |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | $publishedGames = array(); |
| 18 | 18 | while ($db->nextRecord()) { |
| 19 | 19 | $publishedGames[] = array('game_name' => $db->getField('game_name'), |
| 20 | - 'game_id' => $db->getInt('game_id')); |
|
| 20 | + 'game_id' => $db->getInt('game_id')); |
|
| 21 | 21 | } |
| 22 | 22 | $template->assign('PublishedGames', $publishedGames); |
| 23 | 23 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $container['back'] = true; |
| 32 | 32 | |
| 33 | 33 | $pastEditions[] = array('title' => $db->getField('title'), |
| 34 | - 'online_since' => $db->getInt('online_since'), |
|
| 35 | - 'href' => SmrSession::getNewHREF($container)); |
|
| 34 | + 'online_since' => $db->getInt('online_since'), |
|
| 35 | + 'href' => SmrSession::getNewHREF($container)); |
|
| 36 | 36 | } |
| 37 | 37 | $template->assign('PastEditions', $pastEditions); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | $db = new $var['HistoryDatabase'](); |
| 13 | 13 | $db->query('SELECT start_date, type, end_date, game_name, speed, game_id ' . |
| 14 | - 'FROM game WHERE game_id = ' . $db->escapeNumber($game_id)); |
|
| 14 | + 'FROM game WHERE game_id = ' . $db->escapeNumber($game_id)); |
|
| 15 | 15 | $db->nextRecord(); |
| 16 | 16 | $template->assign('GameName', $game_name); |
| 17 | 17 | $template->assign('Start', date(DATE_DATE_SHORT, $db->getInt('start_date'))); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | // Don't lose more exp than you have |
| 48 | 48 | $lost_xp = min($player->getExperience(), |
| 49 | - IRound(SmrPort::getBaseExperience($amount, $good_distance))); |
|
| 49 | + IRound(SmrPort::getBaseExperience($amount, $good_distance))); |
|
| 50 | 50 | $player->decreaseExperience($lost_xp); |
| 51 | 51 | $player->increaseHOF($lost_xp, array('Trade', 'Experience', 'Jettisoned'), HOF_PUBLIC); |
| 52 | 52 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | $missingLocs = array_diff(array_keys(SmrLocation::getAllLocations()), |
| 23 | - array_keys($existingLocs)); |
|
| 23 | + array_keys($existingLocs)); |
|
| 24 | 24 | $missingLocNames = []; |
| 25 | 25 | foreach ($missingLocs as $locID) { |
| 26 | 26 | $missingLocNames[] = SmrLocation::getLocation($locID)->getName(); |