AI review fixes

This commit is contained in:
Matej Bačo committed 2025-09-16 12:34:06 +02:00
1 parent 7b46197ffe
commit 4a3a74d284
2 files changed
+2 -2

No files matched your search

@@ -76,7 +76,7 @@ class Update extends Action
throw new Exception(Exception::RULE_NOT_FOUND);
}
if ($rule->getAttribute('verification') === true) {
if ($rule->getAttribute('status', '') !== RULE_STATUS_VERIFICATION_FAILED) {
return $response->dynamic($rule, Response::MODEL_PROXY_RULE);
}
+1 -1
View File
@@ -85,7 +85,7 @@ class Rule extends Model
->addRule('status', [
'type' => self::TYPE_STRING,
'description' => 'Domain verification status. Possible values are "' . RULE_STATUS_VERIFICATION_FAILED . '", "' . RULE_STATUS_GENERATING_CERTIFICATE . '", "' . RULE_STATUS_SUCCESSFUL . '" and "' . RULE_STATUS_GENERATION_FAILED . '"',
'default' => false,
'default' => '',
'example' => RULE_STATUS_SUCCESSFUL,
])
->addRule('verificationLogs', [