aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federation/lib
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/federation/lib
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/federation/lib')
-rw-r--r--apps/federation/lib/BackgroundJob/GetSharedSecret.php7
-rw-r--r--apps/federation/lib/BackgroundJob/RequestSharedSecret.php7
2 files changed, 6 insertions, 8 deletions
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) {