Skip to content

Commit

Permalink
Make psalm happy again
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed May 18, 2022
1 parent db88e8e commit b9dde19
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/FederationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function initiatorUser($token): DataResponse {
return new DataResponse([
'userId' => $user->getUID(),
'displayName' => $user->getDisplayName(),
'avatar' => $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => $wopi->getEditorUid(), 'size' => WopiControllerTest::WOPI_AVATAR_SIZE])
'avatar' => $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => $wopi->getEditorUid(), 'size' => WopiController::WOPI_AVATAR_SIZE])
]);
} catch (UnknownTokenException $e) {
$this->logger->debug('COOL-Federation-Initiator-User: Token ' . $token . 'not found');
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class WopiController extends Controller {
// Signifies LOOL that document has been changed externally in this storage
const LOOL_STATUS_DOC_CHANGED = 1010;

const WOPI_AVATAR_SIZE = 32;
const WOPI_AVATAR_SIZE = 64;

public function __construct(
$appName,
Expand Down
13 changes: 12 additions & 1 deletion tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
</RedundantCondition>
</file>
<file src="lib/AppInfo/Application.php">
<InvalidArgument occurrences="1">
<code>registerEventListener</code>
</InvalidArgument>
<MissingDependency occurrences="5">
<code>MSExcel</code>
<code>MSWord</code>
Expand Down Expand Up @@ -212,14 +215,22 @@
<code>$this-&gt;userSession</code>
</UndefinedThisPropertyFetch>
</file>
<file src="lib/Service/WatermarkService.php">
<MissingDependency occurrences="3">
<code>$this-&gt;rootFolder</code>
<code>IRootFolder</code>
<code>IRootFolder</code>
</MissingDependency>
</file>
<file src="lib/Template/CollaboraTemplateProvider.php">
<InvalidReturnStatement occurrences="1"/>
<InvalidReturnType occurrences="1">
<code>array</code>
</InvalidReturnType>
</file>
<file src="lib/TemplateManager.php">
<MissingDependency occurrences="6">
<MissingDependency occurrences="7">
<code>$this-&gt;rootFolder</code>
<code>$this-&gt;rootFolder</code>
<code>$this-&gt;rootFolder</code>
<code>$this-&gt;rootFolder</code>
Expand Down

0 comments on commit b9dde19

Please sign in to comment.