@@ -194,6 +194,9 @@ |
||
194 | 194 | return $this->getCache()->getStatus($this->getSourcePath($file)); |
195 | 195 | } |
196 | 196 | |
197 | + /** |
|
198 | + * @param ICacheEntry[] $results |
|
199 | + */ |
|
197 | 200 | private function formatSearchResults($results) { |
198 | 201 | $results = array_filter($results, array($this, 'filterCacheEntry')); |
199 | 202 | $results = array_values($results); |
@@ -156,7 +156,7 @@ |
||
156 | 156 | /** |
157 | 157 | * @param string $gid |
158 | 158 | * @param string $displayName |
159 | - * @return \OCP\IGroup |
|
159 | + * @return null|Group |
|
160 | 160 | */ |
161 | 161 | protected function getGroupObject($gid, $displayName = null) { |
162 | 162 | $backends = array(); |
@@ -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 | function preview_icon( $path ) { |
189 | 189 | return \OC::$server->getURLGenerator()->linkToRoute('core.Preview.getPreview', ['x' => 32, 'y' => 32, 'file' => $path]); |
@@ -191,6 +191,7 @@ discard block |
||
191 | 191 | |
192 | 192 | /** |
193 | 193 | * @param string $path |
194 | + * @param string $token |
|
194 | 195 | */ |
195 | 196 | function publicPreview_icon ( $path, $token ) { |
196 | 197 | return \OC::$server->getURLGenerator()->linkToRoute('files_sharing.PublicPreview.getPreview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * Set a value in the cache if it's not already stored |
66 | 66 | * |
67 | 67 | * @param string $key |
68 | - * @param mixed $value |
|
68 | + * @param integer $value |
|
69 | 69 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
70 | 70 | * @return bool |
71 | 71 | */ |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * Set a value in the cache if it's not already stored |
66 | 66 | * |
67 | 67 | * @param string $key |
68 | - * @param mixed $value |
|
68 | + * @param integer $value |
|
69 | 69 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
70 | 70 | * @return bool |
71 | 71 | */ |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | * @param OC\Security\Bruteforce\Throttler $throttler |
312 | 312 | * @throws LoginException |
313 | 313 | * @throws PasswordLoginForbiddenException |
314 | - * @return boolean |
|
314 | + * @return boolean|null |
|
315 | 315 | */ |
316 | 316 | public function logClientIn($user, |
317 | 317 | $password, |
@@ -361,6 +361,9 @@ discard block |
||
361 | 361 | return $this->config->getSystemValue('token_auth_enforced', false); |
362 | 362 | } |
363 | 363 | |
364 | + /** |
|
365 | + * @param string $username |
|
366 | + */ |
|
364 | 367 | protected function isTwoFactorEnforced($username) { |
365 | 368 | Util::emitHook( |
366 | 369 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -498,6 +498,9 @@ |
||
498 | 498 | }); |
499 | 499 | } |
500 | 500 | |
501 | + /** |
|
502 | + * @param string $path |
|
503 | + */ |
|
501 | 504 | public function notify($path) { |
502 | 505 | $path = '/' . ltrim($path, '/'); |
503 | 506 | $shareNotifyHandler = $this->share->notify($this->buildPath($path)); |
@@ -104,6 +104,10 @@ |
||
104 | 104 | } |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $href |
|
109 | + * @param string $path |
|
110 | + */ |
|
107 | 111 | public function getPropertyDefinitionsForScope($href, $path) { |
108 | 112 | // all valid scopes support the same schema |
109 | 113 |
@@ -420,6 +420,9 @@ discard block |
||
420 | 420 | } |
421 | 421 | } |
422 | 422 | |
423 | + /** |
|
424 | + * @param string $path |
|
425 | + */ |
|
423 | 426 | private function getParentPath($path) { |
424 | 427 | $parent = dirname($path); |
425 | 428 | if ($parent === '.') { |
@@ -598,7 +601,7 @@ discard block |
||
598 | 601 | * search for files matching $pattern |
599 | 602 | * |
600 | 603 | * @param string $pattern the search pattern using SQL search syntax (e.g. '%searchstring%') |
601 | - * @return ICacheEntry[] an array of cache entries where the name matches the search pattern |
|
604 | + * @return CacheEntry[] an array of cache entries where the name matches the search pattern |
|
602 | 605 | */ |
603 | 606 | public function search($pattern) { |
604 | 607 | // normalize pattern |
@@ -639,7 +642,7 @@ discard block |
||
639 | 642 | * |
640 | 643 | * @param string $mimetype either a full mimetype to search ('text/plain') or only the first part of a mimetype ('image') |
641 | 644 | * where it will search for all mimetypes in the group ('image/*') |
642 | - * @return ICacheEntry[] an array of cache entries where the mimetype matches the search |
|
645 | + * @return CacheEntry[] an array of cache entries where the mimetype matches the search |
|
643 | 646 | */ |
644 | 647 | public function searchByMime($mimetype) { |
645 | 648 | if (strpos($mimetype, '/')) { |