mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
fix(psalm): Fix ParamNameMismatch with Job::run
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
This commit is contained in:
parent
e2ea6d4680
commit
ef5edb6801
5 changed files with 10 additions and 10 deletions
|
|
@ -26,9 +26,9 @@ class BuildCalendarSearchIndexBackgroundJob extends QueuedJob {
|
|||
parent::__construct($timeFactory);
|
||||
}
|
||||
|
||||
public function run($arguments) {
|
||||
$offset = (int)$arguments['offset'];
|
||||
$stopAt = (int)$arguments['stopAt'];
|
||||
public function run($argument) {
|
||||
$offset = (int)$argument['offset'];
|
||||
$stopAt = (int)$argument['stopAt'];
|
||||
|
||||
$this->logger->info('Building calendar index (' . $offset . '/' . $stopAt . ')');
|
||||
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ class BuildSocialSearchIndexBackgroundJob extends QueuedJob {
|
|||
parent::__construct($timeFactory);
|
||||
}
|
||||
|
||||
public function run($arguments) {
|
||||
$offset = $arguments['offset'];
|
||||
$stopAt = $arguments['stopAt'];
|
||||
public function run($argument) {
|
||||
$offset = $argument['offset'];
|
||||
$stopAt = $argument['stopAt'];
|
||||
|
||||
$this->logger->info('Indexing social profile data (' . $offset . '/' . $stopAt . ')');
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class CheckForUserCertificates extends QueuedJob {
|
|||
/**
|
||||
* Checks all user directories for old user uploaded certificates
|
||||
*/
|
||||
public function run($arguments): void {
|
||||
public function run($argument): void {
|
||||
$uploadList = [];
|
||||
$this->userManager->callForSeenUsers(function (IUser $user) use (&$uploadList): void {
|
||||
$userId = $user->getUID();
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ class CleanPreviewsBackgroundJob extends QueuedJob {
|
|||
parent::__construct($timeFactory);
|
||||
}
|
||||
|
||||
public function run($arguments) {
|
||||
$uid = $arguments['uid'];
|
||||
public function run($argument): void {
|
||||
$uid = $argument['uid'];
|
||||
if (!$this->userManager->userExists($uid)) {
|
||||
$this->logger->info('User no longer exists, skip user ' . $uid);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class MoveAvatarsBackgroundJob extends QueuedJob {
|
|||
}
|
||||
}
|
||||
|
||||
public function run($arguments) {
|
||||
public function run($argument) {
|
||||
$this->logger->info('Started migrating avatars to AppData folder');
|
||||
$this->moveAvatars();
|
||||
$this->logger->info('All avatars migrated to AppData folder');
|
||||
|
|
|
|||
Loading…
Reference in a new issue