Fix WordPress.WP.I18n.MissingTranslatorsComment errors

[MAILPOET-4524]
This commit is contained in:
David Remer
2022-08-04 12:22:42 +03:00
committed by Veljko V
parent b05e6d414c
commit 218de96024
51 changed files with 108 additions and 11 deletions

View File

@@ -75,6 +75,7 @@ class UpdateWorkflowController {
private function checkWorkflowStatus(string $status): void {
if (!in_array($status, [Workflow::STATUS_ACTIVE, Workflow::STATUS_INACTIVE, Workflow::STATUS_DRAFT], true)) {
// translators: %s is the status.
throw UnexpectedValueException::create()->withMessage(__(sprintf('Invalid status: %s', $status), 'mailpoet'));
}
}