Skip to content

Commit 832e435

Browse files
authored
Merge pull request #39182 from shdehnavi/refactor_core_backgroundjobs
2 parents 663ecd9 + 246218d commit 832e435

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ public function __construct(
4242

4343
/**
4444
* This job cleans up all backups except the latest 3 from the updaters backup directory
45+
*
46+
* @param array $argument
4547
*/
46-
public function run($arguments) {
48+
public function run($argument): void {
4749
$updateDir = $this->config->getSystemValue('updatedirectory', null) ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');
4850
$instanceId = $this->config->getSystemValue('instanceid', null);
4951

core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ public function __construct(
4040
parent::__construct($time);
4141
}
4242

43-
public function run($arguments) {
43+
/**
44+
* @param array $argument
45+
*/
46+
public function run($argument): void {
4447
$this->userManager->callForSeenUsers(function (IUser $user) {
4548
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
4649
});

0 commit comments

Comments
 (0)