Skip to content

Commit 1f310e2

Browse files
committed
refactor(openapi): remove redundant wrapper in RequestSignatureController.php
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 97a7207 commit 1f310e2

1 file changed

Lines changed: 1 addition & 38 deletions

File tree

lib/Controller/RequestSignatureController.php

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,6 @@ public function requestSignature(
125125
}
126126
}
127127

128-
public function request(
129-
array $signers = [],
130-
string $name = '',
131-
array $settings = [],
132-
array $file = [],
133-
array $files = [],
134-
?string $callback = null,
135-
?int $status = 1,
136-
?string $signatureFlow = null,
137-
): DataResponse {
138-
return $this->requestSignature($signers, $name, $settings, $file, $files, $callback, $status, $signatureFlow);
139-
}
140-
141128
/**
142129
* Updates signatures data
143130
*
@@ -227,33 +214,9 @@ public function updateSignatureRequest(
227214
}
228215
}
229216

230-
public function updateSign(
231-
?array $signers = [],
232-
?string $uuid = null,
233-
?array $visibleElements = null,
234-
?array $file = null,
235-
?int $status = null,
236-
?string $signatureFlow = null,
237-
?string $name = null,
238-
array $settings = [],
239-
array $files = [],
240-
): DataResponse {
241-
return $this->updateSignatureRequest(
242-
$signers,
243-
$uuid,
244-
$visibleElements,
245-
$file,
246-
$status,
247-
$signatureFlow,
248-
$name,
249-
$settings,
250-
$files,
251-
);
252-
}
253-
254217
/**
255218
* Internal method to handle signature request creation logic
256-
* Used by both request() and updateSign() when creating new requests
219+
* Used by both requestSignature() and updateSignatureRequest() when creating new requests
257220
*
258221
* @return DataResponse<Http::STATUS_OK, LibresignDetailedFileResponse, array{}>
259222
* @throws LibresignException

0 commit comments

Comments
 (0)