Code Duplication    Length = 9-9 lines in 2 locations

lib/PageCustomize.php 2 locations

@@ 32-40 (lines=9) @@
29
        return "";
30
    }
31
32
    private function getTemplateList () {
33
        $result = array ();
34
        foreach (glob ("templates/*") as $filename) {
35
            if (preg_match ('/templates\/(.*)/', $filename, $m)) {
36
                array_push ($result, $m [1]);
37
            }            
38
        }
39
        return $result;
40
    }    
41
42
    private function getStyleList () {
43
        $result = array ();
@@ 42-50 (lines=9) @@
39
        return $result;
40
    }    
41
42
    private function getStyleList () {
43
        $result = array ();
44
        foreach (glob ("templates/" . getCurrentTemplate () . "/styles/style-*.css") as $filename) {
45
            if (preg_match ('/styles\/style-(.*?)\.css/', $filename, $m)) {
46
                array_push ($result, $m [1]);
47
            }
48
        }
49
        return $result;
50
    }
51
52
    public function InitializeContent ()
53
    {