We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | //heres the AIs cards |
| 181 | 181 | $i = 1; |
| 182 | 182 | if ((get_value($ai_card) == 21 && count($ai_card) == 2) || |
| 183 | - (get_value($player_card) > 21 && get_value($ai_card) <= 21)) { |
|
| 183 | + (get_value($player_card) > 21 && get_value($ai_card) <= 21)) { |
|
| 184 | 184 | $message .= ('<h1 class="red center">Bank Wins</h1>'); |
| 185 | 185 | } |
| 186 | 186 | $message .= ('<div class="center">Bank\'s Cards are</div><br /><table class="center"><tr>'); |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | if (!empty(BUG_REPORT_TO_ADDRESSES)) { |
| 70 | 70 | $mail = setupMailer(); |
| 71 | 71 | $mail->Subject = (defined('PAGE_PREFIX') ? PAGE_PREFIX : '??? ') . |
| 72 | - 'Automatic Bug Report'; |
|
| 72 | + 'Automatic Bug Report'; |
|
| 73 | 73 | $mail->setFrom('[email protected]'); |
| 74 | 74 | $mail->Body = $message; |
| 75 | 75 | foreach (BUG_REPORT_TO_ADDRESSES as $toAddress) { |
@@ -44,8 +44,8 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function getValue() { |
| 46 | 46 | if ($this->rankID == self::RANK_JACK || |
| 47 | - $this->rankID == self::RANK_QUEEN || |
|
| 48 | - $this->rankID == self::RANK_KING) { |
|
| 47 | + $this->rankID == self::RANK_QUEEN || |
|
| 48 | + $this->rankID == self::RANK_KING) { |
|
| 49 | 49 | return 10; |
| 50 | 50 | } elseif ($this->isAce()) { |
| 51 | 51 | return 11; |
@@ -242,9 +242,9 @@ |
||
| 242 | 242 | */ |
| 243 | 243 | public function canFight() { |
| 244 | 244 | return !($this->hasNewbieTurns() || |
| 245 | - $this->isDead() || |
|
| 246 | - $this->isLandedOnPlanet() || |
|
| 247 | - $this->hasFederalProtection()); |
|
| 245 | + $this->isDead() || |
|
| 246 | + $this->isLandedOnPlanet() || |
|
| 247 | + $this->hasFederalProtection()); |
|
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | public function setDead($bool) { |
@@ -549,7 +549,7 @@ |
||
| 549 | 549 | */ |
| 550 | 550 | public function setWarp(SmrSector $warp) { |
| 551 | 551 | if ($this->getWarp() == $warp->getSectorID() && |
| 552 | - $warp->getWarp() == $this->getSectorID()) { |
|
| 552 | + $warp->getWarp() == $this->getSectorID()) { |
|
| 553 | 553 | // Warps are already set correctly! |
| 554 | 554 | return; |
| 555 | 555 | } |
@@ -960,7 +960,7 @@ |
||
| 960 | 960 | |
| 961 | 961 | public function calculateExperiencePercent($idealPrice, $offerPrice, $bargainPrice, $transactionType) { |
| 962 | 962 | if (($transactionType == 'Sell' && $bargainPrice < $offerPrice) || |
| 963 | - ($transactionType == 'Buy' && $bargainPrice > $offerPrice)) { |
|
| 963 | + ($transactionType == 'Buy' && $bargainPrice > $offerPrice)) { |
|
| 964 | 964 | return 0; |
| 965 | 965 | } |
| 966 | 966 | if ($bargainPrice == $idealPrice || $transactionType == 'Steal') { |
@@ -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 | ); |