@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (! function_exists('module_path')) { |
|
| 3 | +if (!function_exists('module_path')) { |
|
| 4 | 4 | function module_path($name, $path = '') |
| 5 | 5 | { |
| 6 | 6 | $module = app('modules')->find($name); |
| 7 | 7 | |
| 8 | - return $module->getPath() . ($path ? DIRECTORY_SEPARATOR . $path : $path); |
|
| 8 | + return $module->getPath().($path ? DIRECTORY_SEPARATOR . $path : $path); |
|
| 9 | 9 | } |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | -if (! function_exists('config_path')) { |
|
| 12 | +if (!function_exists('config_path')) { |
|
| 13 | 13 | /** |
| 14 | 14 | * Get the configuration path. |
| 15 | 15 | * |
@@ -18,11 +18,11 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | function config_path($path = '') |
| 20 | 20 | { |
| 21 | - return app()->basePath() . '/config' . ($path ? DIRECTORY_SEPARATOR . $path : $path); |
|
| 21 | + return app()->basePath().'/config'.($path ? DIRECTORY_SEPARATOR . $path : $path); |
|
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -if (! function_exists('public_path')) { |
|
| 25 | +if (!function_exists('public_path')) { |
|
| 26 | 26 | /** |
| 27 | 27 | * Get the path to the public folder. |
| 28 | 28 | * |
@@ -31,6 +31,6 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | function public_path($path = '') |
| 33 | 33 | { |
| 34 | - return app()->make('path.public') . ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path); |
|
| 34 | + return app()->make('path.public').($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path); |
|
| 35 | 35 | } |
| 36 | 36 | } |