@@ -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) { |
@@ -32,7 +32,6 @@ |
||
32 | 32 | |
33 | 33 | use OC\AppFramework\Http\Request; |
34 | 34 | use OCA\DAV\Files\IProvidesAdditionalHeaders; |
35 | -use OCA\DAV\Meta\MetaFile; |
|
36 | 35 | use OCP\Files\ForbiddenException; |
37 | 36 | use Sabre\DAV\Exception\Forbidden; |
38 | 37 | use Sabre\DAV\Exception\NotFound; |
@@ -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]); |
@@ -41,7 +41,6 @@ |
||
41 | 41 | use OCP\IConfig; |
42 | 42 | use OCP\IUserBackend; |
43 | 43 | use OCP\User\IChangePasswordBackend; |
44 | -use OCP\UserInterface; |
|
45 | 44 | use Symfony\Component\EventDispatcher\EventDispatcher; |
46 | 45 | use Symfony\Component\EventDispatcher\GenericEvent; |
47 | 46 |