Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | protected function check_importExist($import): string |
||
17 | { |
||
18 | $tpl = str_replace('.',DIRECTORY_SEPARATOR, |
||
19 | substr( |
||
20 | $import, |
||
21 | strpos($import,'\'')+1, |
||
22 | strlen($import)-11 |
||
23 | ) |
||
24 | ); |
||
25 | |||
26 | if(!file_exists($this->path . DIRECTORY_SEPARATOR . $tpl . '.tpl.php')){ |
||
27 | throw new Exception('Import \''.str_replace(['@import(\'','\')'],'',$import).'\' não encontrado.'); |
||
28 | } |
||
29 | return $tpl; |
||
30 | } |
||
32 | } |