Fix some scrutinizer warning in the sharing code

* Better phpdoc
* Promper use statements
* Unused parameter
This commit is contained in:
Roeland Jago Douma 2016-03-10 21:35:22 +01:00
parent 7f16aaefc8
commit e6712c47a6
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[]