| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.686 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 1 | public function handle(): void |
|
| 31 | { |
||
| 32 | 1 | if ($this->option('restore')) { |
|
| 33 | $this->porterLibrary->getMechanic()->restoreNetworking(); |
||
| 34 | app(Config::class)->updateIp('127.0.0.1'); |
||
| 35 | $this->porter->restart('dns'); |
||
| 36 | |||
| 37 | return; |
||
| 38 | } |
||
| 39 | |||
| 40 | 1 | $this->porterLibrary->getMechanic()->setupNetworking(); |
|
| 41 | 1 | app(Config::class)->updateIp($this->porterLibrary->getMechanic()->getHostAddress()); |
|
| 42 | $this->porter->restart('dns'); |
||
| 43 | } |
||
| 45 |