style: fix spacing in type declarations and match formatting
Consistently format type declarations across response classes.
This commit is contained in:
parent
25cc3e982e
commit
e72b570823
7 changed files with 8 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue