diff --git a/lib/private/Security/CertificateManager.php b/lib/private/Security/CertificateManager.php index 9a5d9bc1f7724..d190677baed65 100644 --- a/lib/private/Security/CertificateManager.php +++ b/lib/private/Security/CertificateManager.php @@ -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'; } }