diff --git a/packages/realtime-compiler/src/Http/DashboardController.php b/packages/realtime-compiler/src/Http/DashboardController.php index 3912940387b..971b8a21824 100644 --- a/packages/realtime-compiler/src/Http/DashboardController.php +++ b/packages/realtime-compiler/src/Http/DashboardController.php @@ -109,12 +109,12 @@ protected function handlePostRequest(): JsonResponse $action = $this->request->data['action'] ?? $this->abort(400, 'Must provide action'); $action = $actions[$action] ?? $this->abort(403, "Invalid action '$action'"); - match ($action) { + match ($action) { 'openInExplorer' => $this->openInExplorer(), 'openPageInEditor' => $this->openPageInEditor(), 'openMediaFileInEditor' => $this->openMediaFileInEditor(), 'createPage' => $this->createPage(), - }; + }; return $this->response ?? new JsonResponse(200, 'OK', [ 'message' => 'Action completed successfully',