| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function getIndexFile():string |
||
| 53 | { |
||
| 54 | if (isset($this->indexFile)) { |
||
| 55 | return $this->indexFile; |
||
| 56 | } |
||
| 57 | if (strpos(__DIR__, 'phar://') === 0) { |
||
| 58 | $indexFile = substr($this->getEntranceFile(), strlen('phar://'.$this->getDocumentRoot())); |
||
| 59 | } else { |
||
| 60 | $indexFile = substr($this->getEntranceFile(), strlen($this->getDocumentRoot())); |
||
| 61 | } |
||
| 62 | return $this->indexFile = str_replace('\\', '/', $indexFile); |
||
| 63 | } |
||
| 75 |