summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-11-24 14:18:47 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-11-25 15:03:06 +0100
commit6166e1a157774b7c3c1ee8f304ef96ff2efe3e92 (patch)
tree4edbc6ae63ec8bd1d0982978524f0137e21ab6e2 /apps/federatedfilesharing
parentd4fd61b7c6df367899fc225784d3cea64206a542 (diff)
downloadnextcloud-server-6166e1a157774b7c3c1ee8f304ef96ff2efe3e92.tar.gz
nextcloud-server-6166e1a157774b7c3c1ee8f304ef96ff2efe3e92.zip
Use proper OCP\BackgroundJobs\Job
And typehunt the IJobList Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r--apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php b/apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php
index 8af2d587fae..4949e5794b4 100644
--- a/apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php
+++ b/apps/federatedfilesharing/lib/BackgroundJob/RetryJob.php
@@ -27,11 +27,10 @@
namespace OCA\FederatedFileSharing\BackgroundJob;
-use OC\BackgroundJob\Job;
-use OC\BackgroundJob\JobList;
use OCA\FederatedFileSharing\AddressHandler;
use OCA\FederatedFileSharing\Notifications;
use OCP\BackgroundJob\IJobList;
+use OCP\BackgroundJob\Job;
use OCP\ILogger;
/**
@@ -84,10 +83,10 @@ class RetryJob extends Job {
/**
* run the job, then remove it from the jobList
*
- * @param JobList $jobList
+ * @param IJobList $jobList
* @param ILogger|null $logger
*/
- public function execute($jobList, ILogger $logger = null) {
+ public function execute(IJobList $jobList, ILogger $logger = null) {
if ($this->shouldRun($this->argument)) {
parent::execute($jobList, $logger);
$jobList->remove($this, $this->argument);