| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | protected function getConfigFilePath($name) |
||
| 47 | { |
||
| 48 | $modelPath = config_path(config('admin.model_config_dir')); |
||
| 49 | if (!is_dir($modelPath)) { |
||
| 50 | throw new InvalidArgumentException('admin config(model_config_dir) is not a directory'); |
||
| 51 | } |
||
| 52 | $file = str_replace('.', DIRECTORY_SEPARATOR, $name) . '.php'; |
||
| 53 | return $modelPath . DIRECTORY_SEPARATOR . $file; |
||
| 54 | } |
||
| 55 | } |
||
| 56 |