@@ -25,11 +25,11 @@ |
||
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | if ($res->getStatusCode() == Response::HTTP_OK) { |
| 28 | - $lines = explode("\n", $res->getBody()->getContents()); |
|
| 29 | - $parts = explode(': ', $lines[0]); |
|
| 30 | - $latest = $parts[1]; |
|
| 28 | + $lines = explode("\n", $res->getBody()->getContents()); |
|
| 29 | + $parts = explode(': ', $lines[0]); |
|
| 30 | + $latest = $parts[1]; |
|
| 31 | 31 | |
| 32 | - return $latest; |
|
| 32 | + return $latest; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // GitHub |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | if (empty($attributes['rcon'])) { |
| 73 | - $attributes['rcon'] = Str::random(self::DEFAULT_RCON_PASSWORD_LENGTH); |
|
| 73 | + $attributes['rcon'] = Str::random(self::DEFAULT_RCON_PASSWORD_LENGTH); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $dedicatedServer = DedicatedServer::findOrFail($attributes['ds_id']); |