| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function handle(): void |
||
| 24 | { |
||
| 25 | $this->module = $this->laravel['modules']; |
||
| 26 | |||
| 27 | if ($name = $this->option('module')) { |
||
| 28 | $module = $this->module->findOrFail($name); |
||
| 29 | |||
| 30 | $this->migrateStatus($module); |
||
| 31 | |||
| 32 | return; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** @var \Rawilk\LaravelModules\Module $module */ |
||
| 36 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
||
| 37 | $this->line("Getting migration status for module: <info>{$module->getName()}</info>"); |
||
| 38 | |||
| 39 | $this->migrateStatus($module); |
||
| 40 | } |
||
| 53 |