Skip to content

Commit b3e1b67

Browse files
committed
pint
1 parent 694c347 commit b3e1b67

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Core/WorkflowDefinition.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function getFirstStep(): ?Step
6262

6363
// If no step found without incoming transitions, return first step
6464
$stepsArray = $this->steps;
65+
6566
return reset($stepsArray) ?: null;
6667
}
6768

src/LaravelWorkflowEngine.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ public function __construct(WorkflowEngine $engine)
1919
*/
2020
public function start(array|string $definition, array $initialData = []): WorkflowInstance
2121
{
22-
$workflowId = 'workflow-' . uniqid();
22+
$workflowId = 'workflow-'.uniqid();
2323
$this->engine->start($workflowId, $definition, $initialData);
24+
2425
return $this->engine->getWorkflow($workflowId);
2526
}
2627

0 commit comments

Comments
 (0)