Reduce the count of constants

[MAILPOET-4639]
This commit is contained in:
Jan Lysý
2023-01-10 19:50:58 +01:00
committed by Aschepikov
parent da88250fe1
commit 579de1cc86
8 changed files with 18 additions and 21 deletions

View File

@@ -96,7 +96,7 @@ class AuthorizedEmailsController {
}
$response = $this->bridge->createAuthorizedEmailAddress($email);
if ($response['status'] === API::AUTHORIZED_EMAIL_STATUS_ERROR) {
if ($response['status'] === API::RESPONSE_STATUS_ERROR) {
throw new \InvalidArgumentException($response['message']);
}