Skip to content

Commit

Permalink
phpcbf app/src/Actor
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbagg1 committed Nov 2, 2023
1 parent ab21061 commit 0001aa6
Show file tree
Hide file tree
Showing 72 changed files with 908 additions and 614 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(CsrfGuardInterface $csrfGuard)
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(CsrfGuardInterface $csrfGuard)
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(CsrfGuardInterface $csrfGuard)
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
8 changes: 5 additions & 3 deletions service-front/app/src/Actor/src/Form/AddLpaTriage.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public function __construct(CsrfGuardInterface $csrfGuard)
{
parent::__construct(self::FORM_NAME, $csrfGuard);

$this->add([
$this->add(
[
'name' => 'activation_key_triage',
'type' => 'Radio',
'options' => [
Expand All @@ -27,11 +28,12 @@ public function __construct(CsrfGuardInterface $csrfGuard)
'Expired' => 'Expired',
],
],
]);
]
);
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
20 changes: 13 additions & 7 deletions service-front/app/src/Actor/src/Form/CancelCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,28 @@ public function __construct(CsrfGuardInterface $csrfGuard)
{
parent::__construct(self::FORM_NAME, $csrfGuard);

$this->add([
$this->add(
[

Check warning on line 20 in service-front/app/src/Actor/src/Form/CancelCode.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Actor/src/Form/CancelCode.php#L19-L20

Added lines #L19 - L20 were not covered by tests
'name' => 'viewer_code',
'type' => 'Hidden',
]);
$this->add([
]
);
$this->add(
[

Check warning on line 26 in service-front/app/src/Actor/src/Form/CancelCode.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Actor/src/Form/CancelCode.php#L23-L26

Added lines #L23 - L26 were not covered by tests
'name' => 'organisation',
'type' => 'Hidden',
]);
$this->add([
]
);
$this->add(
[

Check warning on line 32 in service-front/app/src/Actor/src/Form/CancelCode.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Actor/src/Form/CancelCode.php#L29-L32

Added lines #L29 - L32 were not covered by tests
'name' => 'lpa_token',
'type' => 'Hidden',
]);
]
);

Check warning on line 36 in service-front/app/src/Actor/src/Form/CancelCode.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Actor/src/Form/CancelCode.php#L35-L36

Added lines #L35 - L36 were not covered by tests
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
6 changes: 4 additions & 2 deletions service-front/app/src/Actor/src/Form/ChangeEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ public function __construct(CsrfGuardInterface $guard)

$this->add(new Email('new_email_address'));

$this->add([
$this->add(
[
'name' => 'current_password',
'type' => 'Password',
]);
]
);
}

/**
Expand Down
14 changes: 9 additions & 5 deletions service-front/app/src/Actor/src/Form/CreateAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,24 @@ public function __construct(CsrfGuardInterface $csrfGuard)

$this->add(new Email('email'));

$this->add([
$this->add(
[
'name' => 'show_hide_password',
'type' => 'Password',
]);
]
);

$this->add([
$this->add(
[
'name' => 'terms',
'type' => 'Checkbox',
'value' => 1,
]);
]
);
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
14 changes: 9 additions & 5 deletions service-front/app/src/Actor/src/Form/CreateShareCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,22 @@ public function __construct(CsrfGuardInterface $csrfGuard)
{
parent::__construct(self::FORM_NAME, $csrfGuard);

$this->add([
$this->add(
[

Check warning on line 22 in service-front/app/src/Actor/src/Form/CreateShareCode.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Actor/src/Form/CreateShareCode.php#L21-L22

Added lines #L21 - L22 were not covered by tests
'name' => 'org_name',
'type' => 'Text',
]);
$this->add([
]
);
$this->add(
[

Check warning on line 28 in service-front/app/src/Actor/src/Form/CreateShareCode.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Actor/src/Form/CreateShareCode.php#L25-L28

Added lines #L25 - L28 were not covered by tests
'name' => 'lpa_token',
'type' => 'Hidden',
]);
]
);

Check warning on line 32 in service-front/app/src/Actor/src/Form/CreateShareCode.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Actor/src/Form/CreateShareCode.php#L31-L32

Added lines #L31 - L32 were not covered by tests
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
8 changes: 5 additions & 3 deletions service-front/app/src/Actor/src/Form/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ public function __construct(CsrfGuardInterface $csrfGuard)

$this->add(new Email('email'));

$this->add([
$this->add(
[
'name' => 'password',
'type' => 'Password',
]);
]
);
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
12 changes: 8 additions & 4 deletions service-front/app/src/Actor/src/Form/PasswordChange.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,19 @@ public function __construct(CsrfGuardInterface $guard)
{
parent::__construct(self::FORM_NAME, $guard);

$this->add([
$this->add(
[
'name' => 'current_password',
'type' => 'Password',
]);
]
);

$this->add([
$this->add(
[
'name' => 'new_password',
'type' => 'Password',
]);
]
);
}

/**
Expand Down
8 changes: 5 additions & 3 deletions service-front/app/src/Actor/src/Form/PasswordReset.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ public function __construct(CsrfGuardInterface $guard)
{
parent::__construct(self::FORM_NAME, $guard);

$this->add([
$this->add(
[
'name' => 'password',
'type' => 'Password',
]);
]
);
}

/**
* Should return an array specification compatible with
* {@link \Laminas\InputFilter\Factory::createInputFilter()}.
*
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(CsrfGuardInterface $guard)
* Should return an array specification compatible with
* {@link \Laminas\InputFilter\Factory::createInputFilter()}.
*
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
8 changes: 5 additions & 3 deletions service-front/app/src/Actor/src/Form/RemoveLpa.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ public function __construct(CsrfGuardInterface $csrfGuard)
{
parent::__construct(self::FORM_NAME, $csrfGuard);

$this->add([
$this->add(
[
'name' => 'actor_lpa_token',
'type' => 'Hidden',
]);
]
);
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(CsrfGuardInterface $csrfGuard)
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(CsrfGuardInterface $csrfGuard)
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,25 @@ public function __construct(CsrfGuardInterface $csrfGuard)
{
parent::__construct(self::FORM_NAME, $csrfGuard);

$this->add([
$this->add(
[
'name' => 'attorney_first_names',
'type' => 'Text',
]);
]
);

$this->add([
$this->add(
[
'name' => 'attorney_last_name',
'type' => 'Text',
]);
]
);

$this->add(new Date('attorney_dob'));
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,25 @@ public function __construct(CsrfGuardInterface $csrfGuard)
{
parent::__construct(self::FORM_NAME, $csrfGuard);

$this->add([
$this->add(
[
'name' => 'donor_first_names',
'type' => 'Text',
]);
]
);

$this->add([
$this->add(
[
'name' => 'donor_last_name',
'type' => 'Text',
]);
]
);

$this->add(new Date('donor_dob'));
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(CsrfGuardInterface $csrfGuard)
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,23 @@ public function __construct(CsrfGuardInterface $csrfGuard)
{
parent::__construct(self::FORM_NAME, $csrfGuard);

$this->add([
$this->add(
[
'name' => 'first_names',
'type' => 'Text',
]);
]
);

$this->add([
$this->add(
[
'name' => 'last_name',
'type' => 'Text',
]);
]
);
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(CsrfGuardInterface $csrfGuard)
}

/**
* @return array
* @return array
* @codeCoverageIgnore
*/
public function getInputFilterSpecification(): array
Expand Down
Loading

0 comments on commit 0001aa6

Please sign in to comment.