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
committerJulius Härtl <jus@bitgrid.net>2022-04-21 14:27:44 +0300
commitff819afde961a86bf51ea66699260b8c45a02f53 (patch)
treef70a4b030459da64103d51745e94394fda549ed2 /lib
parentede33b50d4269b425521ff2d4669c13d7be58874 (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);
-
}
/**