Conditions | 4 |
Paths | 6 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | private function seekSourcePath():?array |
||
48 | { |
||
49 | $extArray = []; |
||
50 | if (array_key_exists('subfix', $this->config)) { |
||
51 | $extArray[$this->config['subfix']] = $this->config['raw'] ?? false; |
||
52 | } |
||
53 | $extArray['.tpl.html'] = false; |
||
54 | $extArray['.php'] = true; |
||
55 | $resource = $this->getResource($this->module); |
||
56 | foreach ($extArray as $ext => $isRaw) { |
||
57 | $path = $resource->getResourcePath($this->getTemplatePath() . '/' . $this->name . $ext); |
||
58 | if ($path !== null) { |
||
59 | return [$path , $isRaw]; |
||
60 | } |
||
61 | } |
||
62 | return null; |
||
63 | } |
||
76 |