From fb0cd95b0a485b6f2b6a5da86b1e01d4f505612e Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Wed, 13 Dec 2023 03:02:21 +0530 Subject: [PATCH] Class constant should be uppercase --- src/Appwrite/Platform/Workers/Webhooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Webhooks.php b/src/Appwrite/Platform/Workers/Webhooks.php index 19db6bd0e0..2dc28c1227 100644 --- a/src/Appwrite/Platform/Workers/Webhooks.php +++ b/src/Appwrite/Platform/Workers/Webhooks.php @@ -12,7 +12,7 @@ use Utopia\Queue\Message; class Webhooks extends Action { private array $errors = []; - private const failedAttemptsCount = 10; + private const FAILEDATTEMPTSCOUNT = 10; public static function getName(): string { @@ -128,7 +128,7 @@ class Webhooks extends Action $webhook->setAttribute('logs', $lastErrorLogs); // $statusCode = curl_getinfo($ch, CURLINFO_RESPONSE_CODE); - if ($errorCount >= self::failedAttemptsCount) { + if ($errorCount >= self::FAILEDATTEMPTSCOUNT) { $webhook->setAttribute('enabled', false); }