@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * Make a computer file size |
133 | 133 | * @param string $str file size in human readable format |
134 | - * @return float|bool a file size in bytes |
|
134 | + * @return integer a file size in bytes |
|
135 | 135 | * |
136 | 136 | * Makes 2kB to 2048. |
137 | 137 | * |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | * |
530 | 530 | * @param string $path |
531 | 531 | * @param \OCP\Files\FileInfo $rootInfo (optional) |
532 | - * @return array |
|
532 | + * @return string |
|
533 | 533 | * @throws \OCP\Files\NotFoundException |
534 | 534 | */ |
535 | 535 | public static function getStorageInfo($path, $rootInfo = null) { |
@@ -104,6 +104,9 @@ |
||
104 | 104 | // TODO: dont check/enforce 2FA if a auth token is used |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $methodName |
|
109 | + */ |
|
107 | 110 | private function checkTwoFactor(Controller $controller, $methodName, IUser $user) { |
108 | 111 | // If two-factor auth is in progress disallow access to any controllers |
109 | 112 | // defined within "LoginController". |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * split user and remote from federated cloud id |
392 | 392 | * |
393 | 393 | * @param string $address federated share address |
394 | - * @return array [user, remoteURL] |
|
394 | + * @return string[] [user, remoteURL] |
|
395 | 395 | * @throws \InvalidArgumentException |
396 | 396 | */ |
397 | 397 | public function splitUserRemote($address) { |
@@ -697,6 +697,9 @@ discard block |
||
697 | 697 | return $result; |
698 | 698 | } |
699 | 699 | |
700 | + /** |
|
701 | + * @param string $search |
|
702 | + */ |
|
700 | 703 | protected function getLookup($search) { |
701 | 704 | $isEnabled = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no'); |
702 | 705 | $lookupServerUrl = $this->config->getSystemValue('lookup_server', 'https://lookup.nextcloud.com'); |
@@ -450,6 +450,10 @@ |
||
450 | 450 | return $url; |
451 | 451 | } |
452 | 452 | |
453 | + /** |
|
454 | + * @param string $feature |
|
455 | + * @param string $oldValue |
|
456 | + */ |
|
453 | 457 | public function triggerChange($feature, $value = null, $oldValue = null) { |
454 | 458 | if ($this->emitter) { |
455 | 459 | $this->emitter->emit('\OC\User', 'changeUser', array($this, $feature, $value, $oldValue)); |