Updates to more strict type checking after some static analysis

This commit is contained in:
Alex Cabal 2019-01-17 21:26:48 -06:00
parent 152f86d616
commit c879dcab34
10 changed files with 50 additions and 34 deletions

View file

@ -2,6 +2,12 @@
class Logger{
public static function WriteGithubWebhookLogEntry(string $requestId, string $text){
$fp = fopen(GITHUB_WEBHOOK_LOG_FILE_PATH, 'a+');
if($fp === false){
self::WriteErrorLogEntry('Could not open log file: ' . GITHUB_WEBHOOK_LOG_FILE_PATH);
return;
}
fwrite($fp, gmdate('Y-m-d H:i:s') . "\t" . $requestId . "\t" . $text . "\n");
fclose($fp);
}