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) } } } - }