Code Duplication    Length = 17-19 lines in 2 locations

src/Surfnet/StepupRa/RaBundle/Security/Authentication/Handler/InitiateSamlAuthenticationHandler.php 1 location

@@ 72-88 (lines=17) @@
69
     */
70
    private $logger;
71
72
    public function __construct(
73
        TokenStorageInterface $tokenStorageInterface,
74
        AuthenticatedSessionStateHandler $authenticatedSession,
75
        SamlAuthenticationStateHandler $samlAuthenticationStateHandler,
76
        SamlInteractionProvider $samlInteractionProvider,
77
        RouterInterface $router,
78
        SamlAuthenticationLogger $authenticationLogger,
79
        LoggerInterface $logger
80
    ) {
81
        $this->tokenStorage                   = $tokenStorageInterface;
82
        $this->authenticatedSession           = $authenticatedSession;
83
        $this->samlAuthenticationStateHandler = $samlAuthenticationStateHandler;
84
        $this->samlInteractionProvider        = $samlInteractionProvider;
85
        $this->router                         = $router;
86
        $this->authenticationLogger           = $authenticationLogger;
87
        $this->logger                         = $logger;
88
    }
89
90
    public function process(GetResponseEvent $event)
91
    {

src/Surfnet/StepupRa/RaBundle/Security/Authentication/Handler/ProcessSamlAuthenticationHandler.php 1 location

@@ 90-108 (lines=19) @@
87
     */
88
    private $templating;
89
90
    public function __construct(
91
        TokenStorageInterface $tokenStorage,
92
        SamlInteractionProvider $samlInteractionProvider,
93
        SamlAuthenticationStateHandler $authenticationStateHandler,
94
        AuthenticatedSessionStateHandler $authenticatedSession,
95
        AuthenticationManagerInterface $authenticationManager,
96
        LoaResolutionService $loaResolutionService,
97
        SamlAuthenticationLogger $authenticationLogger,
98
        EngineInterface $templating
99
    ) {
100
        $this->tokenStorage               = $tokenStorage;
101
        $this->samlInteractionProvider    = $samlInteractionProvider;
102
        $this->authenticationStateHandler = $authenticationStateHandler;
103
        $this->authenticatedSession       = $authenticatedSession;
104
        $this->authenticationManager      = $authenticationManager;
105
        $this->loaResolutionService       = $loaResolutionService;
106
        $this->authenticationLogger       = $authenticationLogger;
107
        $this->templating                 = $templating;
108
    }
109
110
    public function process(GetResponseEvent $event)
111
    {