We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -337,8 +337,8 @@ |
||
337 | 337 | foreach (Globals::getAvailableTemplates() as $Template) { |
338 | 338 | foreach (Globals::getAvailableColourSchemes($Template) as $ColourScheme) { |
339 | 339 | $selected = ($ThisAccount->getTemplate() == $Template && |
340 | - $ThisAccount->getColourScheme() == $ColourScheme && |
|
341 | - $ThisAccount->isDefaultCSSEnabled()) ? 'selected' : ''; |
|
340 | + $ThisAccount->getColourScheme() == $ColourScheme && |
|
341 | + $ThisAccount->isDefaultCSSEnabled()) ? 'selected' : ''; |
|
342 | 342 | $name = $Template . ' - ' . $ColourScheme; |
343 | 343 | ?><option value="<?php echo $name; ?>" <?php echo $selected; ?>><?php echo $name; ?></option><?php |
344 | 344 | } |
@@ -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) { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | } else { |
7 | 7 | // Killed by port, planet, forces |
8 | 8 | echo 'The <span class="creds"> ' . number_format($KillResults['LostCredits']) |
9 | - . '</span> credits that were onboard ' . $TargetPlayer->getDisplayName() |
|
10 | - . "'s ship are lost in the wreckage.<br />"; |
|
9 | + . '</span> credits that were onboard ' . $TargetPlayer->getDisplayName() |
|
10 | + . "'s ship are lost in the wreckage.<br />"; |
|
11 | 11 | } |
12 | 12 | ?> |
@@ -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)) { |
@@ -555,7 +555,7 @@ |
||
555 | 555 | */ |
556 | 556 | public function setWarp(SmrSector $warp): void { |
557 | 557 | if ($this->getWarp() == $warp->getSectorID() && |
558 | - $warp->getWarp() == $this->getSectorID()) { |
|
558 | + $warp->getWarp() == $this->getSectorID()) { |
|
559 | 559 | // Warps are already set correctly! |
560 | 560 | return; |
561 | 561 | } |
@@ -870,9 +870,9 @@ |
||
870 | 870 | */ |
871 | 871 | public function canFight(): bool { |
872 | 872 | return !($this->hasNewbieTurns() || |
873 | - $this->isDead() || |
|
874 | - $this->isLandedOnPlanet() || |
|
875 | - $this->hasFederalProtection()); |
|
873 | + $this->isDead() || |
|
874 | + $this->isLandedOnPlanet() || |
|
875 | + $this->hasFederalProtection()); |
|
876 | 876 | } |
877 | 877 | |
878 | 878 | public function setDead(bool $bool): void { |
@@ -67,9 +67,9 @@ |
||
67 | 67 | $session = Session::getInstance(); |
68 | 68 | $account = $session->getAccount(); |
69 | 69 | if (($vis == HOF_PRIVATE && $account->getAccountID() != $accountID) || |
70 | - ($vis == HOF_ALLIANCE && isset($gameID) && |
|
71 | - !SmrGame::getGame($gameID)->hasEnded() && |
|
72 | - !SmrPlayer::getPlayer($accountID, $gameID)->sameAlliance($session->getPlayer()))) { |
|
70 | + ($vis == HOF_ALLIANCE && isset($gameID) && |
|
71 | + !SmrGame::getGame($gameID)->hasEnded() && |
|
72 | + !SmrPlayer::getPlayer($accountID, $gameID)->sameAlliance($session->getPlayer()))) { |
|
73 | 73 | return '-'; |
74 | 74 | } |
75 | 75 | return $amount; |
@@ -754,14 +754,14 @@ |
||
754 | 754 | |
755 | 755 | public function isFederal(): bool { |
756 | 756 | return $this->getTypeID() === SHIP_TYPE_FEDERAL_DISCOVERY || |
757 | - $this->getTypeID() === SHIP_TYPE_FEDERAL_WARRANT || |
|
758 | - $this->getTypeID() === SHIP_TYPE_FEDERAL_ULTIMATUM; |
|
757 | + $this->getTypeID() === SHIP_TYPE_FEDERAL_WARRANT || |
|
758 | + $this->getTypeID() === SHIP_TYPE_FEDERAL_ULTIMATUM; |
|
759 | 759 | } |
760 | 760 | |
761 | 761 | public function isUnderground(): bool { |
762 | 762 | return $this->getTypeID() === SHIP_TYPE_THIEF || |
763 | - $this->getTypeID() === SHIP_TYPE_ASSASSIN || |
|
764 | - $this->getTypeID() === SHIP_TYPE_DEATH_CRUISER; |
|
763 | + $this->getTypeID() === SHIP_TYPE_ASSASSIN || |
|
764 | + $this->getTypeID() === SHIP_TYPE_DEATH_CRUISER; |
|
765 | 765 | } |
766 | 766 | |
767 | 767 | /** |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | $shareFrom[$fromAccountId] = [ |
39 | 39 | 'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(), |
40 | 40 | 'Player Name' => $otherPlayer == null ? |
41 | - '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() : |
|
42 | - $otherPlayer->getDisplayName(), |
|
41 | + '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() : |
|
42 | + $otherPlayer->getDisplayName(), |
|
43 | 43 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
44 | 44 | 'Game ID' => $gameId, |
45 | 45 | ]; |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | $shareTo[$toAccountId] = [ |
60 | 60 | 'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(), |
61 | 61 | 'Player Name' => $otherPlayer == null ? |
62 | - '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : |
|
63 | - $otherPlayer->getDisplayName(), |
|
62 | + '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : |
|
63 | + $otherPlayer->getDisplayName(), |
|
64 | 64 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
65 | 65 | 'Game ID' => $gameId, |
66 | 66 | ]; |