Skip to content

Commit

Permalink
manual code fixing src/Actor
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbagg1 committed Nov 7, 2023
1 parent ba0f433 commit 8866ded
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion service-front/app/src/Actor/src/Form/CancelCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
8 changes: 5 additions & 3 deletions service-front/app/src/Actor/src/Form/ChangeEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 [email protected]',
EmailAddressValidator::INVALID => 'Enter an email address in the correct format, '
. 'like [email protected]',
],
],
],
Expand Down
7 changes: 4 additions & 3 deletions service-front/app/src/Actor/src/Form/CreateAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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 [email protected]',
NotEmpty::IS_EMPTY => 'Enter an email address in the correct format, ' .
'like [email protected]',
],
],
],
Expand Down
2 changes: 1 addition & 1 deletion service-front/app/src/Actor/src/Form/CreateShareCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion service-front/app/src/Actor/src/Form/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
2 changes: 1 addition & 1 deletion service-front/app/src/Actor/src/Form/LpaConfirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class LpaConfirm extends AbstractForm
{
const FORM_NAME = 'lpa_add';
public const FORM_NAME = 'lpa_add';

public function __construct(CsrfGuardInterface $csrfGuard)
{
Expand Down
2 changes: 1 addition & 1 deletion service-front/app/src/Actor/src/Form/PasswordChange.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion service-front/app/src/Actor/src/Form/PasswordReset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion service-front/app/src/Actor/src/Form/Triage.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class Triage extends AbstractForm implements InputFilterProviderInterface
{
const FORM_NAME = 'triage';
public const FORM_NAME = 'triage';

public function __construct(CsrfGuardInterface $csrfGuard)
{
Expand Down

0 comments on commit 8866ded

Please sign in to comment.