| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 52 | public function setCurrentNamespace(string $sNamespace) |
||
| 53 | { |
||
| 54 | $this->sDirectory = ''; |
||
| 55 | $this->sExtension = ''; |
||
| 56 | if(isset($this->aDirectories[$sNamespace])) |
||
| 57 | { |
||
| 58 | // Make sure there's only one '/' at the end of the string |
||
| 59 | $this->sDirectory = rtrim($this->aDirectories[$sNamespace]['path'], '/') . '/'; |
||
| 60 | // Make sure there's only one '.' at the beginning of the string |
||
| 61 | $this->sExtension = '.' . ltrim($this->aDirectories[$sNamespace]['ext'], '.'); |
||
| 62 | } |
||
| 65 |