Code Duplication    Length = 10-11 lines in 2 locations

src/Surfnet/StepupGateway/SamlStepupProviderBundle/Saml/ProxyResponseFactory.php 1 location

@@ 58-68 (lines=11) @@
55
     */
56
    private $currentTime;
57
58
    public function __construct(
59
        IdentityProvider $hostedIdentityProvider,
60
        StateHandler $stateHandler,
61
        AssertionSigningService $assertionSigningService
62
    ) {
63
        $this->hostedIdentityProvider  = $hostedIdentityProvider;
64
        $this->stateHandler            = $stateHandler;
65
        $this->assertionSigningService = $assertionSigningService;
66
67
        $this->currentTime = new DateTime('now', new DateTimeZone('UTC'));
68
    }
69
70
    /**
71
     * @param SAML2_Assertion $assertion

src/Surfnet/StepupGateway/SecondFactorOnlyBundle/Saml/ResponseFactory.php 1 location

@@ 49-58 (lines=10) @@
46
     */
47
    private $assertionSigningService;
48
49
    public function __construct(
50
        IdentityProvider $hostedIdentityProvider,
51
        ProxyStateHandler $proxyStateHandler,
52
        AssertionSigningService $assertionSigningService
53
    ) {
54
        $this->hostedIdentityProvider    = $hostedIdentityProvider;
55
        $this->proxyStateHandler         = $proxyStateHandler;
56
        $this->assertionSigningService   = $assertionSigningService;
57
        $this->currentTime = new \DateTime('now', new \DateTimeZone('UTC'));
58
    }
59
60
    /**
61
     * @param string $nameId