We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | /** |
267 | 267 | * Insert a new player into the database. Returns the new player object. |
268 | 268 | */ |
269 | - public static function createPlayer($accountID, $gameID, $playerName, $raceID, $isNewbie, $npc=false) { |
|
269 | + public static function createPlayer($accountID, $gameID, $playerName, $raceID, $isNewbie, $npc = false) { |
|
270 | 270 | $db = new SmrMySqlDatabase(); |
271 | 271 | $db->lockTable('player'); |
272 | 272 | |
@@ -1646,7 +1646,7 @@ discard block |
||
1646 | 1646 | create_error('The saved sector must be in the box!'); |
1647 | 1647 | } |
1648 | 1648 | |
1649 | - $storedDestinations =& $this->getStoredDestinations(); |
|
1649 | + $storedDestinations = & $this->getStoredDestinations(); |
|
1650 | 1650 | foreach ($storedDestinations as &$sd) { |
1651 | 1651 | if ($sd['SectorID'] == $sectorID) { |
1652 | 1652 | $sd['OffsetTop'] = $offsetTop; |
@@ -1973,13 +1973,13 @@ discard block |
||
1973 | 1973 | $this->db->query('SELECT type,amount FROM player_hof WHERE ' . $this->SQL); |
1974 | 1974 | $this->HOF = array(); |
1975 | 1975 | while ($this->db->nextRecord()) { |
1976 | - $hof =& $this->HOF; |
|
1976 | + $hof = & $this->HOF; |
|
1977 | 1977 | $typeList = explode(':', $this->db->getField('type')); |
1978 | 1978 | foreach ($typeList as $type) { |
1979 | 1979 | if (!isset($hof[$type])) { |
1980 | 1980 | $hof[$type] = array(); |
1981 | 1981 | } |
1982 | - $hof =& $hof[$type]; |
|
1982 | + $hof = & $hof[$type]; |
|
1983 | 1983 | } |
1984 | 1984 | $hof = $this->db->getFloat('amount'); |
1985 | 1985 | } |
@@ -2058,8 +2058,8 @@ discard block |
||
2058 | 2058 | } |
2059 | 2059 | self::$HOFVis[$hofType] = $visibility; |
2060 | 2060 | |
2061 | - $hof =& $this->HOF; |
|
2062 | - $hofChanged =& $this->hasHOFChanged; |
|
2061 | + $hof = & $this->HOF; |
|
2062 | + $hofChanged = & $this->hasHOFChanged; |
|
2063 | 2063 | $new = false; |
2064 | 2064 | foreach ($typeList as $type) { |
2065 | 2065 | if (!isset($hofChanged[$type])) { |
@@ -2069,8 +2069,8 @@ discard block |
||
2069 | 2069 | $hof[$type] = array(); |
2070 | 2070 | $new = true; |
2071 | 2071 | } |
2072 | - $hof =& $hof[$type]; |
|
2073 | - $hofChanged =& $hofChanged[$type]; |
|
2072 | + $hof = & $hof[$type]; |
|
2073 | + $hofChanged = & $hofChanged[$type]; |
|
2074 | 2074 | } |
2075 | 2075 | if ($hofChanged == null) { |
2076 | 2076 | $hofChanged = self::HOF_CHANGED; |
@@ -2681,7 +2681,7 @@ discard block |
||
2681 | 2681 | } |
2682 | 2682 | |
2683 | 2683 | private function setupMissionStep($missionID) { |
2684 | - $mission =& $this->missions[$missionID]; |
|
2684 | + $mission = & $this->missions[$missionID]; |
|
2685 | 2685 | if ($mission['On Step'] >= count(MISSIONS[$missionID]['Steps'])) { |
2686 | 2686 | // Nothing to do if this mission is already completed |
2687 | 2687 | return; |
@@ -2726,7 +2726,7 @@ discard block |
||
2726 | 2726 | 'Starting Sector' => $this->getSectorID() |
2727 | 2727 | ); |
2728 | 2728 | |
2729 | - $this->missions[$missionID] =& $mission; |
|
2729 | + $this->missions[$missionID] = & $mission; |
|
2730 | 2730 | $this->setupMissionStep($missionID); |
2731 | 2731 | $this->rebuildMission($missionID); |
2732 | 2732 | |
@@ -2783,7 +2783,7 @@ discard block |
||
2783 | 2783 | |
2784 | 2784 | public function claimMissionReward($missionID) { |
2785 | 2785 | $this->getMissions(); |
2786 | - $mission =& $this->missions[$missionID]; |
|
2786 | + $mission = & $this->missions[$missionID]; |
|
2787 | 2787 | if ($mission === false) { |
2788 | 2788 | throw new Exception('Unknown mission: ' . $missionID); |
2789 | 2789 | } |