aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-04-21 13:48:12 +0200
committerGitHub <noreply@github.com>2023-04-21 13:48:12 +0200
commitccab101df85e8c5878361e7a9fa19480a3d54a96 (patch)
treef7183efe2acc724de4528ee79df0434c56d5e4fa /lib/private/Http/Client
parentc08026a92ab020ac327aa7b8d379fc26cfe447bd (diff)
parentb294edad804f40618a96116845615831302d0357 (diff)
downloadnextcloud-server-ccab101df85e8c5878361e7a9fa19480a3d54a96.tar.gz
nextcloud-server-ccab101df85e8c5878361e7a9fa19480a3d54a96.zip
Merge pull request #37596 from nextcloud/enh/type-iconfig-getter-calls
Use typed version of IConfig::getSystemValue as much as possible
Diffstat (limited to 'lib/private/Http/Client')
-rw-r--r--lib/private/Http/Client/Client.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php
index 2e370395132..298749d52e1 100644
--- a/lib/private/Http/Client/Client.php
+++ b/lib/private/Http/Client/Client.php
@@ -122,7 +122,7 @@ class Client implements IClient {
// If the instance is not yet setup we need to use the static path as
// $this->certificateManager->getAbsoluteBundlePath() tries to instantiate
// a view
- if ($this->config->getSystemValue('installed', false) === false) {
+ if (!$this->config->getSystemValueBool('installed', false)) {
return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
}
@@ -145,14 +145,14 @@ class Client implements IClient {
*
*/
private function getProxyUri(): ?array {
- $proxyHost = $this->config->getSystemValue('proxy', '');
+ $proxyHost = $this->config->getSystemValueString('proxy', '');
- if ($proxyHost === '' || $proxyHost === null) {
+ if ($proxyHost === '') {
return null;
}
- $proxyUserPwd = $this->config->getSystemValue('proxyuserpwd', '');
- if ($proxyUserPwd !== '' && $proxyUserPwd !== null) {
+ $proxyUserPwd = $this->config->getSystemValueString('proxyuserpwd', '');
+ if ($proxyUserPwd !== '') {
$proxyHost = $proxyUserPwd . '@' . $proxyHost;
}