thomas-claireau/PHP-P6-Openclassrooms

View on GitHub
src/Controller/Security/SecurityController.php

Summary

Maintainability
A
1 hr
Test Coverage

Method forgotPassword has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function forgotPassword(Request $request)
    {
        $user = new User();
        $form = $this->createForm(ForgotPasswordUserType::class, $user);
        $form->handleRequest($request);
Severity: Minor
Found in src/Controller/Security/SecurityController.php - About 1 hr to fix

    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function __construct(UserRepository $repository, ObjectManager $em, UserPasswordEncoderInterface $encoder, \Swift_Mailer $mailer, Environment $renderer)
    Severity: Minor
    Found in src/Controller/Security/SecurityController.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status