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

@@ 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.