Skip to content

Commit

Permalink
refactor: format for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rivexe committed Feb 27, 2024
1 parent f680196 commit cf7e5bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions controller/editorapicontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,13 @@ public function config($fileId, $filePath = null, $shareToken = null, $version =
$avatar = $this->avatarManager->getAvatar($userId);
if ($avatar->exists()) {
$userAvatarUrl = $this->urlGenerator->getAbsoluteURL(
$this->urlGenerator->linkToRoute("core.avatar.getAvatar", [
"userId" => $userId,
"size" => 64,
])
$this->urlGenerator->linkToRoute(
"core.avatar.getAvatar",
[
"userId" => $userId,
"size" => 64,
]
)
);
$params["editorConfig"]["user"]["image"] = $userAvatarUrl;
}
Expand Down
11 changes: 7 additions & 4 deletions controller/editorcontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,13 @@ public function userInfo($userIds) {
$avatar = $this->avatarManager->getAvatar($user->getUID());
if ($avatar->exists()) {
$userAvatarUrl = $this->urlGenerator->getAbsoluteURL(
$this->urlGenerator->linkToRoute("core.avatar.getAvatar", [
"userId" => $user->getUID(),
"size" => 64,
])
$this->urlGenerator->linkToRoute(
"core.avatar.getAvatar",
[
"userId" => $userId,
"size" => 64,
]
)
);
$userData["image"] = $userAvatarUrl;
}
Expand Down

0 comments on commit cf7e5bd

Please sign in to comment.