aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-02-26 13:20:26 +0100
committerGitHub <noreply@github.com>2024-02-26 13:20:26 +0100
commit832e435d697c4e6f590e7ae11dca5371fde913c8 (patch)
tree2ce4e19e662bc1d73eabec5cd80fdf8f0a9889fe /core
parent663ecd949422c3c28269632e528e085af14da1b9 (diff)
parent246218d07a31ac0b8479fac68ca5afa1004d0994 (diff)
downloadnextcloud-server-832e435d697c4e6f590e7ae11dca5371fde913c8.tar.gz
nextcloud-server-832e435d697c4e6f590e7ae11dca5371fde913c8.zip
Merge pull request #39182 from shdehnavi/refactor_core_backgroundjobs
Diffstat (limited to 'core')
-rw-r--r--core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php4
-rw-r--r--core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php5
2 files changed, 7 insertions, 2 deletions
diff --git a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php
index e9096c99b44..e90cb73eb42 100644
--- a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php
+++ b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php
@@ -42,8 +42,10 @@ class BackgroundCleanupUpdaterBackupsJob extends QueuedJob {
/**
* This job cleans up all backups except the latest 3 from the updaters backup directory
+ *
+ * @param array $argument
*/
- public function run($arguments) {
+ public function run($argument): void {
$updateDir = $this->config->getSystemValue('updatedirectory', null) ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');
$instanceId = $this->config->getSystemValue('instanceid', null);
diff --git a/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php b/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php
index decfbc08ea2..921f34f5746 100644
--- a/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php
+++ b/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php
@@ -40,7 +40,10 @@ class LookupServerSendCheckBackgroundJob extends QueuedJob {
parent::__construct($time);
}
- public function run($arguments) {
+ /**
+ * @param array $argument
+ */
+ public function run($argument): void {
$this->userManager->callForSeenUsers(function (IUser $user) {
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
});