We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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> |
@@ -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 | } |
@@ -68,8 +68,7 @@ |
||
68 | 68 | |
69 | 69 | </body> |
70 | 70 | </html><?php |
71 | -} |
|
72 | -catch (Throwable $e) { |
|
71 | +} catch (Throwable $e) { |
|
73 | 72 | handleException($e); |
74 | 73 | } |
75 | 74 | ?> |
@@ -69,7 +69,7 @@ |
||
69 | 69 | exit; |
70 | 70 | } |
71 | 71 | $account->addAuthMethod($_SESSION['socialLogin']->getLoginType(), |
72 | - $_SESSION['socialLogin']->getUserID()); |
|
72 | + $_SESSION['socialLogin']->getUserID()); |
|
73 | 73 | session_destroy(); |
74 | 74 | } |
75 | 75 |
@@ -150,7 +150,7 @@ |
||
150 | 150 | $account->increaseSmrRewardCredits(2 * CREDITS_PER_DOLLAR); // Give $2 worth of "reward" credits for joining. |
151 | 151 | if ($socialLogin) { |
152 | 152 | $account->addAuthMethod($_SESSION['socialLogin']->getLoginType(), |
153 | - $_SESSION['socialLogin']->getUserID()); |
|
153 | + $_SESSION['socialLogin']->getUserID()); |
|
154 | 154 | if ($validatedBySocial) { |
155 | 155 | $account->setValidated(true); |
156 | 156 | $account->update(); |
@@ -3,7 +3,7 @@ |
||
3 | 3 | function get_turns_message($player) { |
4 | 4 | // turns only update when the player is active, so calculate current turns |
5 | 5 | $turns = min($player->getTurns() + $player->getTurnsGained(time(), true), |
6 | - $player->getMaxTurns()); |
|
6 | + $player->getMaxTurns()); |
|
7 | 7 | $msg = $player->getPlayerName() . " has $turns/" . $player->getMaxTurns() . " turns."; |
8 | 8 | |
9 | 9 | // Calculate time to max turns if under the max |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | } |
120 | 120 | |
121 | 121 | try { |
122 | - $TRADE_ROUTE =& $GLOBALS['TRADE_ROUTE']; |
|
122 | + $TRADE_ROUTE = & $GLOBALS['TRADE_ROUTE']; |
|
123 | 123 | debug('Action #' . $actions); |
124 | 124 | |
125 | 125 | //We have to reload player on each loop |
@@ -138,14 +138,14 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | if (!isset($TRADE_ROUTE)) { //We only want to change trade route if there isn't already one set. |
141 | - $TRADE_ROUTES =& findRoutes($player); |
|
142 | - $TRADE_ROUTE =& changeRoute($TRADE_ROUTES); |
|
141 | + $TRADE_ROUTES = & findRoutes($player); |
|
142 | + $TRADE_ROUTE = & changeRoute($TRADE_ROUTES); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | if ($player->isDead()) { |
146 | 146 | debug('Some evil person killed us, let\'s move on now.'); |
147 | 147 | $previousContainer = null; //We died, we don't care what we were doing beforehand. |
148 | - $TRADE_ROUTE =& changeRoute($TRADE_ROUTES); //Change route |
|
148 | + $TRADE_ROUTE = & changeRoute($TRADE_ROUTES); //Change route |
|
149 | 149 | processContainer(create_container('death_processing.php')); |
150 | 150 | } |
151 | 151 | if ($player->getNewbieTurns() <= NEWBIE_TURNS_WARNING_LIMIT && $player->getNewbieWarning()) { |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | processContainer(tradeGoods($goodID, $player, $port)); |
228 | 228 | } else { |
229 | 229 | //Move to next route or fed. |
230 | - if (($TRADE_ROUTE =& changeRoute($TRADE_ROUTES)) === false) { |
|
230 | + if (($TRADE_ROUTE = & changeRoute($TRADE_ROUTES)) === false) { |
|
231 | 231 | debug('Changing Route Failed'); |
232 | 232 | processContainer(plotToFed($player)); |
233 | 233 | } else { |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | processContainer(tradeGoods($goodID, $player, $port)); |
255 | 255 | } else { |
256 | 256 | //Move to next route or fed. |
257 | - if (($TRADE_ROUTE =& changeRoute($TRADE_ROUTES)) === false) { |
|
257 | + if (($TRADE_ROUTE = & changeRoute($TRADE_ROUTES)) === false) { |
|
258 | 258 | debug('Changing Route Failed'); |
259 | 259 | processContainer(plotToFed($player)); |
260 | 260 | } else { |
@@ -586,9 +586,9 @@ discard block |
||
586 | 586 | return $false; |
587 | 587 | } |
588 | 588 | $routeKey = array_rand($tradeRoutes); |
589 | - $tradeRoute =& $tradeRoutes[$routeKey]; |
|
589 | + $tradeRoute = & $tradeRoutes[$routeKey]; |
|
590 | 590 | unset($tradeRoutes[$routeKey]); |
591 | - $GLOBALS['TRADE_ROUTE'] =& $tradeRoute; |
|
591 | + $GLOBALS['TRADE_ROUTE'] = & $tradeRoute; |
|
592 | 592 | debug('Switched route', $tradeRoute); |
593 | 593 | return $tradeRoute; |
594 | 594 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | continue; |
25 | 25 | } |
26 | 26 | $turns = min($attendeePlayer->getTurns() + $attendeePlayer->getTurnsGained(time(), true), |
27 | - $attendeePlayer->getMaxTurns()); |
|
27 | + $attendeePlayer->getMaxTurns()); |
|
28 | 28 | $oppers[$attendeePlayer->getPlayerName()] = $turns; |
29 | 29 | } |
30 | 30 |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | while ($this->db->nextRecord()) { |
315 | 315 | try { |
316 | 316 | $otherPlayer = SmrPlayer::getPlayer($this->db->getInt('from_account_id'), |
317 | - $this->getGameID(), $forceUpdate); |
|
317 | + $this->getGameID(), $forceUpdate); |
|
318 | 318 | } catch (PlayerNotFoundException $e) { |
319 | 319 | // Skip players that have not joined this game |
320 | 320 | continue; |
@@ -878,9 +878,9 @@ discard block |
||
878 | 878 | */ |
879 | 879 | public function canFight() { |
880 | 880 | return !($this->hasNewbieTurns() || |
881 | - $this->isDead() || |
|
882 | - $this->isLandedOnPlanet() || |
|
883 | - $this->hasFederalProtection()); |
|
881 | + $this->isDead() || |
|
882 | + $this->isLandedOnPlanet() || |
|
883 | + $this->hasFederalProtection()); |
|
884 | 884 | } |
885 | 885 | |
886 | 886 | public function setDead($bool) { |
@@ -1711,7 +1711,7 @@ discard block |
||
1711 | 1711 | create_error('The saved sector must be in the box!'); |
1712 | 1712 | } |
1713 | 1713 | |
1714 | - $storedDestinations =& $this->getStoredDestinations(); |
|
1714 | + $storedDestinations = & $this->getStoredDestinations(); |
|
1715 | 1715 | foreach ($storedDestinations as &$sd) { |
1716 | 1716 | if ($sd['SectorID'] == $sectorID) { |
1717 | 1717 | $sd['OffsetTop'] = $offsetTop; |
@@ -2034,13 +2034,13 @@ discard block |
||
2034 | 2034 | $this->db->query('SELECT type,amount FROM player_hof WHERE ' . $this->SQL); |
2035 | 2035 | $this->HOF = array(); |
2036 | 2036 | while ($this->db->nextRecord()) { |
2037 | - $hof =& $this->HOF; |
|
2037 | + $hof = & $this->HOF; |
|
2038 | 2038 | $typeList = explode(':', $this->db->getField('type')); |
2039 | 2039 | foreach ($typeList as $type) { |
2040 | 2040 | if (!isset($hof[$type])) { |
2041 | 2041 | $hof[$type] = array(); |
2042 | 2042 | } |
2043 | - $hof =& $hof[$type]; |
|
2043 | + $hof = & $hof[$type]; |
|
2044 | 2044 | } |
2045 | 2045 | $hof = $this->db->getFloat('amount'); |
2046 | 2046 | } |
@@ -2119,8 +2119,8 @@ discard block |
||
2119 | 2119 | } |
2120 | 2120 | self::$HOFVis[$hofType] = $visibility; |
2121 | 2121 | |
2122 | - $hof =& $this->HOF; |
|
2123 | - $hofChanged =& $this->hasHOFChanged; |
|
2122 | + $hof = & $this->HOF; |
|
2123 | + $hofChanged = & $this->hasHOFChanged; |
|
2124 | 2124 | $new = false; |
2125 | 2125 | foreach ($typeList as $type) { |
2126 | 2126 | if (!isset($hofChanged[$type])) { |
@@ -2130,8 +2130,8 @@ discard block |
||
2130 | 2130 | $hof[$type] = array(); |
2131 | 2131 | $new = true; |
2132 | 2132 | } |
2133 | - $hof =& $hof[$type]; |
|
2134 | - $hofChanged =& $hofChanged[$type]; |
|
2133 | + $hof = & $hof[$type]; |
|
2134 | + $hofChanged = & $hofChanged[$type]; |
|
2135 | 2135 | } |
2136 | 2136 | if ($hofChanged == null) { |
2137 | 2137 | $hofChanged = self::HOF_CHANGED; |
@@ -2780,7 +2780,7 @@ discard block |
||
2780 | 2780 | 'Starting Sector' => $this->getSectorID() |
2781 | 2781 | ); |
2782 | 2782 | |
2783 | - $this->missions[$missionID] =& $mission; |
|
2783 | + $this->missions[$missionID] = & $mission; |
|
2784 | 2784 | $this->setupMissionStep($missionID); |
2785 | 2785 | $this->rebuildMission($missionID); |
2786 | 2786 | |
@@ -2830,7 +2830,7 @@ discard block |
||
2830 | 2830 | |
2831 | 2831 | public function claimMissionReward($missionID) { |
2832 | 2832 | $this->getMissions(); |
2833 | - $mission =& $this->missions[$missionID]; |
|
2833 | + $mission = & $this->missions[$missionID]; |
|
2834 | 2834 | if ($mission === false) { |
2835 | 2835 | throw new Exception('Unknown mission: ' . $missionID); |
2836 | 2836 | } |