Skip to content

Commit

Permalink
add changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig committed Nov 28, 2024
1 parent 38fb602 commit 67a6fd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Class/Controller/QuantityValue/ConvertAllController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(
}

/**
* @throws AccessDeniedException|DatabaseException|NotFoundException|UserNotFoundException
* @throws DatabaseException|NotFoundException
*/
#[Route(
'/class/quantity-value/convert-all',
Expand All @@ -79,7 +79,7 @@ public function __construct(
HttpResponseCodes::UNAUTHORIZED,
HttpResponseCodes::NOT_FOUND,
])]
public function get(#[MapRequestPayload] ConvertAllParameters $parameters): JsonResponse
public function covertAll(#[MapRequestPayload] ConvertAllParameters $parameters): JsonResponse
{
return $this->jsonResponse($this->quantityValueService->convertAllUnits($parameters));
}
Expand Down
2 changes: 1 addition & 1 deletion src/Class/Controller/QuantityValue/ConvertController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct(
HttpResponseCodes::UNAUTHORIZED,
HttpResponseCodes::NOT_FOUND,
])]
public function get(#[MapRequestPayload] ConvertParameters $parameters): JsonResponse
public function convert(#[MapRequestPayload] ConvertParameters $parameters): JsonResponse
{
return $this->jsonResponse(['data' => $this->quantityValueService->convertUnit($parameters)]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Class/Repository/QuantityValueRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* @internal
*/
class QuantityValueRepository implements QuantityValueRepositoryInterface
final readonly class QuantityValueRepository implements QuantityValueRepositoryInterface
{
/**
* @return Unit[]
Expand Down

0 comments on commit 67a6fd1

Please sign in to comment.