Completed
Pull Request — master (#375)
by
unknown
01:32
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.
library/Requests.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -344,10 +344,10 @@
 block discarded – undo
344 344
 	 * - `data_format`: How should we send the `$data` parameter?
345 345
 	 *    (string, one of 'query' or 'body', default: 'query' for
346 346
 	 *    HEAD/GET/DELETE, 'body' for POST/PUT/OPTIONS/PATCH)
347
-     * - `ip_resolve` : Allows to select what kind of IP addresses to use when resolving host names.
347
+	 * - `ip_resolve` : Allows to select what kind of IP addresses to use when resolving host names.
348 348
 	 *    This is only interesting when using host names that resolve addresses using more than one version of IP,
349
-     *    possible values are 0(resolve_whatever), 1(resolve_v4_only), 2(resolve_v6_only), otherwise will get ignored.
350
-     *    (int, default: 0)
349
+	 *    possible values are 0(resolve_whatever), 1(resolve_v4_only), 2(resolve_v6_only), otherwise will get ignored.
350
+	 *    (int, default: 0)
351 351
 	 * @throws Requests_Exception On invalid URLs (`nonhttp`)
352 352
 	 *
353 353
 	 * @param string $url URL to request
Please login to merge, or discard this patch.