@@ -449,7 +449,7 @@ |
||
| 449 | 449 | * In some environments the system config file is readonly. Find out if this |
| 450 | 450 | * is the case. |
| 451 | 451 | * |
| 452 | - * @return boolean |
|
| 452 | + * @return false|string |
|
| 453 | 453 | * @since 10.0.3 |
| 454 | 454 | */ |
| 455 | 455 | public function isSystemConfigReadOnly() { |
@@ -699,7 +699,7 @@ |
||
| 699 | 699 | } |
| 700 | 700 | |
| 701 | 701 | /** |
| 702 | - * @param $internalPath |
|
| 702 | + * @param string $internalPath |
|
| 703 | 703 | * @return array |
| 704 | 704 | */ |
| 705 | 705 | private function convertInternalPathToGlobalPath($internalPath) { |
@@ -310,6 +310,9 @@ |
||
| 310 | 310 | } |
| 311 | 311 | |
| 312 | 312 | |
| 313 | + /** |
|
| 314 | + * @param string $revision |
|
| 315 | + */ |
|
| 313 | 316 | public static function restoreVersion($uid, $filename, $fileToRestore, $revision) { |
| 314 | 317 | if(\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED) !== true) { |
| 315 | 318 | return false; |
@@ -432,6 +432,9 @@ |
||
| 432 | 432 | }, $accounts); |
| 433 | 433 | } |
| 434 | 434 | |
| 435 | + /** |
|
| 436 | + * @param string $backendClass |
|
| 437 | + */ |
|
| 435 | 438 | public function getBackend($backendClass) { |
| 436 | 439 | if (isset($this->backends[$backendClass])) { |
| 437 | 440 | return $this->backends[$backendClass]; |
@@ -39,9 +39,6 @@ |
||
| 39 | 39 | use OCP\IUser; |
| 40 | 40 | use OCP\IUserManager; |
| 41 | 41 | use OCP\IConfig; |
| 42 | -use OCP\User\IProvidesExtendedSearchBackend; |
|
| 43 | -use OCP\User\IProvidesEMailBackend; |
|
| 44 | -use OCP\User\IProvidesQuotaBackend; |
|
| 45 | 42 | use OCP\UserInterface; |
| 46 | 43 | use Symfony\Component\EventDispatcher\GenericEvent; |
| 47 | 44 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * |
| 79 | 79 | * @param Account $account |
| 80 | 80 | * @param AccountMapper $mapper |
| 81 | - * @param null $emitter |
|
| 81 | + * @param Manager $emitter |
|
| 82 | 82 | * @param IConfig|null $config |
| 83 | 83 | * @param null $urlGenerator |
| 84 | 84 | * @param EventDispatcher|null $eventDispatcher |
@@ -452,6 +452,10 @@ discard block |
||
| 452 | 452 | return $url; |
| 453 | 453 | } |
| 454 | 454 | |
| 455 | + /** |
|
| 456 | + * @param string $feature |
|
| 457 | + * @param string $value |
|
| 458 | + */ |
|
| 455 | 459 | public function triggerChange($feature, $value = null) { |
| 456 | 460 | if ($this->emitter && in_array($feature, $this->account->getUpdatedFields())) { |
| 457 | 461 | $this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]); |
@@ -43,7 +43,6 @@ |
||
| 43 | 43 | use OCP\IUserBackend; |
| 44 | 44 | use OCP\IUserSession; |
| 45 | 45 | use OCP\User\IChangePasswordBackend; |
| 46 | -use OCP\UserInterface; |
|
| 47 | 46 | use Symfony\Component\EventDispatcher\EventDispatcher; |
| 48 | 47 | use Symfony\Component\EventDispatcher\GenericEvent; |
| 49 | 48 | |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | /** |
| 110 | 110 | * Returns the Reply-To address of this message |
| 111 | 111 | * |
| 112 | - * @return array |
|
| 112 | + * @return string |
|
| 113 | 113 | */ |
| 114 | 114 | public function getReplyTo() { |
| 115 | 115 | return $this->swiftMessage->getReplyTo(); |
@@ -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 [ |