Add |null to PHPDoc

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2017-07-19 16:06:22 +02:00 committed by Roeland Jago Douma
parent 28098a7602
commit d321e9792e
No known key found for this signature in database
GPG Key ID: F941078878347C0C
11 changed files with 11 additions and 11 deletions

View File

@ -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) {

View File

@ -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'];

View File

@ -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'];

View File

@ -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)) {

View File

@ -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);

View File

@ -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);

View File

@ -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) {

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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) {