mirror of https://github.com/nextcloud/photos
Some fixes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
7527a16334
commit
3c16d2785c
|
@ -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;
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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->rootFolder</code>
|
||||
<code>$this->rootFolder</code>
|
||||
|
|
Loading…
Reference in New Issue