We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -33,7 +33,7 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | // If the Calculate Turn Cost button was pressed |
36 | -if (Request::get('action', '') == 'Calculate Turn Cost') { |
|
36 | +if (Request::get('action', '') == 'Calculate Turn Cost') { |
|
37 | 37 | $container = create_container('skeleton.php', 'sector_jump_calculate.php'); |
38 | 38 | $container['target'] = $target; |
39 | 39 | forward($container); |
@@ -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']); |
@@ -1,22 +1,21 @@ |
||
1 | 1 | <?php declare(strict_types=1); |
2 | 2 | |
3 | 3 | //first create the game |
4 | -$db->query('SELECT game_id FROM game WHERE game_name='.$db->escapeString(Request::get('game_name')).' LIMIT 1'); |
|
4 | +$db->query('SELECT game_id FROM game WHERE game_name=' . $db->escapeString(Request::get('game_name')) . ' LIMIT 1'); |
|
5 | 5 | if ($db->nextRecord()) { |
6 | 6 | create_error('That game name is already taken.'); |
7 | 7 | } |
8 | 8 | |
9 | 9 | $db->query('SELECT game_id FROM game ORDER BY game_id DESC LIMIT 1'); |
10 | 10 | if ($db->nextRecord()) { |
11 | - $newID = $db->getInt('game_id')+1; |
|
11 | + $newID = $db->getInt('game_id') + 1; |
|
12 | 12 | } else { |
13 | 13 | $newID = 1; |
14 | 14 | } |
15 | 15 | |
16 | 16 | // Get the dates ("|" sets hr/min/sec to 0) |
17 | 17 | $join = DateTime::createFromFormat('d/m/Y|', Request::get('game_join')); |
18 | -$start = empty(Request::get('game_start')) ? $join : |
|
19 | - DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
18 | +$start = empty(Request::get('game_start')) ? $join : DateTime::createFromFormat('d/m/Y|', Request::get('game_start')); |
|
20 | 19 | $end = DateTime::createFromFormat('d/m/Y|', Request::get('game_end')); |
21 | 20 | |
22 | 21 | $game = SmrGame::createGame($newID); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $menuItems[] = array('Link'=>Globals::getPlanetListHREF($alliance_id), 'Text'=>'Defense'); |
13 | 13 | $menuItems[] = array('Link'=>Globals::getPlanetListFinancialHREF($alliance_id), 'Text'=>'Financial'); |
14 | 14 | // make the selected index bold |
15 | - $boldItem =& $menuItems[$selected_index]['Text']; |
|
15 | + $boldItem = & $menuItems[$selected_index]['Text']; |
|
16 | 16 | $boldItem = '<span class="bold">' . $boldItem . '</span>'; |
17 | 17 | $template->assign('MenuItems', $menuItems); |
18 | 18 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $menuItems[] = ['Link' => SmrSession::getNewHREF($container), |
108 | 108 | 'Text' => 'Game News']; |
109 | 109 | // make the selected index bold |
110 | - $boldItem =& $menuItems[$selected_index]['Text']; |
|
110 | + $boldItem = & $menuItems[$selected_index]['Text']; |
|
111 | 111 | $boldItem = '<b>' . $boldItem . '</b>'; |
112 | 112 | $template->assign('MenuItems', $menuItems); |
113 | 113 | } |