Skip to content

Commit

Permalink
chore: fix static analysis errors
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Dec 6, 2024
1 parent b47c6be commit d3fc9e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions lib/Db/WopiMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public function __construct(IDBConnection $db,
* @param string $serverHost
* @param string $guestDisplayname
* @param int $templateDestination
* @param bool $hideDownload
* @param bool $direct
* @param int $templateId
* @param string $share
* @return Wopi
*/
public function generateFileToken($fileId, $owner, $editor, $version, $updatable, $serverHost, $guestDisplayname = null, $templateDestination = 0, $hideDownload = false, $direct = false, $templateId = 0, $share = null) {
Expand Down
7 changes: 4 additions & 3 deletions lib/TokenManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public function generateWopiTokenForTemplate(
$serverHost,
$isGuest ? '' : null,
0,
false,
$direct,
$templateFile->getId()
);
Expand All @@ -295,9 +296,9 @@ public function generateWopiTokenForTemplate(
$updatable,
$serverHost,
$isGuest ? '' : null,
0,
$direct,
$targetFile->getId()
$targetFile->getId(),
false,
$direct
);
}

Expand Down

0 comments on commit d3fc9e1

Please sign in to comment.