We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -1,10 +1,10 @@ |
||
| 1 | -<?php if(isset($Preview)) { ?><table class="standard"><tr><td><?php echo bbifyMessage($Preview); ?></td></tr></table><?php } ?> |
|
| 1 | +<?php if (isset($Preview)) { ?><table class="standard"><tr><td><?php echo bbifyMessage($Preview); ?></td></tr></table><?php } ?> |
|
| 2 | 2 | <form name="MessageSendForm" method="POST" action="<?php echo $MessageSendFormHref; ?>"> |
| 3 | 3 | <p> |
| 4 | 4 | <b>From: </b><?php echo $ThisPlayer->getDisplayName(); ?><br /> |
| 5 | - <b>To: </b><?php if(isset($Receiver) && is_object($Receiver)) { echo $Receiver->getDisplayName(); } else { echo $Receiver; } ?> |
|
| 5 | + <b>To: </b><?php if (isset($Receiver) && is_object($Receiver)) { echo $Receiver->getDisplayName(); } else { echo $Receiver; } ?> |
|
| 6 | 6 | </p> |
| 7 | - <textarea spellcheck="true" name="message" required class="InputFields"><?php if(isset($Preview)) { echo $Preview; } ?></textarea><br /> |
|
| 7 | + <textarea spellcheck="true" name="message" required class="InputFields"><?php if (isset($Preview)) { echo $Preview; } ?></textarea><br /> |
|
| 8 | 8 | <br /> |
| 9 | 9 | <input type="submit" name="action" value="Send message" class="InputFields" /> <input type="submit" name="action" value="Preview message" class="InputFields" /> |
| 10 | 10 | </form> |
@@ -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); |