Passed
Push — master ( d695ba...a6b0be )
by Roeland
17:53 queued 08:06
created
lib/private/Http/Client/Client.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.