Code Duplication    Length = 9-9 lines in 2 locations

main/auth/cas/lib/CAS/domxml-php4-to-php5.php 2 locations

@@ 363-371 (lines=9) @@
360
        return parent::_newDOMElement($this->myDOMNode->getAttributeNode($name), $this->myOwnerDocument);
361
    }
362
363
    function get_elements_by_tagname($name)
364
    {
365
        $myDOMNodeList = $this->myDOMNode->getElementsByTagName($name);
366
        $nodeSet = array();
367
        $i = 0;
368
        if (isset($myDOMNodeList)) {
369
            while ($node = $myDOMNodeList->item($i++)) {
370
                $nodeSet[] = new php4DOMElement($node, $this->myOwnerDocument);
371
            }
372
        }
373
        return $nodeSet;
374
    }
@@ 502-510 (lines=9) @@
499
        return $nodeSet;
500
    }
501
502
    function child_nodes()
503
    {
504
        $myDOMNodeList = $this->myDOMNode->childNodes;
505
        $nodeSet = array();
506
        $i = 0;
507
        if (isset($myDOMNodeList)) {
508
            while ($node = $myDOMNodeList->item($i++)) {
509
                $nodeSet[] = self::_newDOMElement($node, $this->myOwnerDocument);
510
            }
511
        }
512
        return $nodeSet;
513
    }