| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function handle(): void |
||
| 34 | { |
||
| 35 | $site = Site::resolveFromPathOrCurrentWorkingDirectoryOrFail((string) $this->argument('site')); |
||
| 36 | |||
| 37 | $option = $this->menu( |
||
| 38 | 'Available Nginx Types', |
||
| 39 | (new AvailableConfigurations())->getList($site->nginx_conf) |
||
| 40 | )->open(); |
||
| 41 | |||
| 42 | if (!$option) { |
||
| 43 | return; |
||
| 44 | } |
||
| 45 | |||
| 46 | $site->setNginxType($option); |
||
| 47 | } |
||
| 49 |