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