diff --git a/app/Http/Controllers/App/Mission/ServerController.php b/app/Http/Controllers/App/Mission/ServerController.php index 2108664..4335de3 100644 --- a/app/Http/Controllers/App/Mission/ServerController.php +++ b/app/Http/Controllers/App/Mission/ServerController.php @@ -270,7 +270,9 @@ public function download(Request $request, string $instanceName): \Illuminate\Ht abort(404); } - if (!in_array($instanceName, self::$instances)) return abort(404); + if (!in_array($instanceName, self::$instances)) { + abort(404); + } $instanceView = $this->azureService->getInstanceView($instanceName); $pass = false; @@ -283,7 +285,9 @@ public function download(Request $request, string $instanceName): \Illuminate\Ht } } - if (!$pass) return abort(404); + if (!$pass) { + abort(404); + } $ip = $this->getIpAddress($instanceName); $port = '3389';