Code Duplication    Length = 5-5 lines in 2 locations

src/system/BlocksModule/Block/XsltBlock.php 2 locations

@@ 33-37 (lines=5) @@
30
        $xsl = new XSLTProcessor();
31
32
        // load stylesheet
33
        if (isset($properties['styleurl']) && !empty($properties['styleurl'])) {
34
            $doc->load($properties['styleurl']);
35
        } else {
36
            $doc->loadXML($properties['stylecontents']);
37
        }
38
        $xsl->importStyleSheet($doc);
39
40
        // load xml source
@@ 41-45 (lines=5) @@
38
        $xsl->importStyleSheet($doc);
39
40
        // load xml source
41
        if (isset($properties['docurl']) && !empty($properties['docurl'])) {
42
            $doc->load($properties['docurl']);
43
        } else {
44
            $doc->loadXML($properties['doccontents']);
45
        }
46
47
        // apply stylesheet and return output
48
        return $xsl->transformToXML($doc);