| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function handle(): int |
||
| 29 | { |
||
| 30 | $domain = Str::studly($this->argument('domain')); |
||
|
|
|||
| 31 | |||
| 32 | if (!$this->laravel['domains']->has($domain)) { |
||
| 33 | $this->error("Domain [{$domain}] does not exists."); |
||
| 34 | |||
| 35 | return E_ERROR; |
||
| 36 | } |
||
| 37 | |||
| 38 | $this->laravel['domains']->setUsed($domain); |
||
| 39 | |||
| 40 | $this->info("Domain [{$domain}] used successfully."); |
||
| 41 | |||
| 42 | return 0; |
||
| 43 | } |
||
| 57 |