Skip to content

Commit

Permalink
Merge pull request #2568 from LibreSign/backport/2567/stable28
Browse files Browse the repository at this point in the history
[stable28] Rename var to get a best meaning
  • Loading branch information
vitormattos authored Mar 22, 2024
2 parents aba4061 + 52b018a commit 9d0b558
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 9d0b558

Please sign in to comment.