aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/BackgroundJob
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-03-28 16:13:19 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-04-02 14:16:21 +0200
commitec5133b739eabc76271789504b4dbb91a534f552 (patch)
tree880b81f5ebd11b289c67e4bcdd1ecaa41aedbcb4 /lib/public/BackgroundJob
parentb074399a87e764f506550d64f6379738186355c6 (diff)
downloadnextcloud-server-ec5133b739eabc76271789504b4dbb91a534f552.tar.gz
nextcloud-server-ec5133b739eabc76271789504b4dbb91a534f552.zip
fix: Apply new coding standard to all files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public/BackgroundJob')
-rw-r--r--lib/public/BackgroundJob/IJob.php2
-rw-r--r--lib/public/BackgroundJob/QueuedJob.php2
-rw-r--r--lib/public/BackgroundJob/TimedJob.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/BackgroundJob/IJob.php b/lib/public/BackgroundJob/IJob.php
index 24d8e7aad4a..90c0804c1e1 100644
--- a/lib/public/BackgroundJob/IJob.php
+++ b/lib/public/BackgroundJob/IJob.php
@@ -55,7 +55,7 @@ interface IJob {
* @deprecated since 25.0.0 Use start() instead. This method will be removed
* with the ILogger interface
*/
- public function execute(IJobList $jobList, ILogger $logger = null);
+ public function execute(IJobList $jobList, ?ILogger $logger = null);
/**
* Start the background job with the registered argument
diff --git a/lib/public/BackgroundJob/QueuedJob.php b/lib/public/BackgroundJob/QueuedJob.php
index e93db3420b8..bac60f9be11 100644
--- a/lib/public/BackgroundJob/QueuedJob.php
+++ b/lib/public/BackgroundJob/QueuedJob.php
@@ -43,7 +43,7 @@ abstract class QueuedJob extends Job {
* @deprecated since 25.0.0 Use start() instead. This method will be removed
* with the ILogger interface
*/
- final public function execute($jobList, ILogger $logger = null) {
+ final public function execute($jobList, ?ILogger $logger = null) {
$this->start($jobList);
}
diff --git a/lib/public/BackgroundJob/TimedJob.php b/lib/public/BackgroundJob/TimedJob.php
index 8fd8fadce4f..2f91dbfdc6e 100644
--- a/lib/public/BackgroundJob/TimedJob.php
+++ b/lib/public/BackgroundJob/TimedJob.php
@@ -88,7 +88,7 @@ abstract class TimedJob extends Job {
* @since 15.0.0
* @deprecated since 25.0.0 Use start() instead
*/
- final public function execute(IJobList $jobList, ILogger $logger = null) {
+ final public function execute(IJobList $jobList, ?ILogger $logger = null) {
$this->start($jobList);
}