Code Duplication    Length = 6-6 lines in 2 locations

src/SAML2/Assertion.php 2 locations

@@ 330-335 (lines=6) @@
327
        }
328
        $conditions = $conditions[0];
329
330
        if ($conditions->hasAttribute('NotBefore')) {
331
            $notBefore = Utils::xsDateTimeToTimestamp($conditions->getAttribute('NotBefore'));
332
            if ($this->notBefore === null || $this->notBefore < $notBefore) {
333
                $this->notBefore = $notBefore;
334
            }
335
        }
336
        if ($conditions->hasAttribute('NotOnOrAfter')) {
337
            $notOnOrAfter = Utils::xsDateTimeToTimestamp($conditions->getAttribute('NotOnOrAfter'));
338
            if ($this->notOnOrAfter === null || $this->notOnOrAfter > $notOnOrAfter) {
@@ 336-341 (lines=6) @@
333
                $this->notBefore = $notBefore;
334
            }
335
        }
336
        if ($conditions->hasAttribute('NotOnOrAfter')) {
337
            $notOnOrAfter = Utils::xsDateTimeToTimestamp($conditions->getAttribute('NotOnOrAfter'));
338
            if ($this->notOnOrAfter === null || $this->notOnOrAfter > $notOnOrAfter) {
339
                $this->notOnOrAfter = $notOnOrAfter;
340
            }
341
        }
342
343
        for ($node = $conditions->firstChild; $node !== null; $node = $node->nextSibling) {
344
            if ($node instanceof \DOMText) {