We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -28,7 +28,7 @@ |
||
28 | 28 | // * C o l o r L e g e n d |
29 | 29 | // ********************************* |
30 | 30 | $avail_colors = array('#FFFFFF', '#00FF00', '#FF3377', '#0099FF', |
31 | - '#FF0000', '#0000FF'); |
|
31 | + '#FF0000', '#0000FF'); |
|
32 | 32 | |
33 | 33 | // now assign each account id a color |
34 | 34 | $colors = []; |
@@ -46,5 +46,5 @@ |
||
46 | 46 | $template->assign('ProcessingHREF', $processingHREF); |
47 | 47 | |
48 | 48 | $template->assign('PermissionCategories', |
49 | - AdminPermissions::getPermissionsByCategory()); |
|
49 | + AdminPermissions::getPermissionsByCategory()); |
|
50 | 50 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | $db->query('SELECT game_id, game_name FROM game WHERE game_type=' . $db->escapeNumber(SmrGame::GAME_TYPE_DRAFT) . ' AND join_time < ' . $db->escapeNumber(SmrSession::getTime()) . ' AND end_time > ' . $db->escapeNumber(SmrSession::getTime()) . ' ORDER BY start_time DESC'); |
11 | 11 | while ($db->nextRecord()) { |
12 | 12 | $activeGames[] = array('game_name' => $db->getField('game_name'), |
13 | - 'game_id' => $db->getInt('game_id')); |
|
13 | + 'game_id' => $db->getInt('game_id')); |
|
14 | 14 | } |
15 | 15 | $template->assign('ActiveGames', $activeGames); |
16 | 16 |
@@ -30,8 +30,8 @@ |
||
30 | 30 | $leader = SmrPlayer::getPlayer($db->getInt('leader_account_id'), $player->getGameID()); |
31 | 31 | $pickedPlayer = SmrPlayer::getPlayer($db->getInt('picked_account_id'), $player->getGameID()); |
32 | 32 | $history[] = array('Leader' => $leader, |
33 | - 'Player' => $pickedPlayer, |
|
34 | - 'Time' => $db->getInt('time')); |
|
33 | + 'Player' => $pickedPlayer, |
|
34 | + 'Time' => $db->getInt('time')); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | $template->assign('History', $history); |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | |
59 | 59 | $totalShieldDamage = 0; |
60 | 60 | foreach ($attackers as $attacker) { |
61 | - $playerResults =& $attacker->shootPlanet($planet, false); |
|
62 | - $results['Attackers']['Traders'][$attacker->getAccountID()] =& $playerResults; |
|
61 | + $playerResults = & $attacker->shootPlanet($planet, false); |
|
62 | + $results['Attackers']['Traders'][$attacker->getAccountID()] = & $playerResults; |
|
63 | 63 | $results['Attackers']['TotalDamage'] += $playerResults['TotalDamage']; |
64 | 64 | foreach ($playerResults['Weapons'] as $weapon) { |
65 | 65 | if (isset($weapon['ActualDamage'])) { // Only set if the weapon hits |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $downgradeDamage = $results['Attackers']['TotalDamage'] - $totalShieldDamage; |
73 | 73 | $results['Attackers']['Downgrades'] = $planet->checkForDowngrade($downgradeDamage); |
74 | 74 | |
75 | -$results['Planet'] =& $planet->shootPlayers($attackers); |
|
75 | +$results['Planet'] = & $planet->shootPlayers($attackers); |
|
76 | 76 | |
77 | 77 | $account->log(LOG_TYPE_PLANET_BUSTING, 'Player attacks planet, the planet does ' . $results['Planet']['TotalDamage'] . ', their team does ' . $results['Attackers']['TotalDamage'] . ' and downgrades: ' . var_export($results['Attackers']['Downgrades'], true), $planet->getSectorID()); |
78 | 78 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | $db->switchDatabases($var['HistoryDatabase']); |
13 | 13 | $db->query('SELECT start_date, type, end_date, game_name, speed, game_id ' . |
14 | - 'FROM game WHERE game_id = ' . $db->escapeNumber($game_id)); |
|
14 | + 'FROM game WHERE game_id = ' . $db->escapeNumber($game_id)); |
|
15 | 15 | $db->requireRecord(); |
16 | 16 | $template->assign('GameName', $game_name); |
17 | 17 | $template->assign('Start', date(DATE_DATE_SHORT, $db->getInt('start_date'))); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $publishedGames = array(); |
18 | 18 | while ($db->nextRecord()) { |
19 | 19 | $publishedGames[] = array('game_name' => $db->getField('game_name'), |
20 | - 'game_id' => $db->getInt('game_id')); |
|
20 | + 'game_id' => $db->getInt('game_id')); |
|
21 | 21 | } |
22 | 22 | $template->assign('PublishedGames', $publishedGames); |
23 | 23 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $container['back'] = true; |
32 | 32 | |
33 | 33 | $pastEditions[] = array('title' => $db->getField('title'), |
34 | - 'online_since' => $db->getInt('online_since'), |
|
35 | - 'href' => SmrSession::getNewHREF($container)); |
|
34 | + 'online_since' => $db->getInt('online_since'), |
|
35 | + 'href' => SmrSession::getNewHREF($container)); |
|
36 | 36 | } |
37 | 37 | $template->assign('PastEditions', $pastEditions); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | // Send vote announcement to members of the player's council (war votes) |
40 | 40 | // or both races' councils (peace votes). |
41 | 41 | $councilMembers = Council::getRaceCouncil($player->getGameID(), |
42 | - $player->getRaceID()); |
|
42 | + $player->getRaceID()); |
|
43 | 43 | if ($type == 'PEACE') { |
44 | 44 | $otherCouncil = Council::getRaceCouncil($player->getGameID(), $race_id); |
45 | 45 | $councilMembers = array_merge($councilMembers, $otherCouncil); |
@@ -49,16 +49,16 @@ discard block |
||
49 | 49 | $color = ($type == 'PEACE' ? 'dgreen' : 'red'); |
50 | 50 | $type_fancy = "<span class=\"$color\">$type</span>"; |
51 | 51 | $message = $player->getLevelName() . " " . $player->getBBLink() |
52 | - . " has initiated a vote for $type_fancy with the " |
|
53 | - . Globals::getRaceName($race_id) |
|
54 | - . "! You have " . format_time(TIME_FOR_COUNCIL_VOTE) |
|
55 | - . " to cast your vote."; |
|
52 | + . " has initiated a vote for $type_fancy with the " |
|
53 | + . Globals::getRaceName($race_id) |
|
54 | + . "! You have " . format_time(TIME_FOR_COUNCIL_VOTE) |
|
55 | + . " to cast your vote."; |
|
56 | 56 | |
57 | 57 | foreach ($councilMembers as $accountID) { |
58 | 58 | // don't send to the player who started the vote |
59 | 59 | if ($player->getAccountID() != $accountID) { |
60 | 60 | SmrPlayer::sendMessageFromRace($player->getRaceID(), $player->getGameID(), |
61 | - $accountID, $message, $time); |
|
61 | + $accountID, $message, $time); |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 |
@@ -20,13 +20,13 @@ |
||
20 | 20 | const USER_SCORE_NAME = 'User Score'; |
21 | 21 | $hofTypes = array(DONATION_NAME=>true, USER_SCORE_NAME=>true); |
22 | 22 | while ($db->nextRecord()) { |
23 | - $hof =& $hofTypes; |
|
23 | + $hof = & $hofTypes; |
|
24 | 24 | $typeList = explode(':', $db->getField('type')); |
25 | 25 | foreach ($typeList as $type) { |
26 | 26 | if (!isset($hof[$type])) { |
27 | 27 | $hof[$type] = array(); |
28 | 28 | } |
29 | - $hof =& $hof[$type]; |
|
29 | + $hof = & $hof[$type]; |
|
30 | 30 | } |
31 | 31 | $hof = true; |
32 | 32 | } |