We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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); |
@@ -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 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | // Don't lose more exp than you have |
| 48 | 48 | $lost_xp = min($player->getExperience(), |
| 49 | - IRound(SmrPort::getBaseExperience($amount, $good_distance))); |
|
| 49 | + IRound(SmrPort::getBaseExperience($amount, $good_distance))); |
|
| 50 | 50 | $player->decreaseExperience($lost_xp); |
| 51 | 51 | $player->increaseHOF($lost_xp, array('Trade', 'Experience', 'Jettisoned'), HOF_PUBLIC); |
| 52 | 52 | |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | //heres the AIs cards |
| 97 | 97 | $i = 1; |
| 98 | 98 | if ($dealerHand->hasBlackjack() || |
| 99 | - ($playerHand->getValue() > 21 && $dealerHand->getValue() <= 21)) { |
|
| 99 | + ($playerHand->getValue() > 21 && $dealerHand->getValue() <= 21)) { |
|
| 100 | 100 | $message .= ('<h1 class="red center">Bank Wins</h1>'); |
| 101 | 101 | } |
| 102 | 102 | $message .= ('<div class="center">Bank\'s Cards are</div><br /><table class="center"><tr>'); |
@@ -19,8 +19,8 @@ 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() : |
|
| 23 | + $otherPlayer->getDisplayName(), |
|
| 24 | 24 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
| 25 | 25 | 'Game ID' => $gameId, |
| 26 | 26 | ); |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | $shareTo[$toAccountId] = array( |
| 41 | 41 | 'Player ID' => $otherPlayer == null ? '-' : $otherPlayer->getPlayerID(), |
| 42 | 42 | 'Player Name' => $otherPlayer == null ? |
| 43 | - '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : |
|
| 44 | - $otherPlayer->getDisplayName(), |
|
| 43 | + '<b>Account</b>: ' . SmrAccount::getAccount($toAccountId)->getHofDisplayName() : |
|
| 44 | + $otherPlayer->getDisplayName(), |
|
| 45 | 45 | 'All Games' => $gameId == 0 ? '<span class="green">YES</span>' : '<span class="red">NO</span>', |
| 46 | 46 | 'Game ID' => $gameId, |
| 47 | 47 | ); |