Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
30 | public function handle(): void |
||
31 | { |
||
32 | $name = $this->argument('site') ?: Site::nameFromPath($this->cli->currentWorkingDirectory()); |
||
33 | |||
34 | if (! $name) { |
||
35 | throw new \Exception("Site '{$name}' not found."); |
||
36 | } |
||
37 | |||
38 | $site = Site::firstOrCreateForName($name); |
||
39 | $site->secure(); |
||
40 | } |
||
42 |