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

@@ 569-571 (lines=3) @@
566
     */
567
    public static function fromXML(\DOMElement $xml)
568
    {
569
        if ($xml->namespaceURI !== Constants::NS_SAMLP) {
570
            throw new \Exception('Unknown namespace of SAML message: '.var_export($xml->namespaceURI, true));
571
        }
572
573
        switch ($xml->localName) {
574
            case 'AttributeQuery':