Eye4web/Eye4webZfcUserForgotPassword

View on GitHub

Showing 5 of 7 total issues

Method __construct has 32 lines of code (exceeds 25 allowed). Consider refactoring.
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

        public function getInputFilterSpecification()
        {
            return [
                [
                    'name' => 'new_password',

      Method changePasswordAction has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      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

                RequestForm $requestForm,
                ChangePasswordForm $changePasswordForm,
                UserMapperInterface $userMapper,
                TokenMapperInterface $tokenMapper,
                MailService $mailService
        Severity: Minor
        Found in src/Eye4web/ZfcUser/ForgotPassword/Service/ForgotPasswordService.php - About 35 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $viewModel;
            Severity
            Category
            Status
            Source
            Language