@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | private $userFolder; |
89 | 89 | |
90 | 90 | /** |
91 | - * @param Tree $tree |
|
91 | + * @param ObjectTree $tree |
|
92 | 92 | * @param View $view |
93 | 93 | */ |
94 | 94 | public function __construct(Tree $tree, |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * This will be used in the {DAV:}supported-report-set property. |
134 | 134 | * |
135 | 135 | * @param string $uri |
136 | - * @return array |
|
136 | + * @return string[] |
|
137 | 137 | */ |
138 | 138 | public function getSupportedReportSet($uri) { |
139 | 139 | return [self::REPORT_NAME]; |
@@ -264,6 +264,7 @@ discard block |
||
264 | 264 | * |
265 | 265 | * @param string[] $requestedProps requested properties |
266 | 266 | * @param Node[] nodes nodes for which to fetch and prepare responses |
267 | + * @param Node[] $nodes |
|
267 | 268 | * @return Response[] |
268 | 269 | */ |
269 | 270 | public function prepareResponses($requestedProps, $nodes) { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
58 | - * @param \Sabre\DAV\INode $rootNode |
|
58 | + * @param Directory $rootNode |
|
59 | 59 | * @param \OC\Files\View $view |
60 | 60 | * @param \OCP\Files\Mount\IMountManager $mountManager |
61 | 61 | */ |
@@ -46,7 +46,7 @@ |
||
46 | 46 | private $tree; |
47 | 47 | |
48 | 48 | /** |
49 | - * @param \Sabre\DAV\Tree $tree tree |
|
49 | + * @param ObjectTree $tree tree |
|
50 | 50 | */ |
51 | 51 | public function __construct(Tree $tree) { |
52 | 52 | $this->tree = $tree; |
@@ -271,8 +271,8 @@ |
||
271 | 271 | } |
272 | 272 | |
273 | 273 | /** |
274 | - * @param $username |
|
275 | - * @param $password |
|
274 | + * @param string $username |
|
275 | + * @param string $password |
|
276 | 276 | * @return bool |
277 | 277 | */ |
278 | 278 | public function auth($username, $password) { |
@@ -327,7 +327,7 @@ |
||
327 | 327 | * split user and remote from federated cloud id |
328 | 328 | * |
329 | 329 | * @param string $address federated share address |
330 | - * @return array [user, remoteURL] |
|
330 | + * @return string[] [user, remoteURL] |
|
331 | 331 | * @throws \Exception |
332 | 332 | */ |
333 | 333 | public function splitUserRemote($address) { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * make preview_icon available as a simple function |
184 | 184 | * Returns the path to the preview of the image. |
185 | 185 | * @param string $path path of file |
186 | - * @return link to the preview |
|
186 | + * @return string to the preview |
|
187 | 187 | * |
188 | 188 | * For further information have a look at OC_Helper::previewIcon |
189 | 189 | */ |
@@ -193,6 +193,7 @@ discard block |
||
193 | 193 | |
194 | 194 | /** |
195 | 195 | * @param string $path |
196 | + * @param string $token |
|
196 | 197 | */ |
197 | 198 | function publicPreview_icon ( $path, $token ) { |
198 | 199 | return OC_Helper::publicPreviewIcon( $path, $token ); |
@@ -45,6 +45,7 @@ discard block |
||
45 | 45 | class Files { |
46 | 46 | /** |
47 | 47 | * Recusive deletion of folders |
48 | + * @param string $dir |
|
48 | 49 | * @return bool |
49 | 50 | * @since 5.0.0 |
50 | 51 | */ |
@@ -66,7 +67,7 @@ discard block |
||
66 | 67 | /** |
67 | 68 | * Search for files by mimetype |
68 | 69 | * @param string $mimetype |
69 | - * @return array |
|
70 | + * @return \OC\Files\FileInfo[] |
|
70 | 71 | * @since 6.0.0 |
71 | 72 | */ |
72 | 73 | static public function searchByMime( $mimetype ) { |
@@ -25,7 +25,6 @@ |
||
25 | 25 | use OCA\DAV\Connector\Sabre\Auth; |
26 | 26 | use OCA\DAV\DAV\Sharing\Xml\Invite; |
27 | 27 | use OCP\IRequest; |
28 | -use Sabre\DAV\Exception\BadRequest; |
|
29 | 28 | use Sabre\DAV\Exception\NotFound; |
30 | 29 | use Sabre\DAV\INode; |
31 | 30 | use Sabre\DAV\PropFind; |
@@ -22,11 +22,6 @@ |
||
22 | 22 | namespace OCA\DAV\Command; |
23 | 23 | |
24 | 24 | use OCA\DAV\CardDAV\CardDavBackend; |
25 | -use OCA\DAV\Connector\Sabre\Principal; |
|
26 | -use OCP\IConfig; |
|
27 | -use OCP\IDBConnection; |
|
28 | -use OCP\IGroupManager; |
|
29 | -use OCP\ILogger; |
|
30 | 25 | use OCP\IUserManager; |
31 | 26 | use Symfony\Component\Console\Command\Command; |
32 | 27 | use Symfony\Component\Console\Input\InputArgument; |