Code Duplication    Length = 11-11 lines in 2 locations

manager/includes/src/ManagerTheme.php 2 locations

@@ 36-46 (lines=11) @@
33
        $this->loadChunks();
34
    }
35
36
    public function loadSnippets()
37
    {
38
        $found = $this->core->findElements(
39
            'chunk',
40
            MODX_MANAGER_PATH . 'media/style/' . $this->theme . '/snippets/',
41
            array('php')
42
        );
43
        foreach ($found as $name => $code) {
44
            $this->addSnippet($name, $code);
45
        }
46
    }
47
48
    public function loadChunks()
49
    {
@@ 48-58 (lines=11) @@
45
        }
46
    }
47
48
    public function loadChunks()
49
    {
50
        $found = $this->core->findElements(
51
            'chunk',
52
            MODX_MANAGER_PATH . 'media/style/' . $this->theme . '/chunks/',
53
            array('tpl', 'html')
54
        );
55
        foreach ($found as $name => $code) {
56
            $this->addChunk($name, $code);
57
        }
58
    }
59
60
    public function addSnippet($name, $code)
61
    {