Code Duplication    Length = 17-17 lines in 2 locations

src/Surfnet/StepupSelfService/SelfServiceBundle/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/StepupSelfService/SelfServiceBundle/Security/Authentication/Handler/ProcessSamlAuthenticationHandler.php 1 location

@@ 80-96 (lines=17) @@
77
     */
78
    private $templating;
79
80
    public function __construct(
81
        TokenStorageInterface $tokenStorage,
82
        SamlInteractionProvider $samlInteractionProvider,
83
        SamlAuthenticationStateHandler $authenticationStateHandler,
84
        AuthenticatedSessionStateHandler $authenticatedSession,
85
        AuthenticationManagerInterface $authenticationManager,
86
        SamlAuthenticationLogger $authenticationLogger,
87
        EngineInterface $templating
88
    ) {
89
        $this->tokenStorage               = $tokenStorage;
90
        $this->samlInteractionProvider    = $samlInteractionProvider;
91
        $this->authenticationStateHandler = $authenticationStateHandler;
92
        $this->authenticatedSession       = $authenticatedSession;
93
        $this->authenticationManager      = $authenticationManager;
94
        $this->authenticationLogger       = $authenticationLogger;
95
        $this->templating                 = $templating;
96
    }
97
98
    public function process(GetResponseEvent $event)
99
    {