We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -50,9 +50,9 @@ |
||
| 50 | 50 | //get base for ports that dont happen to trade that good |
| 51 | 51 | $GOODS = Globals::getGoods(); |
| 52 | 52 | $fine = $totalFine = $port->getLevel() * |
| 53 | - (($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) + |
|
| 54 | - ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) + |
|
| 55 | - ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice'])); |
|
| 53 | + (($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) + |
|
| 54 | + ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) + |
|
| 55 | + ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice'])); |
|
| 56 | 56 | $player->increaseHOF($ship->getCargo(GOODS_SLAVES) + $ship->getCargo(GOODS_WEAPONS) + $ship->getCargo(GOODS_NARCOTICS), array('Trade', 'Search', 'Caught', 'Goods Confiscated'), HOF_PUBLIC); |
| 57 | 57 | $player->increaseHOF($totalFine, array('Trade', 'Search', 'Caught', 'Amount Fined'), HOF_PUBLIC); |
| 58 | 58 | $template->assign('TotalFine', $totalFine); |
@@ -316,8 +316,8 @@ |
||
| 316 | 316 | foreach (Globals::getAvailableTemplates() as $AvailableTemplate => $ColourSchemes) { |
| 317 | 317 | foreach ($ColourSchemes as $ColourScheme) { |
| 318 | 318 | $selected = ($ThisAccount->getTemplate() == $AvailableTemplate && |
| 319 | - $ThisAccount->getColourScheme() == $ColourScheme && |
|
| 320 | - $ThisAccount->isDefaultCSSEnabled()) ? 'selected' : ''; |
|
| 319 | + $ThisAccount->getColourScheme() == $ColourScheme && |
|
| 320 | + $ThisAccount->isDefaultCSSEnabled()) ? 'selected' : ''; |
|
| 321 | 321 | $name = $AvailableTemplate . ' - ' . $ColourScheme; |
| 322 | 322 | ?><option value="<?php echo $name; ?>" <?php echo $selected; ?>><?php echo $name; ?></option><?php |
| 323 | 323 | } |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | if (!$UniGen) { |
| 103 | 103 | $CanScanSector = ($ThisShip->hasScanner() && $isLinkedSector) || $isCurrentSector; |
| 104 | 104 | $ShowFriendlyForces = isset($HideAlliedForces) && $HideAlliedForces ? |
| 105 | - $Sector->hasPlayerForces($MapPlayer) : $Sector->hasFriendlyForces($MapPlayer); |
|
| 105 | + $Sector->hasPlayerForces($MapPlayer) : $Sector->hasFriendlyForces($MapPlayer); |
|
| 106 | 106 | if (($CanScanSector && ($Sector->hasForces() || $Sector->hasPlayers())) || $ShowFriendlyForces || $Sector->hasFriendlyTraders($MapPlayer)) { ?> |
| 107 | 107 | <div class="lmtf"><?php |
| 108 | 108 | if ($CanScanSector && $Sector->hasEnemyTraders($MapPlayer)) { |
@@ -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 | } |
@@ -100,16 +100,16 @@ |
||
| 100 | 100 | $container['view_game_id'] = $var['view_game_id']; |
| 101 | 101 | $container['game_name'] = $var['game_name']; |
| 102 | 102 | $menuItems[] = ['Link' => SmrSession::getNewHREF($container), |
| 103 | - 'Text' => 'Game Details']; |
|
| 103 | + 'Text' => 'Game Details']; |
|
| 104 | 104 | $container['body'] = 'history_games_detail.php'; |
| 105 | 105 | $menuItems[] = ['Link' => SmrSession::getNewHREF($container), |
| 106 | - 'Text' => 'Extended Stats']; |
|
| 106 | + 'Text' => 'Extended Stats']; |
|
| 107 | 107 | $container['body'] = 'history_games_hof.php'; |
| 108 | 108 | $menuItems[] = ['Link' => SmrSession::getNewHREF($container), |
| 109 | - 'Text' => 'Hall of Fame']; |
|
| 109 | + 'Text' => 'Hall of Fame']; |
|
| 110 | 110 | $container['body'] = 'history_games_news.php'; |
| 111 | 111 | $menuItems[] = ['Link' => SmrSession::getNewHREF($container), |
| 112 | - 'Text' => 'Game News']; |
|
| 112 | + 'Text' => 'Game News']; |
|
| 113 | 113 | // make the selected index bold |
| 114 | 114 | $boldItem =& $menuItems[$selected_index]['Text']; |
| 115 | 115 | $boldItem = '<b>' . $boldItem . '</b>'; |