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

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