Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
TemplateFinder
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
 getTemplatePath
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
2
1<?php
2
3namespace BO\Zmsentities\Helper;
4
5/**
6 * Special sort algorithm for DLDB
7 */
8class 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}