From 6166e1a157774b7c3c1ee8f304ef96ff2efe3e92 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 24 Nov 2020 14:18:47 +0100 Subject: Use proper OCP\BackgroundJobs\Job And typehunt the IJobList Signed-off-by: Roeland Jago Douma --- apps/federation/lib/BackgroundJob/GetSharedSecret.php | 7 +++---- apps/federation/lib/BackgroundJob/RequestSharedSecret.php | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'apps/federation/lib') diff --git a/apps/federation/lib/BackgroundJob/GetSharedSecret.php b/apps/federation/lib/BackgroundJob/GetSharedSecret.php index 669de02ec5c..71ea5417dd0 100644 --- a/apps/federation/lib/BackgroundJob/GetSharedSecret.php +++ b/apps/federation/lib/BackgroundJob/GetSharedSecret.php @@ -32,12 +32,11 @@ namespace OCA\Federation\BackgroundJob; use GuzzleHttp\Exception\ClientException; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Ring\Exception\RingException; -use OC\BackgroundJob\Job; -use OC\BackgroundJob\JobList; use OCA\Federation\TrustedServers; use OCP\AppFramework\Http; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJobList; +use OCP\BackgroundJob\Job; use OCP\Http\Client\IClient; use OCP\Http\Client\IClientService; use OCP\Http\Client\IResponse; @@ -115,7 +114,7 @@ class GetSharedSecret extends Job { /** * run the job, then remove it from the joblist * - * @param JobList $jobList + * @param IJobList $jobList * @param ILogger|null $logger */ public function execute(IJobList $jobList, ILogger $logger = null) { @@ -135,7 +134,7 @@ class GetSharedSecret extends Job { /** * call execute() method of parent * - * @param JobList $jobList + * @param IJobList $jobList * @param ILogger $logger */ protected function parentExecute($jobList, $logger = null) { diff --git a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php index f577372bbae..1c9b2539b3d 100644 --- a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php +++ b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php @@ -31,12 +31,11 @@ namespace OCA\Federation\BackgroundJob; use GuzzleHttp\Exception\ClientException; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Ring\Exception\RingException; -use OC\BackgroundJob\Job; -use OC\BackgroundJob\JobList; use OCA\Federation\TrustedServers; use OCP\AppFramework\Http; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJobList; +use OCP\BackgroundJob\Job; use OCP\Http\Client\IClient; use OCP\Http\Client\IClientService; use OCP\ILogger; @@ -114,7 +113,7 @@ class RequestSharedSecret extends Job { /** * run the job, then remove it from the joblist * - * @param JobList $jobList + * @param IJobList $jobList * @param ILogger|null $logger */ public function execute(IJobList $jobList, ILogger $logger = null) { @@ -134,7 +133,7 @@ class RequestSharedSecret extends Job { /** * call execute() method of parent * - * @param JobList $jobList + * @param IJobList $jobList * @param ILogger $logger */ protected function parentExecute($jobList, $logger) { -- cgit v1.2.3