@@ -2,16 +2,16 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use Illuminate\Support\Facades\Vite; |
| 4 | 4 | |
| 5 | -if (! function_exists('module_path')) { |
|
| 5 | +if (!function_exists('module_path')) { |
|
| 6 | 6 | function module_path($name, $path = '') |
| 7 | 7 | { |
| 8 | 8 | $module = app('modules')->find($name); |
| 9 | 9 | |
| 10 | - return $module->getPath() . ($path ? DIRECTORY_SEPARATOR . $path : $path); |
|
| 10 | + return $module->getPath().($path ? DIRECTORY_SEPARATOR . $path : $path); |
|
| 11 | 11 | } |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | -if (! function_exists('config_path')) { |
|
| 14 | +if (!function_exists('config_path')) { |
|
| 15 | 15 | /** |
| 16 | 16 | * Get the configuration path. |
| 17 | 17 | * |
@@ -20,11 +20,11 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | function config_path($path = '') |
| 22 | 22 | { |
| 23 | - return app()->basePath() . '/config' . ($path ? DIRECTORY_SEPARATOR . $path : $path); |
|
| 23 | + return app()->basePath().'/config'.($path ? DIRECTORY_SEPARATOR . $path : $path); |
|
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | -if (! function_exists('public_path')) { |
|
| 27 | +if (!function_exists('public_path')) { |
|
| 28 | 28 | /** |
| 29 | 29 | * Get the path to the public folder. |
| 30 | 30 | * |
@@ -33,11 +33,11 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | function public_path($path = '') |
| 35 | 35 | { |
| 36 | - return app()->make('path.public') . ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path); |
|
| 36 | + return app()->make('path.public').($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path); |
|
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | -if (! function_exists('module_vite')) { |
|
| 40 | +if (!function_exists('module_vite')) { |
|
| 41 | 41 | /** |
| 42 | 42 | * support for vite |
| 43 | 43 | */ |