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
|
@@ 107-120 (lines=14) @@
|
| 104 |
|
/** |
| 105 |
|
* @return array |
| 106 |
|
*/ |
| 107 |
|
private function getDirectoriesFromThemesDir() { |
| 108 |
|
|
| 109 |
|
$allThemes = []; |
| 110 |
|
foreach (new DirectoryIterator(self::THEMES_DIR) as $file) { |
| 111 |
|
|
| 112 |
|
if (!$file->isDir() || substr($file->getFilename(), 0, 1) === '.') { |
| 113 |
|
continue; |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
$allThemes[] = $file->getFilename(); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
return $allThemes; |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
} |