Code Duplication    Length = 13-15 lines in 3 locations

src/Surfnet/StepupGateway/GatewayBundle/Service/Gateway/RespondService.php 1 location

@@ 54-66 (lines=13) @@
51
     * @param SecondFactorService $secondFactorService
52
     * @param SecondFactorTypeService $secondFactorTypeService
53
     */
54
    public function __construct(
55
        SamlAuthenticationLogger $samlLogger,
56
        LoaResolutionService $loaResolutionService,
57
        ProxyResponseService $responseProxy,
58
        SecondFactorService $secondFactorService,
59
        SecondFactorTypeService $secondFactorTypeService
60
    ) {
61
        $this->samlLogger = $samlLogger;
62
        $this->loaResolutionService = $loaResolutionService;
63
        $this->responseProxy = $responseProxy;
64
        $this->secondFactorService = $secondFactorService;
65
        $this->secondFactorTypeService = $secondFactorTypeService;
66
    }
67
68
    /**
69
     * Send a SAML response back to the service provider.

src/Surfnet/StepupGateway/SecondFactorOnlyBundle/Service/Gateway/RespondService.php 1 location

@@ 60-74 (lines=15) @@
57
     * @param SecondFactorService $secondFactorService
58
     * @param SecondFactorTypeService $secondFactorTypeService
59
     */
60
    public function __construct(
61
        SamlAuthenticationLogger $samlLogger,
62
        LoaResolutionService $loaResolutionService,
63
        LoaAliasLookupService $loaAliasLookupService,
64
        ResponseFactory $responseFactory,
65
        SecondFactorService $secondFactorService,
66
        SecondFactorTypeService $secondFactorTypeService
67
    ) {
68
        $this->samlLogger = $samlLogger;
69
        $this->loaResolutionService = $loaResolutionService;
70
        $this->loaAliasLookupService = $loaAliasLookupService;
71
        $this->responseFactory = $responseFactory;
72
        $this->secondFactorService = $secondFactorService;
73
        $this->secondFactorTypeService = $secondFactorTypeService;
74
    }
75
76
77
    /**

src/Surfnet/StepupGateway/GatewayBundle/Monolog/Logger/AuthenticationLogger.php 1 location

@@ 61-75 (lines=15) @@
58
     */
59
    private $secondFactorTypeService;
60
61
    public function __construct(
62
        LoaResolutionService $loaResolutionService,
63
        ProxyStateHandler $ssoProxyStateHandler,
64
        ProxyStateHandler $sfoProxyStateHandler,
65
        SecondFactorService $secondFactorService,
66
        SamlAuthenticationLogger $authenticationChannelLogger,
67
        SecondFactorTypeService $service
68
    ) {
69
        $this->loaResolutionService = $loaResolutionService;
70
        $this->ssoProxyStateHandler = $ssoProxyStateHandler;
71
        $this->sfoProxyStateHandler = $sfoProxyStateHandler;
72
        $this->secondFactorService  = $secondFactorService;
73
        $this->authenticationChannelLogger = $authenticationChannelLogger;
74
        $this->secondFactorTypeService = $service;
75
    }
76
77
    /**
78
     * @param string $requestId The SAML authentication request ID of the original request (not the proxy request).