@@ 205-207 (lines=3) @@ | ||
202 | */ |
|
203 | protected function loadModuleMigrations($module) |
|
204 | { |
|
205 | if (is_dir(base_path('app/Modules/' . $module . '/Database/Migrations'))) { |
|
206 | /** @scrutinizer ignore-call */ |
|
207 | $this->loadMigrationsFrom(base_path('app/Modules/' . $module . '/Database/Migrations'), $module); |
|
208 | } |
|
209 | } |
|
210 | ||
@@ 231-233 (lines=3) @@ | ||
228 | */ |
|
229 | protected function loadModuleTranslations($module) |
|
230 | { |
|
231 | if (is_dir(base_path('app/Modules/' . $module . '/Lang'))) { |
|
232 | $this->loadTranslationsFrom(base_path('app/Modules/' . $module . '/Lang'), $module); |
|
233 | } |
|
234 | } |
|
235 | ||
236 | /** |
@@ 16-19 (lines=4) @@ | ||
13 | { |
|
14 | $this->info('Creating a new Module'); |
|
15 | ||
16 | if (is_dir(base_path('app/Modules/' . $module))) { |
|
17 | $this->error($module . " already exists. If you really want to create this module, please delete the following folder: " . base_path('app/Modules/' . $module)); |
|
18 | return; |
|
19 | } |
|
20 | ||
21 | // Create all module's folders |
|
22 | $this->info('Creating folder structure'); |