Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 56-68 (lines=13) @@
53
     */
54
    private $secondFactorTypeService;
55
56
    public function __construct(
57
        LoaResolutionService $loaResolutionService,
58
        ProxyStateHandler $proxyStateHandler,
59
        SecondFactorService $secondFactorService,
60
        SamlAuthenticationLogger $authenticationChannelLogger,
61
        SecondFactorTypeService $service
62
    ) {
63
        $this->loaResolutionService = $loaResolutionService;
64
        $this->proxyStateHandler    = $proxyStateHandler;
65
        $this->secondFactorService  = $secondFactorService;
66
        $this->authenticationChannelLogger = $authenticationChannelLogger;
67
        $this->secondFactorTypeService = $service;
68
    }
69
70
    /**
71
     * @param string $requestId The SAML authentication request ID of the original request (not the proxy request).

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

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