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 = []; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $template->assign('SelectedPortRaceID', $selectedPortRaceID); |
26 | 26 | |
27 | 27 | $sectorLocationIDs = array_pad(array_keys($editSector->getLocations()), |
28 | - UNI_GEN_LOCATION_SLOTS, 0); |
|
28 | + UNI_GEN_LOCATION_SLOTS, 0); |
|
29 | 29 | $template->assign('SectorLocationIDs', $sectorLocationIDs); |
30 | 30 | |
31 | 31 | if ($editSector->hasWarp()) { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | // Form to make planet changes |
39 | 39 | $container = Page::create('admin/unigen/universe_create_save_processing.php', |
40 | - 'admin/unigen/universe_create_sectors.php', $var); |
|
40 | + 'admin/unigen/universe_create_sectors.php', $var); |
|
41 | 41 | $template->assign('CreatePlanetsFormHREF', $container->href()); |
42 | 42 | |
43 | 43 | // HREF to cancel and return to the previous page |
@@ -98,7 +98,7 @@ |
||
98 | 98 | |
99 | 99 | // Form to make location changes |
100 | 100 | $container = Page::create('admin/unigen/universe_create_save_processing.php', |
101 | - 'admin/unigen/universe_create_sectors.php', $var); |
|
101 | + 'admin/unigen/universe_create_sectors.php', $var); |
|
102 | 102 | $template->assign('CreateLocationsFormHREF', $container->href()); |
103 | 103 | |
104 | 104 | // HREF to cancel and return to the previous page |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | } |
22 | 22 | $missingLocs = array_diff(array_keys(SmrLocation::getAllLocations()), |
23 | - array_keys($existingLocs)); |
|
23 | + array_keys($existingLocs)); |
|
24 | 24 | $missingLocNames = []; |
25 | 25 | foreach ($missingLocs as $locID) { |
26 | 26 | $missingLocNames[] = SmrLocation::getLocation($locID)->getName(); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | create_error('Join Date is not valid!'); |
22 | 22 | } |
23 | 23 | $start = empty(Smr\Request::get('game_start')) ? $join : |
24 | - DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
24 | + DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
25 | 25 | if ($start === false) { |
26 | 26 | create_error('Start Date is not valid!'); |
27 | 27 | } |
@@ -20,8 +20,7 @@ |
||
20 | 20 | if ($join === false) { |
21 | 21 | create_error('Join Date is not valid!'); |
22 | 22 | } |
23 | -$start = empty(Smr\Request::get('game_start')) ? $join : |
|
24 | - DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
23 | +$start = empty(Smr\Request::get('game_start')) ? $join : DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
25 | 24 | if ($start === false) { |
26 | 25 | create_error('Start Date is not valid!'); |
27 | 26 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | // Get the dates ("|" sets hr/min/sec to 0) |
6 | 6 | $join = DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_join')); |
7 | 7 | $start = empty(Smr\Request::get('game_start')) ? $join : |
8 | - DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
8 | + DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
9 | 9 | $end = DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_end')); |
10 | 10 | |
11 | 11 | $game = SmrGame::getGame($var['game_id']); |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | // Get the dates ("|" sets hr/min/sec to 0) |
6 | 6 | $join = DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_join')); |
7 | -$start = empty(Smr\Request::get('game_start')) ? $join : |
|
8 | - DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
7 | +$start = empty(Smr\Request::get('game_start')) ? $join : DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
9 | 8 | $end = DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_end')); |
10 | 9 | |
11 | 10 | $game = SmrGame::getGame($var['game_id']); |
@@ -11,4 +11,4 @@ |
||
11 | 11 | $msg = '<span class="green">SUCCESS: </span>Enabled game ' . $game->getDisplayName(); |
12 | 12 | |
13 | 13 | Page::create('skeleton.php', 'admin/enable_game.php', |
14 | - array('processing_msg' => $msg))->go(); |
|
14 | + array('processing_msg' => $msg))->go(); |
@@ -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 | { |
74 | 74 | return '-'; |
75 | 75 | } else { |