Conditions | 4 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
34 | public function getThemeList() |
||
35 | { |
||
36 | if (!is_array($this->themeList)) { |
||
37 | $themeList = array(); |
||
38 | foreach ($this->paths as $path) { |
||
39 | $path = rtrim($path, DIRECTORY_SEPARATOR); |
||
40 | $themes = new Finder(); |
||
41 | $themes->directories()->depth('== 0')->in($path); |
||
42 | foreach ($themes as $theme) { |
||
43 | /** @var SplFileInfo $theme */ |
||
44 | $themeList[] = $theme->getFilename(); |
||
45 | } |
||
46 | } |
||
47 | |||
48 | $this->themeList = $themeList; |
||
49 | } |
||
50 | |||
51 | return $this->themeList; |
||
52 | } |
||
53 | } |
||
54 |