mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
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:
parent
9c2ca18140
commit
4e527dd100
3 changed files with 4 additions and 4 deletions
|
|
@ -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(),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue