We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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']); |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | * Can be used to convert any type of notice into an exception. |
| 120 | 120 | */ |
| 121 | 121 | function exception_error_handler($errno, $errstr, $errfile, $errline) : bool { |
| 122 | - if (!(error_reporting() & $errno)) { |
|
| 122 | + if (!(error_reporting()&$errno)) { |
|
| 123 | 123 | return false; // error is suppressed |
| 124 | 124 | } |
| 125 | 125 | throw new ErrorException($errstr, $errno, E_ERROR, $errfile, $errline); |
@@ -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; |