@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | use Nwidart\Modules\FileRepository; |
| 7 | 7 | use Nwidart\Modules\Module; |
| 8 | 8 | |
| 9 | -if (! function_exists('module')) { |
|
| 9 | +if (!function_exists('module')) { |
|
| 10 | 10 | /** |
| 11 | 11 | * Retrieves a module status or its instance. |
| 12 | 12 | * |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | * @param bool $instance Whether to return the module's instance instead of the status. Defaults to false [status]. |
| 15 | 15 | * @return bool|Module The module instance or its status. |
| 16 | 16 | */ |
| 17 | - function module(string $name, bool $instance = false): bool|Module |
|
| 17 | + function module(string $name, bool $instance = false): bool | Module |
|
| 18 | 18 | { |
| 19 | 19 | /** @var FileRepository $repository */ |
| 20 | 20 | $repository = app('modules'); |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | -if (! function_exists('module_path')) { |
|
| 32 | +if (!function_exists('module_path')) { |
|
| 33 | 33 | function module_path(string $name, string $path = ''): string |
| 34 | 34 | { |
| 35 | 35 | $module = app('modules')->find($name); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | -if (! function_exists('config_path')) { |
|
| 41 | +if (!function_exists('config_path')) { |
|
| 42 | 42 | /** |
| 43 | 43 | * Get the configuration path. |
| 44 | 44 | */ |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | -if (! function_exists('public_path')) { |
|
| 51 | +if (!function_exists('public_path')) { |
|
| 52 | 52 | /** |
| 53 | 53 | * Get the path to the public folder. |
| 54 | 54 | */ |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | -if (! function_exists('module_vite')) { |
|
| 61 | +if (!function_exists('module_vite')) { |
|
| 62 | 62 | /** |
| 63 | 63 | * support for vite |
| 64 | 64 | */ |