mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
Refactor imports and remove redundant type strings
This commit refactors the usage of \DateTimeImmutable to ensure consistent namespacing and removes unnecessary string type declarations from constants in CancelStaleWorkflowCronJob. These changes improve code readability and maintainability.
This commit is contained in:
@@ -20,11 +20,11 @@ use Symfony\Component\Messenger\MessageBusInterface;
|
||||
|
||||
class CancelStaleWorkflowCronJob implements CronJobInterface
|
||||
{
|
||||
public const string KEY = 'remove-stale-workflow';
|
||||
public const KEY = 'remove-stale-workflow';
|
||||
|
||||
public const string KEEP_INTERVAL = 'P90D';
|
||||
public const KEEP_INTERVAL = 'P90D';
|
||||
|
||||
private const string LAST_CANCELED_WORKFLOW = 'last-canceled-workflow-id';
|
||||
private const LAST_CANCELED_WORKFLOW = 'last-canceled-workflow-id';
|
||||
|
||||
public function __construct(
|
||||
private readonly EntityWorkflowRepository $workflowRepository,
|
||||
|
Reference in New Issue
Block a user