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

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