Skip to content

Commit

Permalink
Ran php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Jan 17, 2024
1 parent 2fd2373 commit b9480c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
final readonly class RemoveWorkflowCommandHandler
{
public function __construct(
private \Gyroscops\Api\Client $client,
private Api\Client $client,
) {
}

Expand Down
8 changes: 4 additions & 4 deletions src/Cloud/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function (string $namespace) {
);
}

public static function fromApiWithId(Api\Client $client, WorkflowId $id): DTO\ReferencedWorkflow
public static function fromApiWithId(Api\Client $client, WorkflowId $id): ReferencedWorkflow
{
/** @var Api\Model\WorkflowJsonldRead|Api\Model\WorkflowRead $item */
$item = $client->getWorkflowItem($id->asString());
Expand All @@ -145,7 +145,7 @@ public static function fromApiWithId(Api\Client $client, WorkflowId $id): DTO\Re
);
}

public static function fromApiWithCode(Api\Client $client, string $code): DTO\ReferencedWorkflow
public static function fromApiWithCode(Api\Client $client, string $code): ReferencedWorkflow
{
$collection = $client->getWorkflowCollection(['code' => $code]);

Expand Down Expand Up @@ -258,7 +258,7 @@ public function create(DTO\SatelliteInterface&DTO\WorkflowInterface $workflow):
);
}

public function update(DTO\ReferencedWorkflow $actual, DTO\SatelliteInterface&DTO\WorkflowInterface $desired): DTO\CommandBatch
public function update(ReferencedWorkflow $actual, DTO\SatelliteInterface&DTO\WorkflowInterface $desired): DTO\CommandBatch
{
if ($actual->code() !== $desired->code()) {
throw new \RuntimeException('Code does not match between actual and desired workflow definition.');
Expand All @@ -273,7 +273,7 @@ public function update(DTO\ReferencedWorkflow $actual, DTO\SatelliteInterface&DT
return new DTO\CommandBatch(...$commands);
}

public function remove(DTO\WorkflowId $id): DTO\CommandBatch
public function remove(WorkflowId $id): DTO\CommandBatch
{
return new DTO\CommandBatch(
new Command\Workflow\RemoveWorkflowCommand($id),
Expand Down

0 comments on commit b9480c4

Please sign in to comment.