Code Duplication    Length = 5-5 lines in 2 locations

src/Parser/Xml.php 2 locations

@@ 73-77 (lines=5) @@
70
            return;
71
        }
72
73
        if ($parent_path === null) {
74
            $access_path = null;
75
        } else {
76
            $access_path = 'simplexml_load_string('.$parent_path.')';
77
        }
78
79
        $name = $xml->getName();
80
@@ 110-114 (lines=5) @@
107
        $xml->loadXML($var);
108
        $xml = $xml->firstChild;
109
110
        if ($parent_path === null) {
111
            $access_path = null;
112
        } else {
113
            $access_path = '@DOMDocument::loadXML('.$parent_path.')->firstChild';
114
        }
115
116
        $name = $xml->nodeName;
117