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