We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -2003,13 +2003,13 @@ discard block |
||
| 2003 | 2003 | $dbResult = $this->db->read('SELECT type,amount FROM player_hof WHERE ' . $this->SQL); |
| 2004 | 2004 | $this->HOF = []; |
| 2005 | 2005 | foreach ($dbResult->records() as $dbRecord) { |
| 2006 | - $hof =& $this->HOF; |
|
| 2006 | + $hof = & $this->HOF; |
|
| 2007 | 2007 | $typeList = explode(':', $dbRecord->getString('type')); |
| 2008 | 2008 | foreach ($typeList as $type) { |
| 2009 | 2009 | if (!isset($hof[$type])) { |
| 2010 | 2010 | $hof[$type] = []; |
| 2011 | 2011 | } |
| 2012 | - $hof =& $hof[$type]; |
|
| 2012 | + $hof = & $hof[$type]; |
|
| 2013 | 2013 | } |
| 2014 | 2014 | $hof = $dbRecord->getFloat('amount'); |
| 2015 | 2015 | } |
@@ -2088,8 +2088,8 @@ discard block |
||
| 2088 | 2088 | } |
| 2089 | 2089 | self::$HOFVis[$hofType] = $visibility; |
| 2090 | 2090 | |
| 2091 | - $hof =& $this->HOF; |
|
| 2092 | - $hofChanged =& $this->hasHOFChanged; |
|
| 2091 | + $hof = & $this->HOF; |
|
| 2092 | + $hofChanged = & $this->hasHOFChanged; |
|
| 2093 | 2093 | $new = false; |
| 2094 | 2094 | foreach ($typeList as $type) { |
| 2095 | 2095 | if (!isset($hofChanged[$type])) { |
@@ -2099,8 +2099,8 @@ discard block |
||
| 2099 | 2099 | $hof[$type] = []; |
| 2100 | 2100 | $new = true; |
| 2101 | 2101 | } |
| 2102 | - $hof =& $hof[$type]; |
|
| 2103 | - $hofChanged =& $hofChanged[$type]; |
|
| 2102 | + $hof = & $hof[$type]; |
|
| 2103 | + $hofChanged = & $hofChanged[$type]; |
|
| 2104 | 2104 | } |
| 2105 | 2105 | if ($hofChanged == null) { |
| 2106 | 2106 | $hofChanged = self::HOF_CHANGED; |
@@ -2766,7 +2766,7 @@ discard block |
||
| 2766 | 2766 | 'Starting Sector' => $this->getSectorID(), |
| 2767 | 2767 | ]; |
| 2768 | 2768 | |
| 2769 | - $this->missions[$missionID] =& $mission; |
|
| 2769 | + $this->missions[$missionID] = & $mission; |
|
| 2770 | 2770 | $this->setupMissionStep($missionID); |
| 2771 | 2771 | $this->rebuildMission($missionID); |
| 2772 | 2772 | |
@@ -2815,7 +2815,7 @@ discard block |
||
| 2815 | 2815 | |
| 2816 | 2816 | public function claimMissionReward(int $missionID): string { |
| 2817 | 2817 | $this->getMissions(); |
| 2818 | - $mission =& $this->missions[$missionID]; |
|
| 2818 | + $mission = & $this->missions[$missionID]; |
|
| 2819 | 2819 | if ($mission === false) { |
| 2820 | 2820 | throw new Exception('Unknown mission: ' . $missionID); |
| 2821 | 2821 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | class VoteSite { |
| 12 | 12 | |
| 13 | - private static ?array $CACHE_TIMEOUTS = null; |
|
| 13 | + private static ? array $CACHE_TIMEOUTS = null; |
|
| 14 | 14 | |
| 15 | 15 | // NOTE: link IDs should never be changed! |
| 16 | 16 | public const LINK_ID_TWG = 3; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * Not intended to be used outside the DI context. |
| 27 | 27 | */ |
| 28 | 28 | public static function mysqliFactory(DatabaseProperties $dbProperties): mysqli { |
| 29 | - if (!mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT)) { |
|
| 29 | + if (!mysqli_report(MYSQLI_REPORT_ERROR|MYSQLI_REPORT_STRICT)) { |
|
| 30 | 30 | throw new RuntimeException('Failed to enable mysqli error reporting'); |
| 31 | 31 | } |
| 32 | 32 | $mysql = new mysqli( |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | 'illusion' => $ship->canHaveIllusion() ? 'Yes' : '', |
| 71 | 71 | 'jump' => $ship->canHaveJump() ? 'Yes' : '', |
| 72 | 72 | 'scrambler' => $ship->canHaveDCS() ? 'Yes' : '', |
| 73 | - 'locs' => implode('', array_map(fn(string $name): string => '<div>' . $name . '</div>', $shipLocs)), |
|
| 73 | + 'locs' => implode('', array_map(fn(string $name) : string => '<div>' . $name . '</div>', $shipLocs)), |
|
| 74 | 74 | ]; |
| 75 | 75 | return $stat; |
| 76 | 76 | } |