Completed
Pull Request — master (#375)
by
unknown
01:36
created
library/Requests/Transport/cURL.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -159,11 +159,11 @@
 block discarded – undo
159 159
 			curl_setopt($this->handle, CURLOPT_SSL_VERIFYHOST, 0);
160 160
 		}
161 161
 
162
-        if (isset($options['ipresolve'])) {
163
-            if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))){
164
-                curl_setopt($this->handle, CURLOPT_IPRESOLVE, $options['ipresolve']);
165
-            }
166
-        }
162
+		if (isset($options['ipresolve'])) {
163
+			if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))){
164
+				curl_setopt($this->handle, CURLOPT_IPRESOLVE, $options['ipresolve']);
165
+			}
166
+		}
167 167
 
168 168
 		curl_exec($this->handle);
169 169
 		$response = $this->response_data;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 		}
161 161
 
162 162
         if (isset($options['ipresolve'])) {
163
-            if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))){
163
+            if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))) {
164 164
                 curl_setopt($this->handle, CURLOPT_IPRESOLVE, $options['ipresolve']);
165 165
             }
166 166
         }
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 		$options['hooks']->dispatch('curl.before_request', array(&$this->handle));
317 317
 
318 318
 		// Force closing the connection for old versions of cURL (<7.22).
319
-		if ( ! isset( $headers['Connection'] ) ) {
319
+		if (!isset($headers['Connection'])) {
320 320
 			$headers['Connection'] = 'close';
321 321
 		}
322 322
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
 		}
161 161
 
162 162
         if (isset($options['ipresolve'])) {
163
-            if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))){
163
+            if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))) {
164 164
                 curl_setopt($this->handle, CURLOPT_IPRESOLVE, $options['ipresolve']);
165 165
             }
166 166
         }
Please login to merge, or discard this patch.