Code Duplication    Length = 6-6 lines in 2 locations

src/SAML2/Assertion.php 2 locations

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