plugins: style sweep

This commit is contained in:
Franco Fichtner
2020-08-20 07:05:58 +02:00
parent e93e79eee2
commit 8daf9a122c
2 changed files with 4 additions and 4 deletions
@@ -1592,9 +1592,9 @@ class updatedns
if ($http_code == 200) {
$status = 'Dynamic DNS: (Success) IP Address Updated Successfully!';
$successful_update = true;
} else if ($http_code == 401) {
} elseif ($http_code == 401) {
$status = 'Dynamic DNS: (Error) Authentication info not sent or invalid';
}else if ($http_code == 404) {
} elseif ($http_code == 404) {
$status = 'Dynamic DNS: (Error) Resource not found';
} else {
$status = "Dynamic DNS: (Error) Repsonse not handled check the following: {$data}";
@@ -227,8 +227,8 @@ function cert_action_validator($opt_cert_id)
if ($options["a"] == "automation") {
// Check if the cert was successul issued
if (!empty((string)$certObj->statusCode) and (string)$certObj->statusCode == '200') {
log_error("AcmeClient: ready to run automation for certificate: " . (string)$certObj->name);
$restart_certs[] = $certObj;
log_error("AcmeClient: ready to run automation for certificate: " . (string)$certObj->name);
$restart_certs[] = $certObj;
} else {
log_error("AcmeClient: failed to run automation, certificate status not OK: " . (string)$certObj->name);
return(1);