Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function getViewName(SplFileInfo $viewFile): string |
||
38 | { |
||
39 | $view = str_replace_last('.blade.php', '', $viewFile->getFilename()); |
||
40 | |||
41 | $viewDirectory = ''; |
||
42 | |||
43 | if ($this->viewDirectory !== '') { |
||
44 | $viewDirectory = $this->viewDirectory; |
||
45 | } |
||
46 | |||
47 | return "{$this->namespace}::{$viewDirectory}{$view}"; |
||
48 | } |
||
49 | } |