| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class TemplateManager { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Mapping local path to templates |
||
| 26 | * |
||
| 27 | * @var Array |
||
| 28 | */ |
||
| 29 | private static $localPath = [ |
||
| 30 | "bg" => "bg-BG", |
||
| 31 | "cs" => "cs-CS", |
||
| 32 | "de" => "de-DE", |
||
| 33 | "el" => "el-GR", |
||
| 34 | "en" => "en-US", |
||
| 35 | "es" => "es-ES", |
||
| 36 | "fr" => "fr-FR", |
||
| 37 | "it" => "it-IT", |
||
| 38 | "ja" => "ja-JP", |
||
| 39 | "ko" => "ko-KR", |
||
| 40 | "lv" => "lv-LV", |
||
| 41 | "nl" => "nl-NL", |
||
| 42 | "pl" => "pl-PL", |
||
| 43 | "pt" => "pt-PT", |
||
| 44 | "pt-BR" => "pt-BR", |
||
| 45 | "ru" => "ru-RU", |
||
| 46 | "sk" => "sk-SK", |
||
| 47 | "sv" => "sv-SE", |
||
| 48 | "uk" => "uk-UA", |
||
| 49 | "vi" => "vi-VN", |
||
| 50 | "zh" => "zh-CN" |
||
| 51 | ]; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Return path to template new file |
||
| 55 | */ |
||
| 56 | public static function getEmptyTemplate($fileExtension): string |
||
| 68 |