We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -393,13 +393,13 @@ |
||
393 | 393 | $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'); |
394 | 394 | $this->HOF = []; |
395 | 395 | foreach ($dbResult->records() as $dbRecord) { |
396 | - $hof =& $this->HOF; |
|
396 | + $hof = & $this->HOF; |
|
397 | 397 | $typeList = explode(':', $dbRecord->getString('type')); |
398 | 398 | foreach ($typeList as $type) { |
399 | 399 | if (!isset($hof[$type])) { |
400 | 400 | $hof[$type] = []; |
401 | 401 | } |
402 | - $hof =& $hof[$type]; |
|
402 | + $hof = & $hof[$type]; |
|
403 | 403 | } |
404 | 404 | $hof = $dbRecord->getFloat('amount'); |
405 | 405 | } |
@@ -35,13 +35,13 @@ |
||
35 | 35 | const USER_SCORE_NAME = 'User Score'; |
36 | 36 | $hofTypes = [DONATION_NAME => true, USER_SCORE_NAME => true]; |
37 | 37 | foreach ($dbResult->records() as $dbRecord) { |
38 | - $hof =& $hofTypes; |
|
38 | + $hof = & $hofTypes; |
|
39 | 39 | $typeList = explode(':', $dbRecord->getString('type')); |
40 | 40 | foreach ($typeList as $type) { |
41 | 41 | if (!isset($hof[$type])) { |
42 | 42 | $hof[$type] = []; |
43 | 43 | } |
44 | - $hof =& $hof[$type]; |
|
44 | + $hof = & $hof[$type]; |
|
45 | 45 | } |
46 | 46 | $hof = true; |
47 | 47 | } |
@@ -67,9 +67,9 @@ |
||
67 | 67 | $session = Session::getInstance(); |
68 | 68 | $account = $session->getAccount(); |
69 | 69 | if (($vis == HOF_PRIVATE && $account->getAccountID() != $accountID) || |
70 | - ($vis == HOF_ALLIANCE && isset($gameID) && |
|
71 | - !SmrGame::getGame($gameID)->hasEnded() && |
|
72 | - !SmrPlayer::getPlayer($accountID, $gameID)->sameAlliance($session->getPlayer()))) { |
|
70 | + ($vis == HOF_ALLIANCE && isset($gameID) && |
|
71 | + !SmrGame::getGame($gameID)->hasEnded() && |
|
72 | + !SmrPlayer::getPlayer($accountID, $gameID)->sameAlliance($session->getPlayer()))) { |
|
73 | 73 | return '-'; |
74 | 74 | } |
75 | 75 | return $amount; |
@@ -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 | } |