Code Duplication    Length = 6-6 lines in 2 locations

src/SAML2/Assertion.php 2 locations

@@ 365-370 (lines=6) @@
362
        }
363
        $conditions = $conditions[0];
364
365
        if ($conditions->hasAttribute('NotBefore')) {
366
            $notBefore = Utils::xsDateTimeToTimestamp($conditions->getAttribute('NotBefore'));
367
            if ($this->notBefore === null || $this->notBefore < $notBefore) {
368
                $this->notBefore = $notBefore;
369
            }
370
        }
371
        if ($conditions->hasAttribute('NotOnOrAfter')) {
372
            $notOnOrAfter = Utils::xsDateTimeToTimestamp($conditions->getAttribute('NotOnOrAfter'));
373
            if ($this->notOnOrAfter === null || $this->notOnOrAfter > $notOnOrAfter) {
@@ 371-376 (lines=6) @@
368
                $this->notBefore = $notBefore;
369
            }
370
        }
371
        if ($conditions->hasAttribute('NotOnOrAfter')) {
372
            $notOnOrAfter = Utils::xsDateTimeToTimestamp($conditions->getAttribute('NotOnOrAfter'));
373
            if ($this->notOnOrAfter === null || $this->notOnOrAfter > $notOnOrAfter) {
374
                $this->notOnOrAfter = $notOnOrAfter;
375
            }
376
        }
377
378
        for ($node = $conditions->firstChild; $node !== null; $node = $node->nextSibling) {
379
            if ($node instanceof \DOMText) {