Some fixes

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-12-29 16:18:53 +01:00
parent 7527a16334
commit 3c16d2785c
No known key found for this signature in database
GPG Key ID: F941078878347C0C
3 changed files with 4 additions and 8 deletions

View File

@ -33,7 +33,7 @@ use OCP\AppFramework\Http\JSONResponse;
use OCP\Files\File;
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
use OCP\FIles\Node;
use OCP\Files\Node;
use OCP\Files\NotFoundException;
use OCP\Files\StorageNotAvailableException;
use OCP\IPreview;
@ -43,10 +43,10 @@ class AlbumsController extends Controller {
/** @var string */
private $userId;
/** @var IRootFolder */
private $rootFolder;
/** @var IPreview */
private $previewManager;

View File

@ -77,7 +77,7 @@ class ApiController extends Controller {
* @NoAdminRequired
* @NoCSRFRequired
*/
public function serviceWorker() {
public function serviceWorker(): StreamResponse {
$response = new StreamResponse(__DIR__.'/../../js/photos-service-worker.js');
$response->setHeaders([
'Content-Type' => 'application/javascript',

View File

@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.3.1@2feba22a005a18bf31d4c7b9bdb9252c73897476">
<file src="lib/Controller/AlbumsController.php">
<InvalidClass occurrences="2">
<code>$node</code>
<code>Node</code>
</InvalidClass>
<MissingDependency occurrences="5">
<code>$this-&gt;rootFolder</code>
<code>$this-&gt;rootFolder</code>