@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @param IUser $user |
53 | 53 | * @param IStorageFactory $loader |
54 | - * @return \OCP\Files\Mount\IMountPoint |
|
54 | + * @return null|MountPoint |
|
55 | 55 | */ |
56 | 56 | public function getHomeMountForUser(IUser $user, IStorageFactory $loader) { |
57 | 57 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | /** |
71 | 71 | * @param IUser $user |
72 | - * @return array|null |
|
72 | + * @return IStorageFactory|null |
|
73 | 73 | */ |
74 | 74 | private function getSingleBucketObjectStoreConfig(IUser $user) { |
75 | 75 | $config = $this->config->getSystemValue('objectstore'); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @param IUser $user |
96 | - * @return array|null |
|
96 | + * @return IStorageFactory|null |
|
97 | 97 | */ |
98 | 98 | private function getMultiBucketObjectStoreConfig(IUser $user) { |
99 | 99 | $config = $this->config->getSystemValue('objectstore_multibucket'); |
@@ -69,7 +69,7 @@ |
||
69 | 69 | /** |
70 | 70 | * Generate a keypair |
71 | 71 | * |
72 | - * @param int $keyLenth |
|
72 | + * @param integer $keyLength |
|
73 | 73 | * @return array ['privatekey' => $privateKey, 'publickey' => $publicKey] |
74 | 74 | */ |
75 | 75 | public function createKey($keyLength) { |
@@ -126,7 +126,7 @@ |
||
126 | 126 | |
127 | 127 | /** |
128 | 128 | * @param string $data |
129 | - * @return int |
|
129 | + * @return boolean |
|
130 | 130 | */ |
131 | 131 | public function stream_write($data) { |
132 | 132 | return false; |
@@ -176,7 +176,7 @@ |
||
176 | 176 | /** |
177 | 177 | * Create the circle share provider |
178 | 178 | * |
179 | - * @return FederatedShareProvider |
|
179 | + * @return null|\OCA\Circles\ShareByCircleProvider |
|
180 | 180 | * |
181 | 181 | * @suppress PhanUndeclaredClassMethod |
182 | 182 | */ |
@@ -271,7 +271,7 @@ |
||
271 | 271 | * Return the explicit version for the aliases; current, next, prev, latest |
272 | 272 | * |
273 | 273 | * @param string $alias |
274 | - * @return mixed|null|string |
|
274 | + * @return string |
|
275 | 275 | */ |
276 | 276 | public function getMigration($alias) { |
277 | 277 | switch($alias) { |
@@ -83,6 +83,9 @@ |
||
83 | 83 | } while (count($rows) > 0); |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param string $path |
|
88 | + */ |
|
86 | 89 | private function getId($storage, $path) { |
87 | 90 | if (!$this->getIdQuery) { |
88 | 91 | $builder = $this->connection->getQueryBuilder(); |
@@ -47,6 +47,7 @@ discard block |
||
47 | 47 | class Files { |
48 | 48 | /** |
49 | 49 | * Recusive deletion of folders |
50 | + * @param string $dir |
|
50 | 51 | * @return bool |
51 | 52 | * @since 5.0.0 |
52 | 53 | */ |
@@ -68,7 +69,7 @@ discard block |
||
68 | 69 | /** |
69 | 70 | * Search for files by mimetype |
70 | 71 | * @param string $mimetype |
71 | - * @return array |
|
72 | + * @return \OC\Files\FileInfo[] |
|
72 | 73 | * @since 6.0.0 |
73 | 74 | */ |
74 | 75 | static public function searchByMime($mimetype) { |
@@ -370,6 +370,7 @@ |
||
370 | 370 | |
371 | 371 | /** |
372 | 372 | * write back temporary files |
373 | + * @param string $path |
|
373 | 374 | */ |
374 | 375 | public function writeBack($tmpFile, $path) { |
375 | 376 | $this->addFile($path, $tmpFile); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * |
183 | 183 | * By default this excludes the automatically generated birthday calendar |
184 | 184 | * |
185 | - * @param $principalUri |
|
185 | + * @param string $principalUri |
|
186 | 186 | * @param bool $excludeBirthday |
187 | 187 | * @return int |
188 | 188 | */ |
@@ -351,6 +351,9 @@ discard block |
||
351 | 351 | return array_values($calendars); |
352 | 352 | } |
353 | 353 | |
354 | + /** |
|
355 | + * @param string $principalUri |
|
356 | + */ |
|
354 | 357 | public function getUsersOwnCalendars($principalUri) { |
355 | 358 | $principalUri = $this->convertPrincipal($principalUri, true); |
356 | 359 | $fields = array_values($this->propertyMap); |
@@ -946,7 +949,7 @@ discard block |
||
946 | 949 | * calendar-data. If the result of a subsequent GET to this object is not |
947 | 950 | * the exact same as this request body, you should omit the ETag. |
948 | 951 | * |
949 | - * @param mixed $calendarId |
|
952 | + * @param integer $calendarId |
|
950 | 953 | * @param string $objectUri |
951 | 954 | * @param string $calendarData |
952 | 955 | * @return string |
@@ -1000,7 +1003,7 @@ discard block |
||
1000 | 1003 | * calendar-data. If the result of a subsequent GET to this object is not |
1001 | 1004 | * the exact same as this request body, you should omit the ETag. |
1002 | 1005 | * |
1003 | - * @param mixed $calendarId |
|
1006 | + * @param integer $calendarId |
|
1004 | 1007 | * @param string $objectUri |
1005 | 1008 | * @param string $calendarData |
1006 | 1009 | * @return string |
@@ -1563,7 +1566,7 @@ discard block |
||
1563 | 1566 | * @param string $principalUri |
1564 | 1567 | * @param string $uri |
1565 | 1568 | * @param array $properties |
1566 | - * @return mixed |
|
1569 | + * @return integer |
|
1567 | 1570 | */ |
1568 | 1571 | function createSubscription($principalUri, $uri, array $properties) { |
1569 | 1572 | |
@@ -2103,6 +2106,9 @@ discard block |
||
2103 | 2106 | return (int)$objectIds['id']; |
2104 | 2107 | } |
2105 | 2108 | |
2109 | + /** |
|
2110 | + * @param boolean $toV2 |
|
2111 | + */ |
|
2106 | 2112 | private function convertPrincipal($principalUri, $toV2) { |
2107 | 2113 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
2108 | 2114 | list(, $name) = Uri\split($principalUri); |