@@ -101,11 +101,11 @@ discard block |
||
101 | 101 | // $this->certificateManager->getAbsoluteBundlePath() tries to instantiiate |
102 | 102 | // a view |
103 | 103 | if ($this->config->getSystemValue('installed', false) === false) { |
104 | - return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt'; |
|
104 | + return \OC::$SERVERROOT.'/resources/config/ca-bundle.crt'; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | if ($this->certificateManager->listCertificates() === []) { |
108 | - return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt'; |
|
108 | + return \OC::$SERVERROOT.'/resources/config/ca-bundle.crt'; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | return $this->certificateManager->getAbsoluteBundlePath(); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | $proxyUserPwd = $this->config->getSystemValue('proxyuserpwd', ''); |
137 | 137 | if ($proxyUserPwd !== '' && $proxyUserPwd !== null) { |
138 | - $proxyHost = $proxyUserPwd . '@' . $proxyHost; |
|
138 | + $proxyHost = $proxyUserPwd.'@'.$proxyHost; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | $proxy = [ |
@@ -181,13 +181,13 @@ discard block |
||
181 | 181 | throw new LocalServerException('Host violates local access rules'); |
182 | 182 | } |
183 | 183 | |
184 | - if ((bool)filter_var($host, FILTER_VALIDATE_IP) && !filter_var($host, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) { |
|
184 | + if ((bool) filter_var($host, FILTER_VALIDATE_IP) && !filter_var($host, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) { |
|
185 | 185 | $this->logger->warning("Host $host was not connected to because it violates local access rules"); |
186 | 186 | throw new LocalServerException('Host violates local access rules'); |
187 | 187 | } |
188 | 188 | |
189 | 189 | // Also check for IPv6 IPv4 nesting, because that's not covered by filter_var |
190 | - if ((bool)filter_var($host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) && substr_count($host, '.') > 0) { |
|
190 | + if ((bool) filter_var($host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) && substr_count($host, '.') > 0) { |
|
191 | 191 | $delimiter = strrpos($host, ':'); // Get last colon |
192 | 192 | $ipv4Address = substr($host, $delimiter + 1); |
193 | 193 |