We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | $db->query('SELECT game_id, game_name FROM game WHERE 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 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | create_error('Join Date is not valid!'); |
| 20 | 20 | } |
| 21 | 21 | $start = empty(Request::get('game_start')) ? $join : |
| 22 | - DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
| 22 | + DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
| 23 | 23 | if ($start === false) { |
| 24 | 24 | create_error('Start Date is not valid!'); |
| 25 | 25 | } |
@@ -18,8 +18,7 @@ |
||
| 18 | 18 | if ($join === false) { |
| 19 | 19 | create_error('Join Date is not valid!'); |
| 20 | 20 | } |
| 21 | -$start = empty(Request::get('game_start')) ? $join : |
|
| 22 | - DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
| 21 | +$start = empty(Request::get('game_start')) ? $join : DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
| 23 | 22 | if ($start === false) { |
| 24 | 23 | create_error('Start Date is not valid!'); |
| 25 | 24 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | // Form to make location changes |
| 89 | 89 | $container = create_container('1.6/universe_create_save_processing.php', |
| 90 | - '1.6/universe_create_sectors.php', $var); |
|
| 90 | + '1.6/universe_create_sectors.php', $var); |
|
| 91 | 91 | $template->assign('CreateLocationsFormHREF', SmrSession::getNewHREF($container)); |
| 92 | 92 | |
| 93 | 93 | // HREF to cancel and return to the previous page |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | // Get the dates ("|" sets hr/min/sec to 0) |
| 4 | 4 | $join = DateTime::createFromFormat('d/m/Y|', Request::get('game_join')); |
| 5 | 5 | $start = empty(Request::get('game_start')) ? $join : |
| 6 | - DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
| 6 | + DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
| 7 | 7 | $end = DateTime::createFromFormat('d/m/Y|', Request::get('game_end')); |
| 8 | 8 | |
| 9 | 9 | $game = SmrGame::getGame($var['game_id']); |
@@ -2,8 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | // Get the dates ("|" sets hr/min/sec to 0) |
| 4 | 4 | $join = DateTime::createFromFormat('d/m/Y|', Request::get('game_join')); |
| 5 | -$start = empty(Request::get('game_start')) ? $join : |
|
| 6 | - DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
| 5 | +$start = empty(Request::get('game_start')) ? $join : DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
| 7 | 6 | $end = DateTime::createFromFormat('d/m/Y|', Request::get('game_end')); |
| 8 | 7 | |
| 9 | 8 | $game = SmrGame::getGame($var['game_id']); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | // Form to make planet changes |
| 31 | 31 | $container = create_container('1.6/universe_create_save_processing.php', |
| 32 | - '1.6/universe_create_sectors.php', $var); |
|
| 32 | + '1.6/universe_create_sectors.php', $var); |
|
| 33 | 33 | $template->assign('CreatePlanetsFormHREF', SmrSession::getNewHREF($container)); |
| 34 | 34 | |
| 35 | 35 | // 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(); |
@@ -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()) { |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | // Set the body of the e-mail |
| 37 | 37 | set_mail_body($mail, $var['newsletter_html'], $var['newsletter_text'], |
| 38 | - Request::get('salutation')); |
|
| 38 | + Request::get('salutation')); |
|
| 39 | 39 | |
| 40 | 40 | if (Request::get('to_email') == '*') { |
| 41 | 41 | // Send the newsletter to all players. |
@@ -7,4 +7,4 @@ |
||
| 7 | 7 | $msg = '<span class="green">SUCCESS: </span>Enabled game ' . $game->getDisplayName(); |
| 8 | 8 | |
| 9 | 9 | forward(create_container('skeleton.php', 'enable_game.php', |
| 10 | - array('processing_msg' => $msg))); |
|
| 10 | + array('processing_msg' => $msg))); |
|