Fix more MissingDocblockType or InvalidDocblock warnings.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
6f8147b18f
commit
3e7b815da4
|
@ -290,7 +290,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
return new PreviewManager(
|
return new PreviewManager(
|
||||||
$c->getConfig(),
|
$c->getConfig(),
|
||||||
$c->getRootFolder(),
|
$c->getRootFolder(),
|
||||||
new \OC\Preview\Storage\Root($c->getRootFolder(), $c->getSystemConfig(), 'preview'),
|
new \OC\Preview\Storage\Root($c->getRootFolder(), $c->getSystemConfig()),
|
||||||
$c->getEventDispatcher(),
|
$c->getEventDispatcher(),
|
||||||
$c->getGeneratorHelper(),
|
$c->getGeneratorHelper(),
|
||||||
$c->getSession()->get('user_id')
|
$c->getSession()->get('user_id')
|
||||||
|
@ -301,7 +301,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
|
|
||||||
$this->registerService(\OC\Preview\Watcher::class, function (Server $c) {
|
$this->registerService(\OC\Preview\Watcher::class, function (Server $c) {
|
||||||
return new \OC\Preview\Watcher(
|
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));
|
$dispatcher->dispatchTyped(new BeforeUserCreatedEvent($uid, $password));
|
||||||
});
|
});
|
||||||
$userSession->listen('\OC\User', 'postCreateUser', function ($user, $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]);
|
\OC_Hook::emit('OC_User', 'post_createUser', ['uid' => $user->getUID(), 'password' => $password]);
|
||||||
|
|
||||||
/** @var IEventDispatcher $dispatcher */
|
/** @var IEventDispatcher $dispatcher */
|
||||||
|
@ -527,7 +527,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$dispatcher->dispatchTyped(new UserCreatedEvent($user, $password));
|
$dispatcher->dispatchTyped(new UserCreatedEvent($user, $password));
|
||||||
});
|
});
|
||||||
$userSession->listen('\OC\User', 'preDelete', function ($user) use ($legacyDispatcher) {
|
$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()]);
|
\OC_Hook::emit('OC_User', 'pre_deleteUser', ['run' => true, 'uid' => $user->getUID()]);
|
||||||
$legacyDispatcher->dispatch('OCP\IUser::preDelete', new GenericEvent($user));
|
$legacyDispatcher->dispatch('OCP\IUser::preDelete', new GenericEvent($user));
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$dispatcher->dispatchTyped(new BeforeUserDeletedEvent($user));
|
$dispatcher->dispatchTyped(new BeforeUserDeletedEvent($user));
|
||||||
});
|
});
|
||||||
$userSession->listen('\OC\User', 'postDelete', function ($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()]);
|
\OC_Hook::emit('OC_User', 'post_deleteUser', ['uid' => $user->getUID()]);
|
||||||
|
|
||||||
/** @var IEventDispatcher $dispatcher */
|
/** @var IEventDispatcher $dispatcher */
|
||||||
|
@ -544,7 +544,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$dispatcher->dispatchTyped(new UserDeletedEvent($user));
|
$dispatcher->dispatchTyped(new UserDeletedEvent($user));
|
||||||
});
|
});
|
||||||
$userSession->listen('\OC\User', 'preSetPassword', function ($user, $password, $recoveryPassword) {
|
$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]);
|
\OC_Hook::emit('OC_User', 'pre_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]);
|
||||||
|
|
||||||
/** @var IEventDispatcher $dispatcher */
|
/** @var IEventDispatcher $dispatcher */
|
||||||
|
@ -552,7 +552,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$dispatcher->dispatchTyped(new BeforePasswordUpdatedEvent($user, $password, $recoveryPassword));
|
$dispatcher->dispatchTyped(new BeforePasswordUpdatedEvent($user, $password, $recoveryPassword));
|
||||||
});
|
});
|
||||||
$userSession->listen('\OC\User', 'postSetPassword', function ($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]);
|
\OC_Hook::emit('OC_User', 'post_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]);
|
||||||
|
|
||||||
/** @var IEventDispatcher $dispatcher */
|
/** @var IEventDispatcher $dispatcher */
|
||||||
|
@ -567,7 +567,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$dispatcher->dispatchTyped(new BeforeUserLoggedInEvent($uid, $password));
|
$dispatcher->dispatchTyped(new BeforeUserLoggedInEvent($uid, $password));
|
||||||
});
|
});
|
||||||
$userSession->listen('\OC\User', 'postLogin', function ($user, $password, $isTokenLogin) {
|
$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]);
|
\OC_Hook::emit('OC_User', 'post_login', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'isTokenLogin' => $isTokenLogin]);
|
||||||
|
|
||||||
/** @var IEventDispatcher $dispatcher */
|
/** @var IEventDispatcher $dispatcher */
|
||||||
|
@ -600,7 +600,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$dispatcher->dispatchTyped(new UserLoggedOutEvent($user));
|
$dispatcher->dispatchTyped(new UserLoggedOutEvent($user));
|
||||||
});
|
});
|
||||||
$userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) {
|
$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]);
|
\OC_Hook::emit('OC_User', 'changeUser', ['run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value, 'old_value' => $oldValue]);
|
||||||
|
|
||||||
/** @var IEventDispatcher $dispatcher */
|
/** @var IEventDispatcher $dispatcher */
|
||||||
|
|
Loading…
Reference in New Issue