| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public static function getRootTemplateDir() |
||
| 36 | { |
||
| 37 | if (null === self::$rootTemplateDir) { |
||
| 38 | self::$rootTemplateDir = PathHelper::appendPathSeparator( |
||
| 39 | realpath( |
||
| 40 | sprintf( |
||
| 41 | '%s%s%s', |
||
| 42 | PathHelper::appendPathSeparator(__DIR__), |
||
| 43 | PathHelper::implodePathComponentList(array_fill(0, 4, '..')), // Go 4 level up |
||
| 44 | 'templates' |
||
| 45 | ) |
||
| 46 | ) |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | return self::$rootTemplateDir; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |