@@ -54,12 +54,12 @@ |
||
54 | 54 | ]; |
55 | 55 | } |
56 | 56 | |
57 | - protected function getServiceName(): array|string |
|
57 | + protected function getServiceName(): array | string |
|
58 | 58 | { |
59 | 59 | return Str::studly($this->argument('name')); |
60 | 60 | } |
61 | 61 | |
62 | - private function getClassNameWithoutNamespace(): array|string |
|
62 | + private function getClassNameWithoutNamespace(): array | string |
|
63 | 63 | { |
64 | 64 | return class_basename($this->getServiceName()); |
65 | 65 | } |
@@ -54,12 +54,12 @@ |
||
54 | 54 | ]; |
55 | 55 | } |
56 | 56 | |
57 | - protected function getActionName(): array|string |
|
57 | + protected function getActionName(): array | string |
|
58 | 58 | { |
59 | 59 | return Str::studly($this->argument('name')); |
60 | 60 | } |
61 | 61 | |
62 | - private function getClassNameWithoutNamespace(): array|string |
|
62 | + private function getClassNameWithoutNamespace(): array | string |
|
63 | 63 | { |
64 | 64 | return class_basename($this->getActionName()); |
65 | 65 | } |
@@ -53,12 +53,12 @@ |
||
53 | 53 | ]; |
54 | 54 | } |
55 | 55 | |
56 | - protected function getScopeName(): array|string |
|
56 | + protected function getScopeName(): array | string |
|
57 | 57 | { |
58 | 58 | return Str::studly($this->argument('name')); |
59 | 59 | } |
60 | 60 | |
61 | - private function getClassNameWithoutNamespace(): array|string |
|
61 | + private function getClassNameWithoutNamespace(): array | string |
|
62 | 62 | { |
63 | 63 | return class_basename($this->getScopeName()); |
64 | 64 | } |
@@ -53,12 +53,12 @@ |
||
53 | 53 | ]; |
54 | 54 | } |
55 | 55 | |
56 | - protected function getCastName(): array|string |
|
56 | + protected function getCastName(): array | string |
|
57 | 57 | { |
58 | 58 | return Str::studly($this->argument('name')); |
59 | 59 | } |
60 | 60 | |
61 | - private function getClassNameWithoutNamespace(): array|string |
|
61 | + private function getClassNameWithoutNamespace(): array | string |
|
62 | 62 | { |
63 | 63 | return class_basename($this->getCastName()); |
64 | 64 | } |
@@ -54,12 +54,12 @@ |
||
54 | 54 | ]; |
55 | 55 | } |
56 | 56 | |
57 | - protected function getHelperName(): array|string |
|
57 | + protected function getHelperName(): array | string |
|
58 | 58 | { |
59 | 59 | return Str::studly($this->argument('name')); |
60 | 60 | } |
61 | 61 | |
62 | - private function getClassNameWithoutNamespace(): array|string |
|
62 | + private function getClassNameWithoutNamespace(): array | string |
|
63 | 63 | { |
64 | 64 | return class_basename($this->getHelperName()); |
65 | 65 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $database = $this->option('database'); |
35 | 35 | |
36 | - if (! empty($database)) { |
|
36 | + if (!empty($database)) { |
|
37 | 37 | $migrator->setDatabase($database); |
38 | 38 | } |
39 | 39 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | { |
36 | 36 | $module = $this->getModuleModel($name); |
37 | 37 | |
38 | - $this->components->task("Seeding <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
38 | + $this->components->task("Seeding <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
39 | 39 | try { |
40 | 40 | $this->moduleSeed($module); |
41 | 41 | } catch (\Error $e) { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | public function getModuleRepository(): RepositoryInterface |
65 | 65 | { |
66 | 66 | $modules = $this->laravel['modules']; |
67 | - if (! $modules instanceof RepositoryInterface) { |
|
67 | + if (!$modules instanceof RepositoryInterface) { |
|
68 | 68 | throw new RuntimeException('Module repository not found!'); |
69 | 69 | } |
70 | 70 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | $module = $this->getModuleModel($name); |
27 | 27 | |
28 | - $this->components->task("Refreshing Migration {$module->getName()} module", function () use ($module) { |
|
28 | + $this->components->task("Refreshing Migration {$module->getName()} module", function() use ($module) { |
|
29 | 29 | $this->call('module:migrate-reset', [ |
30 | 30 | 'module' => $module->getStudlyName(), |
31 | 31 | '--database' => $this->option('database'), |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | use Illuminate\Foundation\Vite; |
4 | 4 | use Illuminate\Support\Facades\Vite as ViteFacade; |
5 | 5 | |
6 | -if (! function_exists('module_path')) { |
|
6 | +if (!function_exists('module_path')) { |
|
7 | 7 | function module_path($name, $path = '') |
8 | 8 | { |
9 | 9 | $module = app('modules')->find($name); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | } |
13 | 13 | } |
14 | 14 | |
15 | -if (! function_exists('config_path')) { |
|
15 | +if (!function_exists('config_path')) { |
|
16 | 16 | /** |
17 | 17 | * Get the configuration path. |
18 | 18 | * |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | } |
27 | 27 | |
28 | -if (! function_exists('public_path')) { |
|
28 | +if (!function_exists('public_path')) { |
|
29 | 29 | /** |
30 | 30 | * Get the path to the public folder. |
31 | 31 | * |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } |
39 | 39 | } |
40 | 40 | |
41 | -if (! function_exists('module_vite')) { |
|
41 | +if (!function_exists('module_vite')) { |
|
42 | 42 | /** |
43 | 43 | * support for vite |
44 | 44 | */ |