Lines
100.00%
2 / 2
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| TemplateFinder | 100.00% | 2 / 2 | 100.00% | 1 / 1 | 2 | 100.00% | 1 / 1 | |||
| getTemplatePath | 100.00% | 2 / 2 | 100.00% | 1 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | namespace BO\Zmsentities\Helper; | |
| 4 | ||
| 5 | /** | |
| 6 | * Special sort algorithm for DLDB | |
| 7 | */ | |
| 8 | class TemplateFinder | |
| 9 | { | |
| 10 | /** | |
| 11 | * @todo check against ISO definition | |
| 12 | */ | |
| 13 | public static function getTemplatePath(): string | |
| 14 | { | |
| 15 | $templatePath = realpath(__DIR__); | |
| 16 | return ($templatePath !== false ? $templatePath : __DIR__) . '/../../../templates'; | |
| 17 | } | |
| 18 | } |