diff --git a/service-front/app/src/Actor/src/Form/CancelCode.php b/service-front/app/src/Actor/src/Form/CancelCode.php index c8d2c5308a..6e14dd54b8 100644 --- a/service-front/app/src/Actor/src/Form/CancelCode.php +++ b/service-front/app/src/Actor/src/Form/CancelCode.php @@ -10,7 +10,7 @@ class CancelCode extends AbstractForm implements InputFilterProviderInterface { - const FORM_NAME = 'cancel_code'; + public const FORM_NAME = 'cancel_code'; public function __construct(CsrfGuardInterface $csrfGuard) { diff --git a/service-front/app/src/Actor/src/Form/ChangeEmail.php b/service-front/app/src/Actor/src/Form/ChangeEmail.php index 9ae2bef598..6899b9814c 100644 --- a/service-front/app/src/Actor/src/Form/ChangeEmail.php +++ b/service-front/app/src/Actor/src/Form/ChangeEmail.php @@ -23,11 +23,12 @@ class ChangeEmail extends AbstractForm implements InputFilterProviderInterface /** * Error messages * - * @var array + * @var string[] */ protected array $messageTemplates = [ self::INVALID_PASSWORD => 'The password you entered is incorrect', - self::NEW_EMAIL_NOT_DIFFERENT => 'The new email address you entered is the same as your current email address. They must be different.', + self::NEW_EMAIL_NOT_DIFFERENT => 'The new email address you entered is the same as ' + . 'your current email address. They must be different.', ]; public function __construct(CsrfGuardInterface $guard) @@ -74,7 +75,8 @@ public function getInputFilterSpecification() 'break_chain_on_failure' => true, 'options' => [ 'messages' => [ - EmailAddressValidator::INVALID => 'Enter an email address in the correct format, like name@example.com', + EmailAddressValidator::INVALID => 'Enter an email address in the correct format, ' + . 'like name@example.com', ], ], ], diff --git a/service-front/app/src/Actor/src/Form/CreateAccount.php b/service-front/app/src/Actor/src/Form/CreateAccount.php index 92fb3d7a17..22848db208 100644 --- a/service-front/app/src/Actor/src/Form/CreateAccount.php +++ b/service-front/app/src/Actor/src/Form/CreateAccount.php @@ -17,14 +17,14 @@ class CreateAccount extends AbstractForm implements InputFilterProviderInterface { - const FORM_NAME = 'create_account'; + public const FORM_NAME = 'create_account'; public const NEW_EMAIL_CONFLICT = 'NewEmailConflict'; /** * Error messages * - * @var array + * @var string[] */ protected array $messageTemplates = [ self::NEW_EMAIL_CONFLICT => 'Sorry, there was a problem with that email address. Please try a different one', @@ -71,7 +71,8 @@ public function getInputFilterSpecification(): array 'break_chain_on_failure' => true, 'options' => [ 'messages' => [ - NotEmpty::IS_EMPTY => 'Enter an email address in the correct format, like name@example.com', + NotEmpty::IS_EMPTY => 'Enter an email address in the correct format, ' . + 'like name@example.com', ], ], ], diff --git a/service-front/app/src/Actor/src/Form/CreateShareCode.php b/service-front/app/src/Actor/src/Form/CreateShareCode.php index 71dc08c3ba..a0d634ec4d 100644 --- a/service-front/app/src/Actor/src/Form/CreateShareCode.php +++ b/service-front/app/src/Actor/src/Form/CreateShareCode.php @@ -12,7 +12,7 @@ class CreateShareCode extends AbstractForm implements InputFilterProviderInterface { - const FORM_NAME = 'lpa_sharecode_create'; + public const FORM_NAME = 'lpa_sharecode_create'; public function __construct(CsrfGuardInterface $csrfGuard) { diff --git a/service-front/app/src/Actor/src/Form/Login.php b/service-front/app/src/Actor/src/Form/Login.php index 7f6bd4bb37..99bc4dbc92 100644 --- a/service-front/app/src/Actor/src/Form/Login.php +++ b/service-front/app/src/Actor/src/Form/Login.php @@ -21,7 +21,7 @@ class Login extends AbstractForm implements InputFilterProviderInterface /** * Error messages * - * @var array + * @var string[] */ protected array $messageTemplates = [ self::NOT_SAME => 'Security validation failed. Please try again.', diff --git a/service-front/app/src/Actor/src/Form/LpaConfirm.php b/service-front/app/src/Actor/src/Form/LpaConfirm.php index d56556e65b..52858aa492 100644 --- a/service-front/app/src/Actor/src/Form/LpaConfirm.php +++ b/service-front/app/src/Actor/src/Form/LpaConfirm.php @@ -9,7 +9,7 @@ class LpaConfirm extends AbstractForm { - const FORM_NAME = 'lpa_add'; + public const FORM_NAME = 'lpa_add'; public function __construct(CsrfGuardInterface $csrfGuard) { diff --git a/service-front/app/src/Actor/src/Form/PasswordChange.php b/service-front/app/src/Actor/src/Form/PasswordChange.php index 71dbd2280f..6dbdcff35a 100644 --- a/service-front/app/src/Actor/src/Form/PasswordChange.php +++ b/service-front/app/src/Actor/src/Form/PasswordChange.php @@ -24,7 +24,7 @@ class PasswordChange extends AbstractForm implements InputFilterProviderInterfac /** * Error messages * - * @var array + * @var string[] */ protected array $messageTemplates = [ self::INVALID_PASSWORD => 'Current password is incorrect', diff --git a/service-front/app/src/Actor/src/Form/PasswordReset.php b/service-front/app/src/Actor/src/Form/PasswordReset.php index 3a5f1c12f6..39d03c7f31 100644 --- a/service-front/app/src/Actor/src/Form/PasswordReset.php +++ b/service-front/app/src/Actor/src/Form/PasswordReset.php @@ -12,7 +12,7 @@ class PasswordReset extends AbstractForm implements InputFilterProviderInterface { - const FORM_NAME = 'password-reset'; + public const FORM_NAME = 'password-reset'; public function __construct(CsrfGuardInterface $guard) { diff --git a/service-front/app/src/Actor/src/Form/Triage.php b/service-front/app/src/Actor/src/Form/Triage.php index 4a9e33bdf9..b1e986a79d 100644 --- a/service-front/app/src/Actor/src/Form/Triage.php +++ b/service-front/app/src/Actor/src/Form/Triage.php @@ -11,7 +11,7 @@ class Triage extends AbstractForm implements InputFilterProviderInterface { - const FORM_NAME = 'triage'; + public const FORM_NAME = 'triage'; public function __construct(CsrfGuardInterface $csrfGuard) {