Update framework standards

This commit is contained in:
Alex Cabal 2024-09-09 20:34:30 -05:00
parent 232e056299
commit 09a91a998e
17 changed files with 282 additions and 98 deletions

View file

@ -12,7 +12,7 @@ try{
$log = new Log(GITHUB_WEBHOOK_LOG_FILE_PATH);
$lastPushHashFlag = '';
HttpInput::ValidateRequestMethod([HttpMethod::Post]);
HttpInput::ValidateRequestMethod([Enums\HttpMethod::Post]);
$log->Write('Received GitHub webhook.');

View file

@ -12,7 +12,7 @@ try{
$log->Write('Received Postmark webhook.');
HttpInput::ValidateRequestMethod([HttpMethod::Post]);
HttpInput::ValidateRequestMethod([Enums\HttpMethod::Post]);
$apiKey = get_cfg_var('se.secrets.postmark.api_key');

View file

@ -9,7 +9,7 @@ use function Safe\json_decode;
try{
$log = new Log(ZOHO_WEBHOOK_LOG_FILE_PATH);
HttpInput::ValidateRequestMethod([HttpMethod::Post]);
HttpInput::ValidateRequestMethod([Enums\HttpMethod::Post]);
$log->Write('Received Zoho webhook.');