Code Duplication    Length = 6-6 lines in 2 locations

src/SAML2/Assertion.php 2 locations

@@ 347-352 (lines=6) @@
344
        }
345
        $conditions = $conditions[0];
346
347
        if ($conditions->hasAttribute('NotBefore')) {
348
            $notBefore = Utils::xsDateTimeToTimestamp($conditions->getAttribute('NotBefore'));
349
            if ($this->notBefore === null || $this->notBefore < $notBefore) {
350
                $this->notBefore = $notBefore;
351
            }
352
        }
353
        if ($conditions->hasAttribute('NotOnOrAfter')) {
354
            $notOnOrAfter = Utils::xsDateTimeToTimestamp($conditions->getAttribute('NotOnOrAfter'));
355
            if ($this->notOnOrAfter === null || $this->notOnOrAfter > $notOnOrAfter) {
@@ 353-358 (lines=6) @@
350
                $this->notBefore = $notBefore;
351
            }
352
        }
353
        if ($conditions->hasAttribute('NotOnOrAfter')) {
354
            $notOnOrAfter = Utils::xsDateTimeToTimestamp($conditions->getAttribute('NotOnOrAfter'));
355
            if ($this->notOnOrAfter === null || $this->notOnOrAfter > $notOnOrAfter) {
356
                $this->notOnOrAfter = $notOnOrAfter;
357
            }
358
        }
359
360
        for ($node = $conditions->firstChild; $node !== null; $node = $node->nextSibling) {
361
            if ($node instanceof \DOMText) {