From 9291887b4254cba697f90514c302d927f9eab732 Mon Sep 17 00:00:00 2001 From: Andreas Hennings Date: Thu, 7 Nov 2024 21:49:40 +0100 Subject: [PATCH] Issue #43: Remove unreachable break in switch, fix indentation. --- src/Controller/WopiController.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Controller/WopiController.php b/src/Controller/WopiController.php index 4904894f..18c20567 100644 --- a/src/Controller/WopiController.php +++ b/src/Controller/WopiController.php @@ -259,15 +259,12 @@ function wopiPutFile(string $id, Request $request) { public function wopi(string $action, string $id, Request $request) { $returnCode = Response::HTTP_BAD_REQUEST; switch ($action) { - case 'info': - return $this->wopiCheckFileInfo($id, $request); - break; - case 'content': - return $this->wopiGetFile($id, $request); - break; - case 'save': - return $this->wopiPutFile($id, $request); - break; + case 'info': + return $this->wopiCheckFileInfo($id, $request); + case 'content': + return $this->wopiGetFile($id, $request); + case 'save': + return $this->wopiPutFile($id, $request); } $response = new Response(