Merge pull request #23121 from owncloud/scrutinizer_share_fixes

Fix some scrutinizer warning in the sharing code
This commit is contained in:
Thomas Müller 2016-03-10 22:17:06 +01:00
commit b502667f3a
3 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@ class OCSShareWrapper {
\OC::$server->getUserSession()->getUser());
}
public function getAllShares($params) {
public function getAllShares() {
return $this->getShare20OCS()->getShares();
}

View file

@ -50,7 +50,7 @@ class Share20OCS {
private $request;
/** @var IRootFolder */
private $rootFolder;
/** @var IUrlGenerator */
/** @var IURLGenerator */
private $urlGenerator;
/** @var IUser */
private $currentUser;

View file

@ -23,7 +23,7 @@ namespace OCP\Share;
use OCP\IUser;
use OC\Share20\Exception\ShareNotFound;
use OCP\Share\Exceptions\ShareNotFound;
/**
* Interface IManager
@ -106,7 +106,7 @@ interface IManager {
*
* @param string $userId
* @param int $shareType
* @param File|Folder|null $node
* @param \OCP\Files\File|\OCP\Files\Folder|null $node
* @param int $limit The maximum number of shares returned, -1 for all
* @param int $offset
* @return IShare[]