Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-04-21 14:00:21 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-04-21 19:09:00 +0300
commit1029f588a983912dd25c186a3fe551a8ef287498 (patch)
tree17a2ea819e6ee122e88f18a090f48353b39e7af3 /lib
parent645b33f21b81f4142d9c4d5b140ca641082a21e6 (diff)
Make psalm happy
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/DocumentService.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Service/DocumentService.php b/lib/Service/DocumentService.php
index f88988d52..20ed65242 100644
--- a/lib/Service/DocumentService.php
+++ b/lib/Service/DocumentService.php
@@ -30,8 +30,6 @@ use \InvalidArgumentException;
use OCA\Text\AppInfo\Application;
use OCA\Text\Db\Session;
use OCA\Text\Db\SessionMapper;
-use OCP\AppFramework\Http;
-use OCP\AppFramework\Http\DataResponse;
use OCP\DirectEditing\IManager;
use OCP\Files\Lock\ILock;
use OCP\Files\Lock\ILockManager;
@@ -42,7 +40,6 @@ use OCP\IRequest;
use OCP\Lock\ILockingProvider;
use OCP\PreConditionNotMetException;
use function json_encode;
-use OC\Files\Node\File;
use OCA\Text\Db\Document;
use OCA\Text\Db\DocumentMapper;
use OCA\Text\Db\Step;
@@ -54,11 +51,11 @@ use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Db\Entity;
use OCP\Constants;
use OCP\Files\Folder;
-use OCP\Files\GenericFileException;
use OCP\Files\IAppData;
use OCP\Files\InvalidPathException;
use OCP\Files\IRootFolder;
use OCP\Files\Node;
+use OCP\Files\File;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use OCP\Files\SimpleFS\ISimpleFile;
@@ -258,7 +255,7 @@ class DocumentService {
}
/**
- * @param $file
+ * @param File $file
* @param $documentId
* @param $version
* @param $autoaveDocument
@@ -463,7 +460,6 @@ class DocumentService {
return null;
}
return array_shift($locks);
-
}
/**