| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | protected function getPath($name) |
||
| 55 | { |
||
| 56 | $name = str_replace_first($this->rootNamespace(), $this->moduleName().DIRECTORY_SEPARATOR.'config', $name); |
||
| 57 | |||
| 58 | if (! $this->files->exists($path = $this->laravel['path'].DIRECTORY_SEPARATOR.$this->moduleName())) { |
||
| 59 | throw new \Exception("Invalid path: {$path}"); |
||
| 60 | } |
||
| 61 | |||
| 62 | return $this->laravel['path'].DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $name).'.php'; |
||
| 63 | } |
||
| 64 | } |
||
| 65 |