Skip to content

Commit

Permalink
fix: psalm errors
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Apr 23, 2024
1 parent 0d4f3e6 commit c78d966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/Install/InstallService.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function setResource(string $resource): self {
public function installJava(?bool $async = false): void {
$signatureEngine = $this->appConfig->getAppValue('signature_engine', 'jsignpdf');
if ($signatureEngine !== 'jsignpdf') {
return [];
return;
}
$this->setResource('java');
if ($async) {
Expand Down Expand Up @@ -400,7 +400,7 @@ public function uninstallJava(): void {
public function installJSignPdf(?bool $async = false): void {
$signatureEngine = $this->appConfig->getAppValue('signature_engine', 'jsignpdf');
if ($signatureEngine !== 'jsignpdf') {
return [];
return;
}
if (!extension_loaded('zip')) {
throw new RuntimeException('Zip extension is not available');
Expand Down

0 comments on commit c78d966

Please sign in to comment.