Code Duplication    Length = 3-3 lines in 2 locations

typo3/sysext/core/Classes/Utility/GeneralUtility.php 2 locations

@@ 1389-1391 (lines=3) @@
1386
        }
1387
        xml_parse_into_struct($parser, $string, $vals, $index);
1388
        libxml_disable_entity_loader($previousValueOfEntityLoader);
1389
        if (xml_get_error_code($parser)) {
1390
            return 'Line ' . xml_get_current_line_number($parser) . ': ' . xml_error_string(xml_get_error_code($parser));
1391
        }
1392
        xml_parser_free($parser);
1393
        $stack = [[]];
1394
        $stacktop = 0;
@@ 1620-1622 (lines=3) @@
1617
        xml_parse_into_struct($parser, $string, $vals, $index);
1618
        libxml_disable_entity_loader($previousValueOfEntityLoader);
1619
        // If error, return error message:
1620
        if (xml_get_error_code($parser)) {
1621
            return 'Line ' . xml_get_current_line_number($parser) . ': ' . xml_error_string(xml_get_error_code($parser));
1622
        }
1623
        xml_parser_free($parser);
1624
        // Init vars:
1625
        $stack = [[]];