1
0
Fork 0
mirror of synced 2024-09-09 14:21:24 +12:00

Class constant should be uppercase

This commit is contained in:
Khushboo Verma 2023-12-13 03:02:21 +05:30
parent 16addeba10
commit fb0cd95b0a

View file

@ -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);
}