Code Duplication    Length = 7-7 lines in 2 locations

src/module/Appearance/Editor/EditorModel.php 1 location

@@ 26-32 (lines=7) @@
23
     *
24
     * @return array
25
     */
26
    public function getFilesListByPath($path)
27
    {
28
        return array_diff(
29
            scandir($this->root.$path, SCANDIR_SORT_ASCENDING),
30
            array('.', '..')
31
        );
32
    }
33
34
    /**
35
     * @param string $path

src/module/Appearance/Roll/Admin/Model.php 1 location

@@ 24-30 (lines=7) @@
21
    /**
22
     * @return array
23
     */
24
    private function getThemesList()
25
    {
26
        return array_diff(
27
            scandir(THEMES_ROOT.'/front', SCANDIR_SORT_ASCENDING),
28
            array('.', '..')
29
        );
30
    }
31
32
    /**
33
     * @return int