@@ -257,6 +257,9 @@ discard block |
||
257 | 257 | 'file', 'create'); |
258 | 258 | } |
259 | 259 | |
260 | + /** |
|
261 | + * @param string $path |
|
262 | + */ |
|
260 | 263 | private function getPartFileBasePath($path) { |
261 | 264 | $partFileInStorage = \OC::$server->getConfig()->getSystemValue('part_file_in_storage', true); |
262 | 265 | if ($partFileInStorage) { |
@@ -626,7 +629,7 @@ discard block |
||
626 | 629 | /** |
627 | 630 | * Set $algo to get a specific checksum, leave null to get all checksums |
628 | 631 | * (space seperated) |
629 | - * @param null $algo |
|
632 | + * @param string $algo |
|
630 | 633 | * @return string |
631 | 634 | */ |
632 | 635 | public function getChecksum($algo = null) { |
@@ -649,6 +652,9 @@ discard block |
||
649 | 652 | return ''; |
650 | 653 | } |
651 | 654 | |
655 | + /** |
|
656 | + * @param string $string |
|
657 | + */ |
|
652 | 658 | protected function header($string) { |
653 | 659 | \header($string); |
654 | 660 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * This method should set up the required event subscriptions. |
63 | 63 | * |
64 | 64 | * @param \Sabre\DAV\Server $server |
65 | - * @return void |
|
65 | + * @return false|null |
|
66 | 66 | */ |
67 | 67 | public function initialize(\Sabre\DAV\Server $server) { |
68 | 68 | $this->server = $server; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * @param RequestInterface $request |
97 | 97 | * @param ResponseInterface $response |
98 | 98 | * |
99 | - * @return false |
|
99 | + * @return false|null |
|
100 | 100 | */ |
101 | 101 | public function setOptionsRequestHeaders(RequestInterface $request, ResponseInterface $response) { |
102 | 102 | $authorization = $request->getHeader('Authorization'); |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | * @param string $domain |
276 | 276 | * @param Sabre\HTTP\ResponseInterface $response |
277 | 277 | * @param \OCP\IConfig $config |
278 | - * @param Array $headers |
|
278 | + * @param string[] $headers |
|
279 | 279 | * |
280 | 280 | * Format of $headers: |
281 | 281 | * Array [ |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | * This function adds the CORS headers for all domains |
315 | 315 | * |
316 | 316 | * @param Sabre\HTTP\ResponseInterface $response |
317 | - * @param Array $headers |
|
317 | + * @param string[] $headers |
|
318 | 318 | * |
319 | 319 | * Format of $headers: |
320 | 320 | * Array [ |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param string $wrongPath wrong path of the entry to fix |
96 | 96 | * @param int $correctStorageNumericId numeric idea of the correct storage |
97 | 97 | * @param string $correctPath value to which to set the path of the entry |
98 | - * @return bool true for success |
|
98 | + * @return boolean|null true for success |
|
99 | 99 | */ |
100 | 100 | private function fixEntryPath(IOutput $out, $fileId, $wrongPath, $correctStorageNumericId, $correctPath) { |
101 | 101 | // delete target if exists |
@@ -125,6 +125,9 @@ discard block |
||
125 | 125 | $out->advance(1, $text); |
126 | 126 | } |
127 | 127 | |
128 | + /** |
|
129 | + * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb |
|
130 | + */ |
|
128 | 131 | private function addQueryConditionsParentIdWrongPath($qb) { |
129 | 132 | // thanks, VicDeo! |
130 | 133 | if ($this->connection->getDatabasePlatform() instanceof MySqlPlatform) { |
@@ -164,6 +167,9 @@ discard block |
||
164 | 167 | } |
165 | 168 | } |
166 | 169 | |
170 | + /** |
|
171 | + * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb |
|
172 | + */ |
|
167 | 173 | private function addQueryConditionsNonExistingParentIdEntry($qb, $storageNumericId = null) { |
168 | 174 | // Subquery for parent existence |
169 | 175 | $qbe = $this->connection->getQueryBuilder(); |
@@ -193,6 +199,9 @@ discard block |
||
193 | 199 | } |
194 | 200 | } |
195 | 201 | |
202 | + /** |
|
203 | + * @param integer $storageNumericId |
|
204 | + */ |
|
196 | 205 | private function countResultsToProcessParentIdWrongPath($storageNumericId = null) { |
197 | 206 | $qb = $this->connection->getQueryBuilder(); |
198 | 207 | $qb->select($qb->createFunction('COUNT(*)')); |
@@ -203,6 +212,9 @@ discard block |
||
203 | 212 | return $count; |
204 | 213 | } |
205 | 214 | |
215 | + /** |
|
216 | + * @param integer $storageNumericId |
|
217 | + */ |
|
206 | 218 | private function countResultsToProcessNonExistingParentIdEntry($storageNumericId = null) { |
207 | 219 | $qb = $this->connection->getQueryBuilder(); |
208 | 220 | $qb->select($qb->createFunction('COUNT(*)')); |
@@ -353,6 +365,7 @@ discard block |
||
353 | 365 | * |
354 | 366 | * @param int $storageId storage id |
355 | 367 | * @param string $path path for which to create the parent entry |
368 | + * @param integer $reuseFileId |
|
356 | 369 | * @return int file id of the newly created parent |
357 | 370 | */ |
358 | 371 | private function getOrCreateEntry($storageId, $path, $reuseFileId = null) { |
@@ -278,7 +278,7 @@ |
||
278 | 278 | } |
279 | 279 | |
280 | 280 | /** |
281 | - * @param string[] $subTree |
|
281 | + * @param string[] $subTrees |
|
282 | 282 | * @return bool |
283 | 283 | */ |
284 | 284 | private function isRequestForSubtree(array $subTrees) { |
@@ -311,6 +311,11 @@ |
||
311 | 311 | } |
312 | 312 | } |
313 | 313 | |
314 | + /** |
|
315 | + * @param InputInterface $input |
|
316 | + * @param OutputInterface $output |
|
317 | + * @param boolean $shouldRepairStoragesIndividually |
|
318 | + */ |
|
314 | 319 | protected function processUserChunks($input, $output, $users, $inputPath, $shouldRepairStoragesIndividually, $group = null) { |
315 | 320 | # no messaging level option means: no full printout but statistics |
316 | 321 | # $quiet means no print at all |
@@ -284,6 +284,9 @@ discard block |
||
284 | 284 | return $this->leave(__FUNCTION__, $result); |
285 | 285 | } |
286 | 286 | |
287 | + /** |
|
288 | + * @param string $path |
|
289 | + */ |
|
287 | 290 | private function removeFromCache($path) { |
288 | 291 | $path = trim($path, '/'); |
289 | 292 | // TODO The CappedCache does not really clear by prefix. It just clears all. |
@@ -673,7 +676,7 @@ discard block |
||
673 | 676 | * if smb.logging.enable is set to true in the config will log a leave line |
674 | 677 | * with the given function, the return value or the exception |
675 | 678 | * |
676 | - * @param $function |
|
679 | + * @param string $function |
|
677 | 680 | * @param mixed $result an exception will be logged and then returned |
678 | 681 | * @return mixed |
679 | 682 | */ |
@@ -700,6 +703,9 @@ discard block |
||
700 | 703 | return $result; |
701 | 704 | } |
702 | 705 | |
706 | + /** |
|
707 | + * @param string $function |
|
708 | + */ |
|
703 | 709 | private function swallow($function, \Exception $exception) { |
704 | 710 | if (\OC::$server->getConfig()->getSystemValue('smb.logging.enable', false) === true) { |
705 | 711 | Util::writeLog('smb', "$function swallowing ".get_class($exception) |
@@ -22,7 +22,6 @@ |
||
22 | 22 | namespace OC\Repair; |
23 | 23 | |
24 | 24 | use OCP\DB\QueryBuilder\IQueryBuilder; |
25 | -use OCP\IConfig; |
|
26 | 25 | use OCP\IDBConnection; |
27 | 26 | use OCP\Migration\IOutput; |
28 | 27 | use OCP\Migration\IRepairStep; |
@@ -180,10 +180,10 @@ |
||
180 | 180 | * inform recipient about public link share |
181 | 181 | * |
182 | 182 | * @param string $recipient recipient email address |
183 | - * @param string $filename the shared file |
|
184 | - * @param string $link the public link |
|
185 | 183 | * @param array $options allows ['cc'] and ['bcc'] recipients |
186 | - * @param int $expiration expiration date (timestamp) |
|
184 | + * @param string $subject |
|
185 | + * @param boolean|string $htmlBody |
|
186 | + * @param boolean|string $textBody |
|
187 | 187 | * @return string[] $result of failed recipients |
188 | 188 | */ |
189 | 189 | public function sendLinkShareMailFromBody($recipient, $subject, $htmlBody, $textBody, $options = array()) { |