Showing 5 of 7 total issues
Method __construct
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct()
{
parent::__construct('change-password');
$this->setAttribute('method', 'post');
Method getInputFilterSpecification
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputFilterSpecification()
{
return [
[
'name' => 'new_password',
Method changePasswordAction
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function changePasswordAction()
{
$form = $this->changePasswordForm;
$forgotPasswordService = $this->forgotPasswordService;
$token = $this->params('token');
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
RequestForm $requestForm,
ChangePasswordForm $changePasswordForm,
UserMapperInterface $userMapper,
TokenMapperInterface $tokenMapper,
MailService $mailService
Avoid too many return
statements within this method. Open
Open
return $viewModel;