]> source.dussan.org Git - nextcloud-server.git/commitdiff
Replace Share with IShare and add missing return. 21596/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 26 Jun 2020 08:57:14 +0000 (10:57 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 26 Jun 2020 08:57:55 +0000 (10:57 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/private/Share20/Manager.php

index 91fb11adc76be8638b7d9bb821178996bd9200ee..289545f0a46e982910c40baed5e2b4fce062b98c 100644 (file)
@@ -687,7 +687,7 @@ class Manager implements IManager {
         * Share a path
         *
         * @param IShare $share
-        * @return Share The share object
+        * @return IShare The share object
         * @throws \Exception
         *
         * TODO: handle link share permissions or check them
@@ -1212,7 +1212,7 @@ class Manager implements IManager {
                list($providerId, ) = $this->splitFullId($share->getFullId());
                $provider = $this->factory->getProvider($providerId);
 
-               $provider->move($share, $recipientId);
+               return $provider->move($share, $recipientId);
        }
 
        public function getSharesInFolder($userId, Folder $node, $reshares = false) {
@@ -1387,7 +1387,7 @@ class Manager implements IManager {
         * Get the share by token possible with password
         *
         * @param string $token
-        * @return Share
+        * @return IShare
         *
         * @throws ShareNotFound
         */