Code Duplication    Length = 4-4 lines in 2 locations

src/wp-includes/class-wp-http-curl.php 2 locations

@@ 230-233 (lines=4) @@
227
				curl_close( $handle );
228
				return new WP_Error( 'http_request_failed', $curl_error );
229
			}
230
			if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ) ) ) {
231
				curl_close( $handle );
232
				return new WP_Error( 'http_request_failed', __( 'Too many redirects.' ) );
233
			}
234
235
			curl_close( $handle );
236
			return array( 'headers' => array(), 'body' => '', 'response' => array('code' => false, 'message' => false), 'cookies' => array() );
@@ 269-272 (lines=4) @@
266
					return new WP_Error( 'http_request_failed', $curl_error );
267
				}
268
			}
269
			if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ) ) ) {
270
				curl_close( $handle );
271
				return new WP_Error( 'http_request_failed', __( 'Too many redirects.' ) );
272
			}
273
		}
274
275
		curl_close( $handle );