| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php namespace Geocoder\Laravel\Providers; |
||
| 46 | protected function configPath(string $path = "") : string |
||
| 47 | { |
||
| 48 | if (function_exists("config_path")) { |
||
| 49 | return config_path($path); |
||
| 50 | } |
||
| 51 | |||
| 52 | $pathParts = [ |
||
| 53 | app()->basePath(), |
||
| 54 | "config", |
||
| 55 | trim($path, "/"), |
||
| 56 | ]; |
||
| 57 | |||
| 58 | return implode("/", $pathParts); |
||
| 59 | } |
||
| 60 | } |
||
| 61 |