Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Penny committed Jul 19, 2022
1 parent 3727f64 commit e0d7075
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Actions/PublishItemWorkflowAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Actions/UnpublishItemWorkflowAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
1 change: 0 additions & 1 deletion src/Tasks/EmbargoExpiryMigrationTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ public function run($request)
}
}
}

}

0 comments on commit e0d7075

Please sign in to comment.