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