We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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 { |
@@ -51,5 +51,5 @@ |
||
51 | 51 | $template->assign('ProcessingHREF', $processingHREF); |
52 | 52 | |
53 | 53 | $template->assign('PermissionCategories', |
54 | - Smr\AdminPermissions::getPermissionsByCategory()); |
|
54 | + Smr\AdminPermissions::getPermissionsByCategory()); |
|
55 | 55 | } |
@@ -19,8 +19,8 @@ |
||
19 | 19 | 1 => array("pipe", "w") // stdout is a pipe that the child will write to |
20 | 20 | ); |
21 | 21 | $engine = proc_open(UCI_CHESS_ENGINE, $descriptorSpec, $pipes); |
22 | - $toEngine =& $pipes[0]; |
|
23 | - $fromEngine =& $pipes[1]; |
|
22 | + $toEngine = & $pipes[0]; |
|
23 | + $fromEngine = & $pipes[1]; |
|
24 | 24 | |
25 | 25 | function readFromEngine(bool $block = true) : void { |
26 | 26 | global $fromEngine; |