From e0d7075cfd7db8648cb8a61beea5f9168525e550 Mon Sep 17 00:00:00 2001 From: Chris Penny Date: Tue, 19 Jul 2022 13:06:11 +1200 Subject: [PATCH] Linting --- src/Actions/PublishItemWorkflowAction.php | 2 +- src/Actions/UnpublishItemWorkflowAction.php | 2 +- src/Tasks/EmbargoExpiryMigrationTask.php | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Actions/PublishItemWorkflowAction.php b/src/Actions/PublishItemWorkflowAction.php index 47c4a626..aa7bf721 100644 --- a/src/Actions/PublishItemWorkflowAction.php +++ b/src/Actions/PublishItemWorkflowAction.php @@ -40,7 +40,7 @@ public function execute(WorkflowInstance $workflow) $this->queueEmbargoExpiryJobs($target); $target->write(); - } else if ($target->hasExtension(Versioned::class)) { + } elseif ($target->hasExtension(Versioned::class)) { /** @var DataObject|Versioned $target */ $target->publishRecursive(); } diff --git a/src/Actions/UnpublishItemWorkflowAction.php b/src/Actions/UnpublishItemWorkflowAction.php index 0064f081..6f86ef53 100644 --- a/src/Actions/UnpublishItemWorkflowAction.php +++ b/src/Actions/UnpublishItemWorkflowAction.php @@ -42,7 +42,7 @@ public function execute(WorkflowInstance $workflow) $this->queueEmbargoExpiryJobs($target); $target->write(); - } else if ($target->hasExtension(Versioned::class)) { + } elseif ($target->hasExtension(Versioned::class)) { /** @var DataObject|Versioned $target */ $target->doUnpublish(); } diff --git a/src/Tasks/EmbargoExpiryMigrationTask.php b/src/Tasks/EmbargoExpiryMigrationTask.php index 6c0a4f9b..631767c5 100644 --- a/src/Tasks/EmbargoExpiryMigrationTask.php +++ b/src/Tasks/EmbargoExpiryMigrationTask.php @@ -69,5 +69,4 @@ public function run($request) } } } - }