| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 8 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | final class LangUninstall extends BaseCommand |
||
| 8 | { |
||
| 9 | protected $signature = 'lang:uninstall' |
||
| 10 | . ' {locales* : Localizations to uninstall}'; |
||
| 11 | |||
| 12 | protected $description = 'Uninstall localizations.'; |
||
| 13 | |||
| 14 | public function handle() |
||
| 15 | { |
||
| 16 | $this->delete($this->locales()); |
||
| 17 | |||
| 18 | $this->result |
||
| 19 | ->setMessage('No uninstalled localizations.') |
||
| 20 | ->show(); |
||
| 21 | } |
||
| 22 | |||
| 23 | protected function delete(array $locales): void |
||
| 28 | } |
||
| 29 | |||
| 30 | protected function deleteSome(array $locales): void |
||
| 39 |