format backend code

This commit is contained in:
Yisroel Baum 2026-05-25 20:24:59 +03:00
parent 9577367622
commit 67dd376a2f
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
40 changed files with 146 additions and 71 deletions

View file

@ -10,5 +10,6 @@ class CreateElementDto
public Set $set,
public string $title,
public ?Element $parentElement,
) {}
) {
}
}

View file

@ -11,7 +11,8 @@ class Element
private string $title,
private Set $set,
private ?Element $parentElement,
) {}
) {
}
public function getId(): int
{

View file

@ -8,7 +8,9 @@ use DomainException;
class EloquentElementRepository implements ElementRepository
{
public function __construct(private SetRepository $setRepo) {}
public function __construct(private SetRepository $setRepo)
{
}
public function create(CreateElementDto $dto): Element
{

View file

@ -15,7 +15,8 @@ class CreateElement
public function __construct(
private ElementRepository $elementRepo,
private SetRepository $setRepo,
) {}
) {
}
/**
* @throws BadRequestException

View file

@ -8,5 +8,6 @@ class CreateElementRequest
public ?int $setId,
public ?string $title,
public ?int $parentElementId,
) {}
) {
}
}