We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | // Get the dates ("|" sets hr/min/sec to 0) |
6 | 6 | $join = DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_join')); |
7 | -$start = empty(Smr\Request::get('game_start')) ? $join : |
|
8 | - DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
7 | +$start = empty(Smr\Request::get('game_start')) ? $join : DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
9 | 8 | $end = DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_end')); |
10 | 9 | |
11 | 10 | $game = SmrGame::getGame($var['game_id']); |
@@ -128,7 +128,7 @@ |
||
128 | 128 | AND receiver_delete = ' . $db->escapeBoolean(false) . ' |
129 | 129 | ORDER BY send_time DESC'); |
130 | 130 | foreach ($dbResult->records() as $dbRecord) { |
131 | - $groupBox =& $messageBox['GroupedMessages'][$dbRecord->getInt('sender_id')]; |
|
131 | + $groupBox = & $messageBox['GroupedMessages'][$dbRecord->getInt('sender_id')]; |
|
132 | 132 | // Limit the number of messages in each group |
133 | 133 | if (!isset($groupBox['Messages']) || count($groupBox['Messages']) < MESSAGE_SCOUT_GROUP_LIMIT) { |
134 | 134 | $groupBox['Messages'][] = displayMessage($dbRecord->getInt('message_id'), $dbRecord->getInt('account_id'), $dbRecord->getInt('sender_id'), $player->getGameID(), $dbRecord->getString('message_text'), $dbRecord->getInt('send_time'), $dbRecord->getBoolean('msg_read'), MSG_SCOUT, $player->getAccount()); |
@@ -229,13 +229,13 @@ |
||
229 | 229 | $planet->increaseBuilding(PLANET_HANGAR, 4); |
230 | 230 | $this->assertTrue($planet->hasBuilding(PLANET_HANGAR)); |
231 | 231 | $this->assertSame(4, $planet->getBuilding(PLANET_HANGAR)); |
232 | - $this->assertSame(4/3, $planet->getLevel()); |
|
232 | + $this->assertSame(4 / 3, $planet->getLevel()); |
|
233 | 233 | |
234 | 234 | // Destroy some hangars |
235 | 235 | $planet->destroyBuilding(PLANET_HANGAR, 2); |
236 | 236 | $this->assertTrue($planet->hasBuilding(PLANET_HANGAR)); |
237 | 237 | $this->assertSame(2, $planet->getBuilding(PLANET_HANGAR)); |
238 | - $this->assertSame(2/3, $planet->getLevel()); |
|
238 | + $this->assertSame(2 / 3, $planet->getLevel()); |
|
239 | 239 | } |
240 | 240 | |
241 | 241 | public function test_defenses() : void { |
@@ -1678,7 +1678,7 @@ discard block |
||
1678 | 1678 | throw new Smr\Exceptions\UserError('The saved sector must be in the box!'); |
1679 | 1679 | } |
1680 | 1680 | |
1681 | - $storedDestinations =& $this->getStoredDestinations(); |
|
1681 | + $storedDestinations = & $this->getStoredDestinations(); |
|
1682 | 1682 | foreach ($storedDestinations as &$sd) { |
1683 | 1683 | if ($sd['SectorID'] == $sectorID) { |
1684 | 1684 | $sd['OffsetTop'] = $offsetTop; |
@@ -2005,13 +2005,13 @@ discard block |
||
2005 | 2005 | $dbResult = $this->db->read('SELECT type,amount FROM player_hof WHERE ' . $this->SQL); |
2006 | 2006 | $this->HOF = array(); |
2007 | 2007 | foreach ($dbResult->records() as $dbRecord) { |
2008 | - $hof =& $this->HOF; |
|
2008 | + $hof = & $this->HOF; |
|
2009 | 2009 | $typeList = explode(':', $dbRecord->getString('type')); |
2010 | 2010 | foreach ($typeList as $type) { |
2011 | 2011 | if (!isset($hof[$type])) { |
2012 | 2012 | $hof[$type] = array(); |
2013 | 2013 | } |
2014 | - $hof =& $hof[$type]; |
|
2014 | + $hof = & $hof[$type]; |
|
2015 | 2015 | } |
2016 | 2016 | $hof = $dbRecord->getFloat('amount'); |
2017 | 2017 | } |
@@ -2090,8 +2090,8 @@ discard block |
||
2090 | 2090 | } |
2091 | 2091 | self::$HOFVis[$hofType] = $visibility; |
2092 | 2092 | |
2093 | - $hof =& $this->HOF; |
|
2094 | - $hofChanged =& $this->hasHOFChanged; |
|
2093 | + $hof = & $this->HOF; |
|
2094 | + $hofChanged = & $this->hasHOFChanged; |
|
2095 | 2095 | $new = false; |
2096 | 2096 | foreach ($typeList as $type) { |
2097 | 2097 | if (!isset($hofChanged[$type])) { |
@@ -2101,8 +2101,8 @@ discard block |
||
2101 | 2101 | $hof[$type] = array(); |
2102 | 2102 | $new = true; |
2103 | 2103 | } |
2104 | - $hof =& $hof[$type]; |
|
2105 | - $hofChanged =& $hofChanged[$type]; |
|
2104 | + $hof = & $hof[$type]; |
|
2105 | + $hofChanged = & $hofChanged[$type]; |
|
2106 | 2106 | } |
2107 | 2107 | if ($hofChanged == null) { |
2108 | 2108 | $hofChanged = self::HOF_CHANGED; |
@@ -2741,7 +2741,7 @@ discard block |
||
2741 | 2741 | 'Starting Sector' => $this->getSectorID() |
2742 | 2742 | ); |
2743 | 2743 | |
2744 | - $this->missions[$missionID] =& $mission; |
|
2744 | + $this->missions[$missionID] = & $mission; |
|
2745 | 2745 | $this->setupMissionStep($missionID); |
2746 | 2746 | $this->rebuildMission($missionID); |
2747 | 2747 | |
@@ -2791,7 +2791,7 @@ discard block |
||
2791 | 2791 | |
2792 | 2792 | public function claimMissionReward(int $missionID) : string { |
2793 | 2793 | $this->getMissions(); |
2794 | - $mission =& $this->missions[$missionID]; |
|
2794 | + $mission = & $this->missions[$missionID]; |
|
2795 | 2795 | if ($mission === false) { |
2796 | 2796 | throw new Exception('Unknown mission: ' . $missionID); |
2797 | 2797 | } |