Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Fixes cs
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Jul 29, 2022
1 parent c22739d commit 7515269
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Application/Domain/Entity/ExtendedTypecast.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ private function uncastUuid(mixed $value): string

private function uncastJson(mixed $value): string
{
return (string)$value;
return (string) $value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public function __construct(private EventRepository $events)
#[\App\Attributes\QueryBus\QueryHandler]
public function __invoke(FindEventByUuid $query): EventResource
{
$event = $this->events->findByPK((string)$query->uuid);
$event = $this->events->findByPK((string) $query->uuid);
if (! $event) {
throw new EntityNotFoundException(
sprintf('Event with given uuid [%s] was not found.', (string)$query->uuid)
sprintf('Event with given uuid [%s] was not found.', (string) $query->uuid)
);
}

Expand Down
3 changes: 1 addition & 2 deletions app/Modules/User/Domain/Events/UserWasCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

final class UserWasCreated implements Event
{

public function __construct(
public Uuid $uuid,
public string $username,
Expand All @@ -21,7 +20,7 @@ public function __construct(
public function toPayload(): array
{
return [
'uuid' => (string)$this->uuid,
'uuid' => (string) $this->uuid,
'username' => $this->username,
'password' => $this->password,
];
Expand Down

0 comments on commit 7515269

Please sign in to comment.