Skip to content

Commit

Permalink
Issue CollaboraOnline#43: Remove unreachable break in switch, fix ind…
Browse files Browse the repository at this point in the history
…entation.
  • Loading branch information
donquixote committed Nov 8, 2024
1 parent 8f660e9 commit 9291887
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9291887

Please sign in to comment.