From f2269a05a6bfc5b063f5f64fda07cdc34b6a38c9 Mon Sep 17 00:00:00 2001 From: Jan Messer Date: Tue, 6 Dec 2022 15:52:49 +0100 Subject: [PATCH] [TASK] replace double with single quote and else if with elseif Signed-off-by: Jan Messer --- lib/private/Security/CertificateManager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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'; } }