Code Duplication    Length = 3-3 lines in 2 locations

src/SAML2/Assertion.php 1 location

@@ 364-366 (lines=3) @@
361
            if ($node instanceof \DOMText) {
362
                continue;
363
            }
364
            if ($node->namespaceURI !== Constants::NS_SAML) {
365
                throw new \Exception('Unknown namespace of condition: ' . var_export($node->namespaceURI, true));
366
            }
367
            switch ($node->localName) {
368
                case 'AudienceRestriction':
369
                    $audiences = Utils::extractStrings($node, Constants::NS_SAML, 'Audience');

src/SAML2/Message.php 1 location

@@ 549-551 (lines=3) @@
546
     */
547
    public static function fromXML(\DOMElement $xml)
548
    {
549
        if ($xml->namespaceURI !== Constants::NS_SAMLP) {
550
            throw new \Exception('Unknown namespace of SAML message: '.var_export($xml->namespaceURI, true));
551
        }
552
553
        switch ($xml->localName) {
554
            case 'AttributeQuery':