We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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)) { |
@@ -10,7 +10,10 @@ |
||
10 | 10 | <td style="width: 80%" class="center"> |
11 | 11 | Local Map of the Known <span class="big bold"><?php echo $GalaxyName ?></span> Galaxy |
12 | 12 | <br /><br /> |
13 | - <?php if (isset($Error)) echo $Error; ?> |
|
13 | + <?php if (isset($Error)) { |
|
14 | + echo $Error; |
|
15 | +} |
|
16 | +?> |
|
14 | 17 | </td> |
15 | 18 | <td style="width: 10%"></td> |
16 | 19 | </tr> |
@@ -20,13 +20,13 @@ |
||
20 | 20 | const USER_SCORE_NAME = 'User Score'; |
21 | 21 | $hofTypes = array(DONATION_NAME=>true, USER_SCORE_NAME=>true); |
22 | 22 | while ($db->nextRecord()) { |
23 | - $hof =& $hofTypes; |
|
23 | + $hof = & $hofTypes; |
|
24 | 24 | $typeList = explode(':', $db->getField('type')); |
25 | 25 | foreach ($typeList as $type) { |
26 | 26 | if (!isset($hof[$type])) { |
27 | 27 | $hof[$type] = array(); |
28 | 28 | } |
29 | - $hof =& $hof[$type]; |
|
29 | + $hof = & $hof[$type]; |
|
30 | 30 | } |
31 | 31 | $hof = true; |
32 | 32 | } |
@@ -20,13 +20,13 @@ |
||
20 | 20 | const USER_SCORE_NAME = 'User Score'; |
21 | 21 | $hofTypes = array(DONATION_NAME=>true, USER_SCORE_NAME=>true); |
22 | 22 | while ($db->nextRecord()) { |
23 | - $hof =& $hofTypes; |
|
23 | + $hof = & $hofTypes; |
|
24 | 24 | $typeList = explode(':', $db->getField('type')); |
25 | 25 | foreach ($typeList as $type) { |
26 | 26 | if (!isset($hof[$type])) { |
27 | 27 | $hof[$type] = array(); |
28 | 28 | } |
29 | - $hof =& $hof[$type]; |
|
29 | + $hof = & $hof[$type]; |
|
30 | 30 | } |
31 | 31 | $hof = true; |
32 | 32 | } |
@@ -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) { |
@@ -929,8 +929,8 @@ discard block |
||
929 | 929 | } |
930 | 930 | self::$HOFVis[$hofType] = $visibility; |
931 | 931 | |
932 | - $hof =& $this->HOF; |
|
933 | - $hofChanged =& $this->hasHOFChanged; |
|
932 | + $hof = & $this->HOF; |
|
933 | + $hofChanged = & $this->hasHOFChanged; |
|
934 | 934 | $new = false; |
935 | 935 | foreach ($typeList as $type) { |
936 | 936 | if (!isset($hofChanged[$type])) { |
@@ -940,8 +940,8 @@ discard block |
||
940 | 940 | $hof[$type] = array(); |
941 | 941 | $new = true; |
942 | 942 | } |
943 | - $hof =& $hof[$type]; |
|
944 | - $hofChanged =& $hofChanged[$type]; |
|
943 | + $hof = & $hof[$type]; |
|
944 | + $hofChanged = & $hofChanged[$type]; |
|
945 | 945 | } |
946 | 946 | if ($hofChanged == null) { |
947 | 947 | $hofChanged = self::HOF_CHANGED; |
@@ -1097,7 +1097,7 @@ discard block |
||
1097 | 1097 | } |
1098 | 1098 | |
1099 | 1099 | private function setupMissionStep($missionID) { |
1100 | - $mission =& $this->missions[$missionID]; |
|
1100 | + $mission = & $this->missions[$missionID]; |
|
1101 | 1101 | if ($mission['On Step'] >= count(MISSIONS[$missionID]['Steps'])) { |
1102 | 1102 | // Nothing to do if this mission is already completed |
1103 | 1103 | return; |
@@ -1142,7 +1142,7 @@ discard block |
||
1142 | 1142 | 'Starting Sector' => $this->getSectorID() |
1143 | 1143 | ); |
1144 | 1144 | |
1145 | - $this->missions[$missionID] =& $mission; |
|
1145 | + $this->missions[$missionID] = & $mission; |
|
1146 | 1146 | $this->setupMissionStep($missionID); |
1147 | 1147 | $this->rebuildMission($missionID); |
1148 | 1148 | |
@@ -1201,7 +1201,7 @@ discard block |
||
1201 | 1201 | |
1202 | 1202 | public function claimMissionReward($missionID) { |
1203 | 1203 | $this->getMissions(); |
1204 | - $mission =& $this->missions[$missionID]; |
|
1204 | + $mission = & $this->missions[$missionID]; |
|
1205 | 1205 | if ($mission === false) { |
1206 | 1206 | throw new Exception('Unknown mission: ' . $missionID); |
1207 | 1207 | } |
@@ -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 | } |