We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -19,8 +19,7 @@ discard block |
||
19 | 19 | $shareFrom[$fromAccountId] = array( |
20 | 20 | 'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(), |
21 | 21 | 'Player Name' => $otherPlayer == null ? |
22 | - '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() : |
|
23 | - $otherPlayer->getDisplayName(), |
|
22 | + '<b>Account</b>: ' . SmrAccount::getAccount($fromAccountId)->getHofDisplayName() : $otherPlayer->getDisplayName(), |
|
24 | 23 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
25 | 24 | 'Game ID' => $gameId, |
26 | 25 | ); |
@@ -40,8 +39,7 @@ discard block |
||
40 | 39 | $shareTo[$toAccountId] = array( |
41 | 40 | 'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(), |
42 | 41 | 'Player Name' => $otherPlayer == null ? |
43 | - '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : |
|
44 | - $otherPlayer->getDisplayName(), |
|
42 | + '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : $otherPlayer->getDisplayName(), |
|
45 | 43 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
46 | 44 | 'Game ID' => $gameId, |
47 | 45 | ); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $menuItems[] = array('Link'=>Globals::getPlanetListHREF($alliance_id), 'Text'=>'Defense'); |
41 | 41 | $menuItems[] = array('Link'=>Globals::getPlanetListFinancialHREF($alliance_id), 'Text'=>'Financial'); |
42 | 42 | // make the selected index bold |
43 | - $boldItem =& $menuItems[$selected_index]['Text']; |
|
43 | + $boldItem = & $menuItems[$selected_index]['Text']; |
|
44 | 44 | $boldItem = '<span class="bold">' . $boldItem . '</span>'; |
45 | 45 | |
46 | 46 | $template = Smr\Template::getInstance(); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | 'Text' => 'Game News', |
147 | 147 | ]; |
148 | 148 | // make the selected index bold |
149 | - $boldItem =& $menuItems[$selected_index]['Text']; |
|
149 | + $boldItem = & $menuItems[$selected_index]['Text']; |
|
150 | 150 | $boldItem = '<b>' . $boldItem . '</b>'; |
151 | 151 | |
152 | 152 | $template = Smr\Template::getInstance(); |
@@ -30,13 +30,13 @@ |
||
30 | 30 | const USER_SCORE_NAME = 'User Score'; |
31 | 31 | $hofTypes = array(DONATION_NAME=>true, USER_SCORE_NAME=>true); |
32 | 32 | foreach ($dbResult->records() as $dbRecord) { |
33 | - $hof =& $hofTypes; |
|
33 | + $hof = & $hofTypes; |
|
34 | 34 | $typeList = explode(':', $dbRecord->getString('type')); |
35 | 35 | foreach ($typeList as $type) { |
36 | 36 | if (!isset($hof[$type])) { |
37 | 37 | $hof[$type] = array(); |
38 | 38 | } |
39 | - $hof =& $hof[$type]; |
|
39 | + $hof = & $hof[$type]; |
|
40 | 40 | } |
41 | 41 | $hof = true; |
42 | 42 | } |
@@ -387,13 +387,13 @@ |
||
387 | 387 | $dbResult = $this->db->read('SELECT type,sum(amount) as amount FROM player_hof WHERE ' . $this->SQL . ' AND game_id IN (SELECT game_id FROM game WHERE ignore_stats = \'FALSE\') GROUP BY type'); |
388 | 388 | $this->HOF = array(); |
389 | 389 | foreach ($dbResult->records() as $dbRecord) { |
390 | - $hof =& $this->HOF; |
|
390 | + $hof = & $this->HOF; |
|
391 | 391 | $typeList = explode(':', $dbRecord->getString('type')); |
392 | 392 | foreach ($typeList as $type) { |
393 | 393 | if (!isset($hof[$type])) { |
394 | 394 | $hof[$type] = array(); |
395 | 395 | } |
396 | - $hof =& $hof[$type]; |
|
396 | + $hof = & $hof[$type]; |
|
397 | 397 | } |
398 | 398 | $hof = $dbRecord->getFloat('amount'); |
399 | 399 | } |
@@ -30,13 +30,13 @@ |
||
30 | 30 | const USER_SCORE_NAME = 'User Score'; |
31 | 31 | $hofTypes = array(DONATION_NAME=>true, USER_SCORE_NAME=>true); |
32 | 32 | foreach ($dbResult->records() as $dbRecord) { |
33 | - $hof =& $hofTypes; |
|
33 | + $hof = & $hofTypes; |
|
34 | 34 | $typeList = explode(':', $dbRecord->getString('type')); |
35 | 35 | foreach ($typeList as $type) { |
36 | 36 | if (!isset($hof[$type])) { |
37 | 37 | $hof[$type] = array(); |
38 | 38 | } |
39 | - $hof =& $hof[$type]; |
|
39 | + $hof = & $hof[$type]; |
|
40 | 40 | } |
41 | 41 | $hof = true; |
42 | 42 | } |
@@ -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 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | class VoteSite { |
11 | 11 | |
12 | - private static ?array $CACHE_TIMEOUTS = null; |
|
12 | + private static ? array $CACHE_TIMEOUTS = null; |
|
13 | 13 | |
14 | 14 | // NOTE: link IDs should never be changed! |
15 | 15 | const LINK_ID_TWG = 3; |