Fix some scrutinizer warning in the sharing code
* Better phpdoc * Promper use statements * Unused parameter
This commit is contained in:
parent
7f16aaefc8
commit
e6712c47a6
3 changed files with 4 additions and 4 deletions
|
@ -36,7 +36,7 @@ class OCSShareWrapper {
|
||||||
\OC::$server->getUserSession()->getUser());
|
\OC::$server->getUserSession()->getUser());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAllShares($params) {
|
public function getAllShares() {
|
||||||
return $this->getShare20OCS()->getShares();
|
return $this->getShare20OCS()->getShares();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ class Share20OCS {
|
||||||
private $request;
|
private $request;
|
||||||
/** @var IRootFolder */
|
/** @var IRootFolder */
|
||||||
private $rootFolder;
|
private $rootFolder;
|
||||||
/** @var IUrlGenerator */
|
/** @var IURLGenerator */
|
||||||
private $urlGenerator;
|
private $urlGenerator;
|
||||||
/** @var IUser */
|
/** @var IUser */
|
||||||
private $currentUser;
|
private $currentUser;
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace OCP\Share;
|
||||||
|
|
||||||
use OCP\IUser;
|
use OCP\IUser;
|
||||||
|
|
||||||
use OC\Share20\Exception\ShareNotFound;
|
use OCP\Share\Exceptions\ShareNotFound;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface IManager
|
* Interface IManager
|
||||||
|
@ -106,7 +106,7 @@ interface IManager {
|
||||||
*
|
*
|
||||||
* @param string $userId
|
* @param string $userId
|
||||||
* @param int $shareType
|
* @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 $limit The maximum number of shares returned, -1 for all
|
||||||
* @param int $offset
|
* @param int $offset
|
||||||
* @return IShare[]
|
* @return IShare[]
|
||||||
|
|
Loading…
Reference in a new issue