Code Duplication    Length = 15-17 lines in 2 locations

Controller/RequestPasswordResetController.php 1 location

@@ 37-51 (lines=15) @@
34
    /** @var FlashBagInterface */
35
    private $flashBag;
36
37
    public function __construct(
38
        EngineInterface $templating,
39
        FormFactoryInterface $formFactory,
40
        RequestPasswordResetHandler $requestPasswordResetHandler,
41
        Router $router,
42
        Translator $translator,
43
        FlashBagInterface $flashBag
44
    ) {
45
        $this->templating = $templating;
46
        $this->formFactory = $formFactory;
47
        $this->requestPasswordResetHandler = $requestPasswordResetHandler;
48
        $this->router = $router;
49
        $this->translator = $translator;
50
        $this->flashBag = $flashBag;
51
    }
52
53
    public function requestAction(Request $request): Response
54
    {

Controller/PasswordResetController.php 1 location

@@ 43-59 (lines=17) @@
40
    /** @var FlashBagInterface */
41
    private $flashBag;
42
43
    public function __construct(
44
        BaseUserRepositoryCollection $userRepositoryCollection,
45
        ResetPasswordHandler $resetPasswordHandler,
46
        Router $router,
47
        FormFactoryInterface $formFactory,
48
        EngineInterface $templating,
49
        Translator $translator,
50
        FlashBagInterface $flashBag
51
    ) {
52
        $this->userRepositoryCollection = $userRepositoryCollection;
53
        $this->resetPasswordHandler = $resetPasswordHandler;
54
        $this->router = $router;
55
        $this->formFactory = $formFactory;
56
        $this->templating = $templating;
57
        $this->translator = $translator;
58
        $this->flashBag = $flashBag;
59
    }
60
61
    /**
62
     * @param Request $request