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