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

@@ 75-87 (lines=13) @@
72
     * @param SecondFactorService $secondFactorService
73
     * @param SecondFactorTypeService $secondFactorTypeService
74
     */
75
    public function __construct(
76
        SamlAuthenticationLogger $samlLogger,
77
        LoaResolutionService $loaResolutionService,
78
        ProxyResponseService $responseProxy,
79
        SecondFactorService $secondFactorService,
80
        SecondFactorTypeService $secondFactorTypeService
81
    ) {
82
        $this->samlLogger = $samlLogger;
83
        $this->loaResolutionService = $loaResolutionService;
84
        $this->responseProxy = $responseProxy;
85
        $this->secondFactorService = $secondFactorService;
86
        $this->secondFactorTypeService = $secondFactorTypeService;
87
    }
88
89
    /**
90
     * Send a SAML response back to the service provider.