Skip to content

Commit

Permalink
Issue CollaboraOnline#43: Add public access modifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote authored and AaronGilMartinez committed Nov 25, 2024
1 parent cd2efeb commit 99721ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static function permissionDenied(): Response {
* @return \Symfony\Component\HttpFoundation\Response
* The response with file contents.
*/
function wopiCheckFileInfo(string $id, Request $request) {
public function wopiCheckFileInfo(string $id, Request $request) {
$token = $request->query->get('access_token');

$jwt_payload = CoolUtils::verifyTokenForId($token, $id);
Expand Down Expand Up @@ -119,7 +119,7 @@ function wopiCheckFileInfo(string $id, Request $request) {
* @return \Symfony\Component\HttpFoundation\Response
* The response with file contents.
*/
function wopiGetFile(string $id, Request $request) {
public function wopiGetFile(string $id, Request $request) {
$token = $request->query->get('access_token');

$jwt_payload = CoolUtils::verifyTokenForId($token, $id);
Expand Down Expand Up @@ -154,7 +154,7 @@ function wopiGetFile(string $id, Request $request) {
* @return \Symfony\Component\HttpFoundation\Response
* The response.
*/
function wopiPutFile(string $id, Request $request) {
public function wopiPutFile(string $id, Request $request) {
$token = $request->query->get('access_token');
$timestamp = $request->headers->get('x-cool-wopi-timestamp');
$modified_by_user = $request->headers->get('x-cool-wopi-ismodifiedbyuser') == 'true';
Expand Down
2 changes: 1 addition & 1 deletion src/Cool/CoolUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static function setMediaSource(Media $media, File $source) {
* @return string
* The key value.
*/
static function getKey() {
public static function getKey() {
$default_config = \Drupal::config('collabora_online.settings');
$key_id = $default_config->get('cool')['key_id'];

Expand Down

0 comments on commit 99721ca

Please sign in to comment.