@@ -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) { |
@@ -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; |
@@ -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; |
@@ -27,11 +27,8 @@ |
||
27 | 27 | use OCA\Files_external\NotFoundException; |
28 | 28 | use OCA\Files_external\Service\GlobalStoragesService; |
29 | 29 | use Symfony\Component\Console\Command\Command; |
30 | -use Symfony\Component\Console\Helper\Table; |
|
31 | -use Symfony\Component\Console\Helper\TableHelper; |
|
32 | 30 | use Symfony\Component\Console\Input\InputArgument; |
33 | 31 | use Symfony\Component\Console\Input\InputInterface; |
34 | -use Symfony\Component\Console\Input\InputOption; |
|
35 | 32 | use Symfony\Component\Console\Output\OutputInterface; |
36 | 33 | |
37 | 34 | class Config extends Base { |
@@ -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 | } |
@@ -32,7 +32,6 @@ |
||
32 | 32 | */ |
33 | 33 | namespace OC\Files\Storage; |
34 | 34 | use Icewind\Streams\IteratorDirectory; |
35 | - |
|
36 | 35 | use Icewind\Streams\RetryWrapper; |
37 | 36 | use phpseclib\Net\SFTP\Stream; |
38 | 37 |
@@ -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` = ?'); |
@@ -31,7 +31,6 @@ |
||
31 | 31 | use OCP\Files\IRootFolder; |
32 | 32 | use OCP\Share; |
33 | 33 | use OCP\Share\IManager; |
34 | - |
|
35 | 34 | use OCP\Share\Exceptions\ShareNotFound; |
36 | 35 | use OCP\Share\Exceptions\GenericShareException; |
37 | 36 |
@@ -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); |