style: fix spacing in type declarations and match formatting

Consistently format type declarations across response classes.
This commit is contained in:
Jérémy Munsch 2026-10-06 15:04:44 +02:00
parent 25cc3e982e
commit e72b570823
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4
7 changed files with 8 additions and 8 deletions

View file

@ -19,7 +19,7 @@ final readonly class OracleHealthCheckController
public function __invoke(): JsonResponse
{
$result = $this->healthChecker->checkArcadiaConnectivity();
$result = $this->healthChecker->checkArcadiaConnectivity();
$arcadia = null;
foreach ($result->checks as $check) {

View file

@ -13,7 +13,7 @@ use Presentation\Api\V1\Presenters\Brands\BrandShowView;
final readonly class BrandShowResponse implements ApiResponse
{
public function __construct(
private BrandShowView|BrandNotFoundView $view,
private BrandShowView | BrandNotFoundView $view,
) {
}

View file

@ -13,7 +13,7 @@ use Presentation\Api\V1\Presenters\Employees\EmployeeShowView;
final readonly class EmployeeShowResponse implements ApiResponse
{
public function __construct(
private EmployeeShowView|EmployeeNotFoundView $view,
private EmployeeShowView | EmployeeNotFoundView $view,
) {
}

View file

@ -14,7 +14,7 @@ use Presentation\Api\V1\Presenters\IncoCompositions\IncoCompositionShowView;
final readonly class IncoCompositionShowResponse implements ApiResponse
{
public function __construct(
private IncoCompositionShowView|IncoCompositionNotFoundView $view,
private IncoCompositionShowView | IncoCompositionNotFoundView $view,
) {
}

View file

@ -24,7 +24,7 @@ use Shared\Time\Utc;
final readonly class IncoSheetsShowResponse implements ApiResponse
{
public function __construct(
private IncoSheetsShowView|IncoSheetsNotFoundView $view,
private IncoSheetsShowView | IncoSheetsNotFoundView $view,
) {
}

View file

@ -23,9 +23,9 @@ final readonly class IncoCompositionShowPresenter implements Presenter
);
return match (true) {
$output instanceof NotFoundOutput => new IncoCompositionNotFoundView($output->detail),
$output instanceof NotFoundOutput => new IncoCompositionNotFoundView($output->detail),
$output instanceof FoundIncoCompositionOuput => new IncoCompositionShowView($output),
default => throw new \InvalidArgumentException(sprintf(
default => throw new \InvalidArgumentException(sprintf(
'Unexpected output type "%s".',
$output::class
)),

View file

@ -25,7 +25,7 @@ final readonly class IncoSheetsShowPresenter implements Presenter
return match (true) {
$output instanceof NotFoundOutput => new IncoSheetsNotFoundView($output->detail),
$output instanceof FoundIncoSheetOuput => new IncoSheetsShowView($output),
default => throw new \InvalidArgumentException(sprintf(
default => throw new \InvalidArgumentException(sprintf(
'Unexpected output type "%s".',
$output::class
)),