Skip to content

Commit

Permalink
Rename var to get a best meaning
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Mar 22, 2024
1 parent 6937c27 commit cbd8e15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Service/SignFileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,20 +279,20 @@ public function setVisibleElements(array $list): self {

public function sign(): File {
$fileToSign = $this->getFileToSing($this->libreSignFile);
$pfxFile = $this->getPfxFile();
$pfxFileContent = $this->getPfxFile();
switch ($fileToSign->getExtension()) {
case 'pdf':
$signedFile = $this->pkcs12Handler
->setInputFile($fileToSign)
->setCertificate($pfxFile)
->setCertificate($pfxFileContent)
->setVisibleElements($this->elements)
->setPassword($this->password)
->sign();
break;
default:
$signedFile = $this->pkcs7Handler
->setInputFile($fileToSign)
->setCertificate($pfxFile)
->setCertificate($pfxFileContent)
->setPassword($this->password)
->sign();
}
Expand Down

0 comments on commit cbd8e15

Please sign in to comment.