From 52b018aeb738817e5e0613d94e2a4f4aa9f65796 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Fri, 22 Mar 2024 08:54:25 -0300 Subject: [PATCH] Rename var to get a best meaning Signed-off-by: Vitor Mattos --- lib/Service/SignFileService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Service/SignFileService.php b/lib/Service/SignFileService.php index b81f80ea02..08c2f92ebb 100644 --- a/lib/Service/SignFileService.php +++ b/lib/Service/SignFileService.php @@ -279,12 +279,12 @@ 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(); @@ -292,7 +292,7 @@ public function sign(): File { default: $signedFile = $this->pkcs7Handler ->setInputFile($fileToSign) - ->setCertificate($pfxFile) + ->setCertificate($pfxFileContent) ->setPassword($this->password) ->sign(); }