@@ -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 |
@@ -83,6 +83,9 @@ |
||
83 | 83 | $this->isAdmin = $isAdmin; |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param string $tagId |
|
88 | + */ |
|
86 | 89 | function createFile($tagId, $data = null) { |
87 | 90 | try { |
88 | 91 | if (!$this->isAdmin) { |
@@ -488,7 +488,7 @@ |
||
488 | 488 | |
489 | 489 | |
490 | 490 | /** |
491 | - * @param $path |
|
491 | + * @param string $path |
|
492 | 492 | * @param $uid |
493 | 493 | * @return mixed |
494 | 494 | */ |
@@ -230,6 +230,9 @@ |
||
230 | 230 | return false; |
231 | 231 | } |
232 | 232 | |
233 | + /** |
|
234 | + * @param string $path |
|
235 | + */ |
|
233 | 236 | private function batchDelete ($path = null) { |
234 | 237 | $params = array( |
235 | 238 | 'Bucket' => $this->bucket |
@@ -75,6 +75,9 @@ |
||
75 | 75 | return false; |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param string $path |
|
80 | + */ |
|
78 | 81 | private function setMetaData($path, $metaData) { |
79 | 82 | $this->metaData[ltrim($path, '/')] = $metaData; |
80 | 83 | } |
@@ -259,7 +259,7 @@ |
||
259 | 259 | * |
260 | 260 | * @param int $id |
261 | 261 | * @param string $token |
262 | - * @return array |
|
262 | + * @return string |
|
263 | 263 | */ |
264 | 264 | private function getShare($id, $token) { |
265 | 265 | $query = \OCP\DB::prepare('SELECT * FROM `*PREFIX*share` WHERE `id` = ? AND `token` = ? AND `share_type` = ?'); |
@@ -325,6 +325,9 @@ |
||
325 | 325 | return $result; |
326 | 326 | } |
327 | 327 | |
328 | + /** |
|
329 | + * @param string $mountPoint |
|
330 | + */ |
|
328 | 331 | public function removeShare($mountPoint) { |
329 | 332 | $mountPoint = $this->stripPath($mountPoint); |
330 | 333 | $hash = md5($mountPoint); |
@@ -514,6 +514,9 @@ |
||
514 | 514 | return $this->share['file_target']; |
515 | 515 | } |
516 | 516 | |
517 | + /** |
|
518 | + * @param string $path |
|
519 | + */ |
|
517 | 520 | public function setMountPoint($path) { |
518 | 521 | $this->share['file_target'] = $path; |
519 | 522 | } |
@@ -110,7 +110,7 @@ |
||
110 | 110 | * check if it is a file located in data/user/files only files in the |
111 | 111 | * 'files' directory should be moved to the trash |
112 | 112 | * |
113 | - * @param $path |
|
113 | + * @param string $path |
|
114 | 114 | * @return bool |
115 | 115 | */ |
116 | 116 | protected function shouldMoveToTrash($path){ |