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) { |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | * Can be used to convert any type of notice into an exception. |
| 122 | 122 | */ |
| 123 | 123 | function exception_error_handler(int $errno, string $errstr, string $errfile, int $errline): bool { |
| 124 | - if (!(error_reporting() & $errno)) { |
|
| 124 | + if (!(error_reporting()&$errno)) { |
|
| 125 | 125 | return false; // error is suppressed |
| 126 | 126 | } |
| 127 | 127 | throw new ErrorException($errstr, $errno, E_ERROR, $errfile, $errline); |
@@ -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 { |
@@ -2886,7 +2886,7 @@ discard block |
||
| 2886 | 2886 | 'Starting Sector' => $this->getSectorID(), |
| 2887 | 2887 | ]; |
| 2888 | 2888 | |
| 2889 | - $this->missions[$missionID] =& $mission; |
|
| 2889 | + $this->missions[$missionID] = & $mission; |
|
| 2890 | 2890 | $this->setupMissionStep($missionID); |
| 2891 | 2891 | $this->rebuildMission($missionID); |
| 2892 | 2892 | |
@@ -2948,7 +2948,7 @@ discard block |
||
| 2948 | 2948 | if (!$this->hasMission($missionID)) { |
| 2949 | 2949 | throw new Exception('Unknown mission: ' . $missionID); |
| 2950 | 2950 | } |
| 2951 | - $mission =& $this->missions[$missionID]; |
|
| 2951 | + $mission = & $this->missions[$missionID]; |
|
| 2952 | 2952 | if ($mission['Task'] === false || $mission['Task']['Step'] != 'Claim') { |
| 2953 | 2953 | throw new Exception('Cannot claim mission: ' . $missionID . ', for step: ' . $mission['On Step']); |
| 2954 | 2954 | } |
@@ -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; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * Not intended to be used outside the DI context. |
| 27 | 27 | */ |
| 28 | 28 | public static function mysqliFactory(DatabaseProperties $dbProperties): mysqli { |
| 29 | - if (!mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT)) { |
|
| 29 | + if (!mysqli_report(MYSQLI_REPORT_ERROR|MYSQLI_REPORT_STRICT)) { |
|
| 30 | 30 | throw new RuntimeException('Failed to enable mysqli error reporting'); |
| 31 | 31 | } |
| 32 | 32 | $mysql = new mysqli( |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | 'illusion' => $ship->canHaveIllusion() ? 'Yes' : '', |
| 71 | 71 | 'jump' => $ship->canHaveJump() ? 'Yes' : '', |
| 72 | 72 | 'scrambler' => $ship->canHaveDCS() ? 'Yes' : '', |
| 73 | - 'locs' => implode('', array_map(fn(string $name): string => '<div>' . $name . '</div>', $shipLocs)), |
|
| 73 | + 'locs' => implode('', array_map(fn(string $name) : string => '<div>' . $name . '</div>', $shipLocs)), |
|
| 74 | 74 | ]; |
| 75 | 75 | return $stat; |
| 76 | 76 | } |