| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | function menus_path(string $path = ''): string |
||
| 11 | { |
||
| 12 | $app = Container::getInstance(); |
||
| 13 | |||
| 14 | $config = $app->make(ConfigRepository::class); |
||
| 15 | |||
| 16 | $menusDir = $config->get('ussd.menus-path'); |
||
| 17 | |||
| 18 | $path = $path ? DIRECTORY_SEPARATOR.ltrim($path, DIRECTORY_SEPARATOR) : $path; |
||
| 19 | |||
| 20 | return $app->basePath($menusDir.$path); |
||
|
|
|||
| 21 | } |
||
| 23 |