@@ -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". |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * @param IUser $user |
| 65 | 65 | * @param string|null $filter |
| 66 | - * @return IEntry[] |
|
| 66 | + * @return Entry[] |
|
| 67 | 67 | */ |
| 68 | 68 | public function getContacts(IUser $user, $filter) { |
| 69 | 69 | $allContacts = $this->contactsManager->search($filter ?: '', [ |
@@ -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)); |
@@ -64,7 +64,6 @@ discard block |
||
| 64 | 64 | * @param IConfig $config |
| 65 | 65 | * @param IL10N $l |
| 66 | 66 | * @param IURLGenerator $urlGenerator |
| 67 | - * @param \OC_Defaults $defaults |
|
| 68 | 67 | * @param IAppData $appData |
| 69 | 68 | * @param ICacheFactory $cacheFactory |
| 70 | 69 | * @param Util $util |
@@ -254,7 +253,7 @@ discard block |
||
| 254 | 253 | * |
| 255 | 254 | * @param string $app name of the app |
| 256 | 255 | * @param string $image filename of the image |
| 257 | - * @return bool|string false if image should not replaced, otherwise the location of the image |
|
| 256 | + * @return string|false false if image should not replaced, otherwise the location of the image |
|
| 258 | 257 | */ |
| 259 | 258 | public function replaceImagePath($app, $image) { |
| 260 | 259 | if($app==='') { |
@@ -598,6 +598,9 @@ |
||
| 598 | 598 | } |
| 599 | 599 | } |
| 600 | 600 | |
| 601 | + /** |
|
| 602 | + * @param string $path |
|
| 603 | + */ |
|
| 601 | 604 | public function getMimeTypeFromRemote($path) { |
| 602 | 605 | try { |
| 603 | 606 | $response = $this->propfind($path); |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | * appending or prepending to the ones previously set for this namespace. |
| 149 | 149 | * |
| 150 | 150 | * @param string $prefix The prefix/namespace, with trailing '\\' |
| 151 | - * @param array|string $paths The PSR-4 base directories |
|
| 151 | + * @param string $paths The PSR-4 base directories |
|
| 152 | 152 | * @param bool $prepend Whether to prepend the directories |
| 153 | 153 | * |
| 154 | 154 | * @throws \InvalidArgumentException |
@@ -367,6 +367,10 @@ discard block |
||
| 367 | 367 | return $file; |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | + /** |
|
| 371 | + * @param string $class |
|
| 372 | + * @param string $ext |
|
| 373 | + */ |
|
| 370 | 374 | private function findFileWithExtension($class, $ext) |
| 371 | 375 | { |
| 372 | 376 | // PSR-4 lookup |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | * appending or prepending to the ones previously set for this namespace. |
| 149 | 149 | * |
| 150 | 150 | * @param string $prefix The prefix/namespace, with trailing '\\' |
| 151 | - * @param array|string $paths The PSR-4 base directories |
|
| 151 | + * @param string $paths The PSR-4 base directories |
|
| 152 | 152 | * @param bool $prepend Whether to prepend the directories |
| 153 | 153 | * |
| 154 | 154 | * @throws \InvalidArgumentException |
@@ -367,6 +367,10 @@ discard block |
||
| 367 | 367 | return $file; |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | + /** |
|
| 371 | + * @param string $class |
|
| 372 | + * @param string $ext |
|
| 373 | + */ |
|
| 370 | 374 | private function findFileWithExtension($class, $ext) |
| 371 | 375 | { |
| 372 | 376 | // PSR-4 lookup |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | * appending or prepending to the ones previously set for this namespace. |
| 149 | 149 | * |
| 150 | 150 | * @param string $prefix The prefix/namespace, with trailing '\\' |
| 151 | - * @param array|string $paths The PSR-4 base directories |
|
| 151 | + * @param string $paths The PSR-4 base directories |
|
| 152 | 152 | * @param bool $prepend Whether to prepend the directories |
| 153 | 153 | * |
| 154 | 154 | * @throws \InvalidArgumentException |
@@ -367,6 +367,10 @@ discard block |
||
| 367 | 367 | return $file; |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | + /** |
|
| 371 | + * @param string $class |
|
| 372 | + * @param string $ext |
|
| 373 | + */ |
|
| 370 | 374 | private function findFileWithExtension($class, $ext) |
| 371 | 375 | { |
| 372 | 376 | // PSR-4 lookup |