lib/Service/TemplatesService.php 1 location
|
@@ 124-137 (lines=14) @@
|
121 |
|
/** |
122 |
|
* @return array |
123 |
|
*/ |
124 |
|
private function getDirectoriesFromTemplatesDir() { |
125 |
|
|
126 |
|
$allTemplates = []; |
127 |
|
foreach (new DirectoryIterator(self::TEMPLATE_DIR) as $file) { |
128 |
|
|
129 |
|
if (!$file->isDir() || substr($file->getFilename(), 0, 1) === '.') { |
130 |
|
continue; |
131 |
|
} |
132 |
|
|
133 |
|
$allTemplates[] = $file->getFilename(); |
134 |
|
} |
135 |
|
|
136 |
|
return $allTemplates; |
137 |
|
} |
138 |
|
|
139 |
|
|
140 |
|
/** |
lib/Service/ThemesService.php 1 location
|
@@ 120-133 (lines=14) @@
|
117 |
|
/** |
118 |
|
* @return array |
119 |
|
*/ |
120 |
|
private function getDirectoriesFromThemesDir() { |
121 |
|
|
122 |
|
$allThemes = []; |
123 |
|
foreach (new DirectoryIterator(self::THEMES_DIR) as $file) { |
124 |
|
|
125 |
|
if (!$file->isDir() || substr($file->getFilename(), 0, 1) === '.') { |
126 |
|
continue; |
127 |
|
} |
128 |
|
|
129 |
|
$allThemes[] = $file->getFilename(); |
130 |
|
} |
131 |
|
|
132 |
|
return $allThemes; |
133 |
|
} |
134 |
|
|
135 |
|
} |