@@ -76,10 +76,10 @@ |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * Get module type . |
|
| 80 | - * |
|
| 81 | - * @return string |
|
| 82 | - */ |
|
| 79 | + * Get module type . |
|
| 80 | + * |
|
| 81 | + * @return string |
|
| 82 | + */ |
|
| 83 | 83 | private function getModuleType() |
| 84 | 84 | { |
| 85 | 85 | $isPlain = $this->option('plain'); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | if ($name instanceof Module) { |
| 68 | 68 | $module = $name; |
| 69 | - }else { |
|
| 69 | + } else { |
|
| 70 | 70 | $module = $this->laravel['modules']->findOrFail($name); |
| 71 | 71 | } |
| 72 | 72 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $module->enable(); |
| 75 | 75 | |
| 76 | 76 | $this->components->info("Module [{$module}] enabled successful."); |
| 77 | - }else { |
|
| 77 | + } else { |
|
| 78 | 78 | $this->components->warn("Module [{$module}] has already enabled."); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -87,8 +87,7 @@ |
||
| 87 | 87 | config('modules.paths.modules'), |
| 88 | 88 | config('modules.paths.generator.model.path') |
| 89 | 89 | ); |
| 90 | - } |
|
| 91 | - else { |
|
| 90 | + } else { |
|
| 92 | 91 | $path = sprintf('%s/{%s}/%s', |
| 93 | 92 | config('modules.paths.modules'), |
| 94 | 93 | collect($this->argument('module'))->implode(','), |