We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -101,7 +101,7 @@ |
||
101 | 101 | $ship = new AbstractSmrShip($this->player); |
102 | 102 | $this->expectException(\Exception::class); |
103 | 103 | $this->expectExceptionMessage('Ship does not have the supported hardware!'); |
104 | - $ship->setIllusion(SHIP_TYPE_THIEF, 12, 13);; |
|
104 | + $ship->setIllusion(SHIP_TYPE_THIEF, 12, 13); ; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | public function test_hardware() : void { |
@@ -19,8 +19,8 @@ discard block |
||
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; |
@@ -84,5 +84,5 @@ discard block |
||
84 | 84 | function debug($message, $debugObject = null) { |
85 | 85 | echo date('Y-m-d H:i:s - ') . $message . ($debugObject !== null ? EOL . var_export($debugObject, true) : '') . EOL; |
86 | 86 | $db = Smr\Database::getInstance(); |
87 | - $db->write('INSERT INTO npc_logs (script_id, npc_id, time, message, debug_info, var) VALUES (' . (defined('SCRIPT_ID') ? SCRIPT_ID : 0) . ', 0, NOW(),' . $db->escapeString($message) . ',' . $db->escapeString(var_export($debugObject,true)) . ',' . $db->escapeString('') . ')'); |
|
87 | + $db->write('INSERT INTO npc_logs (script_id, npc_id, time, message, debug_info, var) VALUES (' . (defined('SCRIPT_ID') ? SCRIPT_ID : 0) . ', 0, NOW(),' . $db->escapeString($message) . ',' . $db->escapeString(var_export($debugObject, true)) . ',' . $db->escapeString('') . ')'); |
|
88 | 88 | } |