Add |null to PHPDoc
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
28098a7602
commit
d321e9792e
|
@ -81,7 +81,7 @@ class RetryJob extends Job {
|
||||||
* run the job, then remove it from the jobList
|
* run the job, then remove it from the jobList
|
||||||
*
|
*
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ class GetSharedSecret extends Job{
|
||||||
* run the job, then remove it from the joblist
|
* run the job, then remove it from the joblist
|
||||||
*
|
*
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
$target = $this->argument['url'];
|
$target = $this->argument['url'];
|
||||||
|
|
|
@ -120,7 +120,7 @@ class RequestSharedSecret extends Job {
|
||||||
* run the job, then remove it from the joblist
|
* run the job, then remove it from the joblist
|
||||||
*
|
*
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
$target = $this->argument['url'];
|
$target = $this->argument['url'];
|
||||||
|
|
|
@ -59,7 +59,7 @@ class RetryJob extends Job {
|
||||||
* run the job, then remove it from the jobList
|
* run the job, then remove it from the jobList
|
||||||
*
|
*
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
if ($this->shouldRun($this->argument)) {
|
if ($this->shouldRun($this->argument)) {
|
||||||
|
|
|
@ -45,7 +45,7 @@ abstract class Job implements IJob {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
$jobList->setLastRun($this);
|
$jobList->setLastRun($this);
|
||||||
|
|
|
@ -36,7 +36,7 @@ abstract class QueuedJob extends Job {
|
||||||
* run the job, then remove it from the joblist
|
* run the job, then remove it from the joblist
|
||||||
*
|
*
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
$jobList->remove($this, $this->argument);
|
$jobList->remove($this, $this->argument);
|
||||||
|
|
|
@ -47,7 +47,7 @@ abstract class TimedJob extends Job {
|
||||||
* run the job if
|
* run the job if
|
||||||
*
|
*
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
if ((time() - $this->lastRun) > $this->interval) {
|
if ((time() - $this->lastRun) > $this->interval) {
|
||||||
|
|
|
@ -53,7 +53,7 @@ class BackgroundRepair extends TimedJob {
|
||||||
* run the job, then remove it from the job list
|
* run the job, then remove it from the job list
|
||||||
*
|
*
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
// add an interval of 15 mins
|
// add an interval of 15 mins
|
||||||
|
|
|
@ -58,7 +58,7 @@ class RemoveOrphaned extends TimedJob {
|
||||||
* run the job, then remove it from the job list
|
* run the job, then remove it from the job list
|
||||||
*
|
*
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
// add an interval of 15 mins
|
// add an interval of 15 mins
|
||||||
|
|
|
@ -36,7 +36,7 @@ interface IJob {
|
||||||
* Run the background job with the registered argument
|
* Run the background job with the registered argument
|
||||||
*
|
*
|
||||||
* @param \OCP\BackgroundJob\IJobList $jobList The job list that manages the state of this job
|
* @param \OCP\BackgroundJob\IJobList $jobList The job list that manages the state of this job
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
* @since 7.0.0
|
* @since 7.0.0
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null);
|
public function execute($jobList, ILogger $logger = null);
|
||||||
|
|
|
@ -87,7 +87,7 @@ class VerifyUserData extends Job {
|
||||||
* run the job, then remove it from the jobList
|
* run the job, then remove it from the jobList
|
||||||
*
|
*
|
||||||
* @param JobList $jobList
|
* @param JobList $jobList
|
||||||
* @param ILogger $logger
|
* @param ILogger|null $logger
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null) {
|
public function execute($jobList, ILogger $logger = null) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue