Skip to content

Commit

Permalink
[TASK] replace double with single quote and else if with elseif
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Messer <jan@mtec-studios.ch>
  • Loading branch information
Messj1 committed Dec 8, 2022
1 parent 1d97c2f commit f2269a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/private/Security/CertificateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ public function getAbsoluteBundlePath(): string {
$certificateBundle = $this->getCertificateBundle();
$bundlePath = $this->view->getLocalFile($certificateBundle);
if ($bundlePath === null) {
throw(new \RuntimeException("Unable to get certificate bundle cause of invalid path or nonexistent storage '" . $certificateBundle . "'."));
} else if ($bundlePath === false) {
throw(new \RuntimeException("Unable to get certificate bundle '" . $certificateBundle . "'."));
throw new \RuntimeException('Unable to get certificate bundle cause of invalid path or nonexistent storage "' . $certificateBundle . '".');
} elseif ($bundlePath === false) {
throw new \RuntimeException('Unable to get certificate bundle "' . $certificateBundle . '".');
}
$this->bundlePath = $bundlePath;
}
return $this->bundlePath;
} catch (\Exception $e) {
$this->logger->error("Error occurred during fetch certificate bundle. Fallback to default ca-bundle.crt", ['exception' => $e]);
$this->logger->error('Error occurred during fetch certificate bundle. Fallback to default ca-bundle.crt', ['exception' => $e]);
return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
}
}
Expand Down

0 comments on commit f2269a0

Please sign in to comment.