diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-17 17:45:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 17:45:11 +0200 |
commit | 00cb8e6c54d8f2a26c5770fef5fe4ae1e366d0ce (patch) | |
tree | ab84089689092f01793719f43594d3585b0219a7 /lib | |
parent | f6daf17fa773bd4b9c9aae070e39dfbefe8de935 (diff) | |
parent | 3e7b815da469edf7d8be7fda86debde66aef1aa9 (diff) | |
download | nextcloud-server-00cb8e6c54d8f2a26c5770fef5fe4ae1e366d0ce.tar.gz nextcloud-server-00cb8e6c54d8f2a26c5770fef5fe4ae1e366d0ce.zip |
Merge pull request #22253 from nextcloud/debt/noid/docblocks
Fix some MissingDocblockType or InvalidDocblock warnings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Server.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 1d2690a4d4c..12abf793828 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -290,7 +290,7 @@ class Server extends ServerContainer implements IServerContainer { return new PreviewManager( $c->getConfig(), $c->getRootFolder(), - new \OC\Preview\Storage\Root($c->getRootFolder(), $c->getSystemConfig(), 'preview'), + new \OC\Preview\Storage\Root($c->getRootFolder(), $c->getSystemConfig()), $c->getEventDispatcher(), $c->getGeneratorHelper(), $c->getSession()->get('user_id') @@ -301,7 +301,7 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService(\OC\Preview\Watcher::class, function (Server $c) { return new \OC\Preview\Watcher( - new \OC\Preview\Storage\Root($c->getRootFolder(), $c->getSystemConfig(), 'preview') + new \OC\Preview\Storage\Root($c->getRootFolder(), $c->getSystemConfig()) ); }); @@ -519,7 +519,7 @@ class Server extends ServerContainer implements IServerContainer { $dispatcher->dispatchTyped(new BeforeUserCreatedEvent($uid, $password)); }); $userSession->listen('\OC\User', 'postCreateUser', function ($user, $password) { - /** @var $user \OC\User\User */ + /** @var \OC\User\User $user */ \OC_Hook::emit('OC_User', 'post_createUser', ['uid' => $user->getUID(), 'password' => $password]); /** @var IEventDispatcher $dispatcher */ @@ -527,7 +527,7 @@ class Server extends ServerContainer implements IServerContainer { $dispatcher->dispatchTyped(new UserCreatedEvent($user, $password)); }); $userSession->listen('\OC\User', 'preDelete', function ($user) use ($legacyDispatcher) { - /** @var $user \OC\User\User */ + /** @var \OC\User\User $user */ \OC_Hook::emit('OC_User', 'pre_deleteUser', ['run' => true, 'uid' => $user->getUID()]); $legacyDispatcher->dispatch('OCP\IUser::preDelete', new GenericEvent($user)); @@ -536,7 +536,7 @@ class Server extends ServerContainer implements IServerContainer { $dispatcher->dispatchTyped(new BeforeUserDeletedEvent($user)); }); $userSession->listen('\OC\User', 'postDelete', function ($user) { - /** @var $user \OC\User\User */ + /** @var \OC\User\User $user */ \OC_Hook::emit('OC_User', 'post_deleteUser', ['uid' => $user->getUID()]); /** @var IEventDispatcher $dispatcher */ @@ -544,7 +544,7 @@ class Server extends ServerContainer implements IServerContainer { $dispatcher->dispatchTyped(new UserDeletedEvent($user)); }); $userSession->listen('\OC\User', 'preSetPassword', function ($user, $password, $recoveryPassword) { - /** @var $user \OC\User\User */ + /** @var \OC\User\User $user */ \OC_Hook::emit('OC_User', 'pre_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]); /** @var IEventDispatcher $dispatcher */ @@ -552,7 +552,7 @@ class Server extends ServerContainer implements IServerContainer { $dispatcher->dispatchTyped(new BeforePasswordUpdatedEvent($user, $password, $recoveryPassword)); }); $userSession->listen('\OC\User', 'postSetPassword', function ($user, $password, $recoveryPassword) { - /** @var $user \OC\User\User */ + /** @var \OC\User\User $user */ \OC_Hook::emit('OC_User', 'post_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]); /** @var IEventDispatcher $dispatcher */ @@ -567,7 +567,7 @@ class Server extends ServerContainer implements IServerContainer { $dispatcher->dispatchTyped(new BeforeUserLoggedInEvent($uid, $password)); }); $userSession->listen('\OC\User', 'postLogin', function ($user, $password, $isTokenLogin) { - /** @var $user \OC\User\User */ + /** @var \OC\User\User $user */ \OC_Hook::emit('OC_User', 'post_login', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'isTokenLogin' => $isTokenLogin]); /** @var IEventDispatcher $dispatcher */ @@ -600,7 +600,7 @@ class Server extends ServerContainer implements IServerContainer { $dispatcher->dispatchTyped(new UserLoggedOutEvent($user)); }); $userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) { - /** @var $user \OC\User\User */ + /** @var \OC\User\User $user */ \OC_Hook::emit('OC_User', 'changeUser', ['run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value, 'old_value' => $oldValue]); /** @var IEventDispatcher $dispatcher */ |