chore: rename method to be more specific

Isn't only a get sign request, is a get sign request by uuid.

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2025-06-03 17:04:20 -03:00
parent 9c2ca18140
commit 4e527dd100
No known key found for this signature in database
GPG key ID: B7AB4B76A7CA7318
3 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@ trait LibresignTrait {
return;
}
try {
$this->signRequestEntity = $this->signFileService->getSignRequest($uuid);
$this->signRequestEntity = $this->signFileService->getSignRequestByUuid($uuid);
$this->fileEntity = $this->signFileService->getFile(
$this->signRequestEntity->getFileId(),
);

View file

@ -559,7 +559,7 @@ class PageController extends AEnvironmentPageAwareController {
$this->fileService->setFileByType('uuid', $uuid);
} catch (DoesNotExistException) {
try {
$signRequest = $this->signFileService->getSignRequest($uuid);
$signRequest = $this->signFileService->getSignRequestByUuid($uuid);
$libresignFile = $this->signFileService->getFile($signRequest->getFileId());
$this->fileService->setFile($libresignFile);
} catch (DoesNotExistException) {

View file

@ -538,7 +538,7 @@ class SignFileService {
$signRequests = $this->signRequestMapper->getByFileId($libresignFile->getId());
if (!empty($signRequestUuid)) {
$signRequest = $this->getSignRequest($signRequestUuid);
$signRequest = $this->getSignRequestByUuid($signRequestUuid);
} else {
$signRequest = array_reduce($signRequests, function (?SignRequestEntity $carry, SignRequestEntity $signRequest) use ($user): ?SignRequestEntity {
$identifyMethods = $this->identifyMethodMapper->getIdentifyMethodsFromSignRequestId($signRequest->getId());
@ -659,7 +659,7 @@ class SignFileService {
/**
* @throws DoesNotExistException
*/
public function getSignRequest(string $uuid): SignRequestEntity {
public function getSignRequestByUuid(string $uuid): SignRequestEntity {
$this->validateHelper->validateUuidFormat($uuid);
return $this->signRequestMapper->getByUuid($uuid);
}