@@ -232,6 +232,9 @@ |
||
| 232 | 232 | return '"' . $this->info->getEtag() . '"'; |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | + /** |
|
| 236 | + * @param string $path |
|
| 237 | + */ |
|
| 235 | 238 | private function getPartFileBasePath($path) { |
| 236 | 239 | $partFileInStorage = \OC::$server->getConfig()->getSystemValue('part_file_in_storage', true); |
| 237 | 240 | if ($partFileInStorage) { |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use OCA\DAV\Connector\Sabre\Auth; |
| 25 | 25 | use OCA\DAV\DAV\Sharing\Xml\Invite; |
| 26 | 26 | use OCP\IRequest; |
| 27 | -use Sabre\DAV\Exception\BadRequest; |
|
| 28 | 27 | use Sabre\DAV\Exception\NotFound; |
| 29 | 28 | use Sabre\DAV\INode; |
| 30 | 29 | use Sabre\DAV\PropFind; |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | * Returns the list of members for a group-principal |
| 133 | 133 | * |
| 134 | 134 | * @param string $principal |
| 135 | - * @return array |
|
| 135 | + * @return string[] |
|
| 136 | 136 | */ |
| 137 | 137 | function getGroupMemberSet($principal) { |
| 138 | 138 | // TODO: for now the group principal has only one member, the user itself |
@@ -29,9 +29,7 @@ |
||
| 29 | 29 | use Sabre\DAV\Exception\BadRequest; |
| 30 | 30 | use Sabre\DAV\Exception\Conflict; |
| 31 | 31 | use Sabre\DAV\Exception\Forbidden; |
| 32 | -use Sabre\DAV\Exception\NotFound; |
|
| 33 | 32 | use Sabre\DAV\Exception\UnsupportedMediaType; |
| 34 | - |
|
| 35 | 33 | use OCP\SystemTag\ISystemTag; |
| 36 | 34 | use OCP\SystemTag\ISystemTagManager; |
| 37 | 35 | use OCP\SystemTag\TagAlreadyExistsException; |
@@ -26,13 +26,11 @@ |
||
| 26 | 26 | use Sabre\DAV\Exception\NotFound; |
| 27 | 27 | use Sabre\DAV\Exception\BadRequest; |
| 28 | 28 | use Sabre\DAV\ICollection; |
| 29 | - |
|
| 30 | 29 | use OCP\SystemTag\ISystemTagManager; |
| 31 | 30 | use OCP\SystemTag\ISystemTag; |
| 32 | 31 | use OCP\SystemTag\TagNotFoundException; |
| 33 | 32 | use OCP\IGroupManager; |
| 34 | 33 | use OCP\IUserSession; |
| 35 | -use OC\User\NoUserException; |
|
| 36 | 34 | |
| 37 | 35 | class SystemTagsByIdCollection implements ICollection { |
| 38 | 36 | |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | use Sabre\DAV\Exception\BadRequest; |
| 27 | 27 | use Sabre\DAV\Exception\PreconditionFailed; |
| 28 | 28 | use Sabre\DAV\ICollection; |
| 29 | - |
|
| 30 | 29 | use OCP\SystemTag\ISystemTagManager; |
| 31 | 30 | use OCP\SystemTag\ISystemTagObjectMapper; |
| 32 | 31 | use OCP\SystemTag\ISystemTag; |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | $this->user = $user; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $tagId |
|
| 94 | + */ |
|
| 92 | 95 | function createFile($tagId, $data = null) { |
| 93 | 96 | try { |
| 94 | 97 | $tags = $this->tagManager->getTagsByIds([$tagId]); |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | use Sabre\DAV\Exception\MethodNotAllowed; |
| 27 | 27 | use Sabre\DAV\Exception\NotFound; |
| 28 | 28 | use Sabre\DAV\ICollection; |
| 29 | - |
|
| 30 | 29 | use OCP\SystemTag\ISystemTagManager; |
| 31 | 30 | use OCP\SystemTag\ISystemTagObjectMapper; |
| 32 | 31 | use OCP\IUserSession; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * @param string $data |
| 121 | - * @return int |
|
| 121 | + * @return boolean |
|
| 122 | 122 | */ |
| 123 | 123 | public function stream_write($data) { |
| 124 | 124 | return false; |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /** |
| 227 | - * @param $pos |
|
| 227 | + * @param integer $pos |
|
| 228 | 228 | * @return IFile | null |
| 229 | 229 | */ |
| 230 | 230 | private function getNodeForPosition($pos) { |
@@ -369,7 +369,7 @@ |
||
| 369 | 369 | * @param string $path path to the file which should be updated |
| 370 | 370 | * @param string $uid of the user who performs the operation |
| 371 | 371 | * @param array $accessList who has access to the file contains the key 'users' and 'public' |
| 372 | - * @return boolean |
|
| 372 | + * @return null|boolean |
|
| 373 | 373 | */ |
| 374 | 374 | public function update($path, $uid, array $accessList) { |
| 375 | 375 | |