summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-04 19:32:22 -0300
committerMorris Jobke <hey@morrisjobke.de>2017-05-04 19:32:22 -0300
commit49e958fa120b701e5a5b0f5caf76f671325995e6 (patch)
treeb3964bf78df19ea763589b52e3ec6af7d55e647d /apps
parent8dc2749296b44cc79a1fe50f298f3b2034970da4 (diff)
downloadnextcloud-server-49e958fa120b701e5a5b0f5caf76f671325995e6.tar.gz
nextcloud-server-49e958fa120b701e5a5b0f5caf76f671325995e6.zip
Enforce type hints in dav app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/Directory.php4
-rw-r--r--apps/dav/lib/Connector/Sabre/Node.php4
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php
index 435f47ee561..cb5a2ab8123 100644
--- a/apps/dav/lib/Connector/Sabre/Directory.php
+++ b/apps/dav/lib/Connector/Sabre/Directory.php
@@ -30,9 +30,11 @@
*/
namespace OCA\DAV\Connector\Sabre;
+use OC\Files\View;
use OCA\DAV\Connector\Sabre\Exception\Forbidden;
use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
use OCA\DAV\Connector\Sabre\Exception\FileLocked;
+use OCP\Files\FileInfo;
use OCP\Files\ForbiddenException;
use OCP\Files\InvalidPathException;
use OCP\Files\StorageNotAvailableException;
@@ -76,7 +78,7 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node
* @param ObjectTree|null $tree
* @param \OCP\Share\IManager $shareManager
*/
- public function __construct($view, $info, $tree = null, $shareManager = null) {
+ public function __construct(View $view, FileInfo $info, $tree = null, $shareManager = null) {
parent::__construct($view, $info, $shareManager);
$this->tree = $tree;
}
diff --git a/apps/dav/lib/Connector/Sabre/Node.php b/apps/dav/lib/Connector/Sabre/Node.php
index 3e2204cf661..06933f53e76 100644
--- a/apps/dav/lib/Connector/Sabre/Node.php
+++ b/apps/dav/lib/Connector/Sabre/Node.php
@@ -34,7 +34,9 @@
namespace OCA\DAV\Connector\Sabre;
use OC\Files\Mount\MoveableMount;
+use OC\Files\View;
use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
+use OCP\Files\FileInfo;
use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\IManager;
@@ -77,7 +79,7 @@ abstract class Node implements \Sabre\DAV\INode {
* @param \OCP\Files\FileInfo $info
* @param IManager $shareManager
*/
- public function __construct($view, $info, IManager $shareManager = null) {
+ public function __construct(View $view, FileInfo $info, IManager $shareManager = null) {
$this->fileView = $view;
$this->path = $this->fileView->getRelativePath($info->getPath());
$this->info = $info;