@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | use Illuminate\Support\Facades\Vite as ViteFacade; |
| 5 | 5 | use Nwidart\Modules\Laravel\Module; |
| 6 | 6 | |
| 7 | -if (! function_exists('module')) { |
|
| 7 | +if (!function_exists('module')) { |
|
| 8 | 8 | /** |
| 9 | 9 | * Retrieves a module instance or its status. |
| 10 | 10 | * |
@@ -12,11 +12,11 @@ discard block |
||
| 12 | 12 | * @param bool $status Whether to return the module's status instead of the instance. Defaults to false. |
| 13 | 13 | * @return Module|bool The module instance or its status. |
| 14 | 14 | */ |
| 15 | - function module(string $name, bool $status = false): Module|bool |
|
| 15 | + function module(string $name, bool $status = false): Module | bool |
|
| 16 | 16 | { |
| 17 | 17 | $modules = app('modules'); |
| 18 | 18 | |
| 19 | - if (! $modules->has($name)) { |
|
| 19 | + if (!$modules->has($name)) { |
|
| 20 | 20 | throw new InvalidArgumentException("Module '$name' not found."); |
| 21 | 21 | } |
| 22 | 22 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | -if (! function_exists('module_path')) { |
|
| 27 | +if (!function_exists('module_path')) { |
|
| 28 | 28 | function module_path(string $name, string $path = ''): string |
| 29 | 29 | { |
| 30 | 30 | $module = app('modules')->find($name); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | -if (! function_exists('config_path')) { |
|
| 36 | +if (!function_exists('config_path')) { |
|
| 37 | 37 | /** |
| 38 | 38 | * Get the configuration path. |
| 39 | 39 | */ |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | -if (! function_exists('public_path')) { |
|
| 46 | +if (!function_exists('public_path')) { |
|
| 47 | 47 | /** |
| 48 | 48 | * Get the path to the public folder. |
| 49 | 49 | */ |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | -if (! function_exists('module_vite')) { |
|
| 56 | +if (!function_exists('module_vite')) { |
|
| 57 | 57 | /** |
| 58 | 58 | * support for vite |
| 59 | 59 | */ |