@@ -386,8 +386,8 @@
Loading
386 386
		}
387 387
388 388
		if (true === $options['blocking']) {
389 -
			curl_setopt($this->handle, CURLOPT_HEADERFUNCTION, array(&$this, 'stream_headers'));
390 -
			curl_setopt($this->handle, CURLOPT_WRITEFUNCTION, array(&$this, 'stream_body'));
389 +
			curl_setopt($this->handle, CURLOPT_HEADERFUNCTION, array($this, 'stream_headers'));
390 +
			curl_setopt($this->handle, CURLOPT_WRITEFUNCTION, array($this, 'stream_body'));
391 391
			curl_setopt($this->handle, CURLOPT_BUFFERSIZE, Requests::BUFFER_SIZE);
392 392
		}
393 393
	}

@@ -83,12 +83,12 @@
Loading
83 83
	 * @param Requests_Hooks $hooks Hook system
84 84
	 */
85 85
	public function register(Requests_Hooks $hooks) {
86 -
		$hooks->register('curl.before_send', array(&$this, 'curl_before_send'));
86 +
		$hooks->register('curl.before_send', array($this, 'curl_before_send'));
87 87
88 -
		$hooks->register('fsockopen.remote_socket', array(&$this, 'fsockopen_remote_socket'));
89 -
		$hooks->register('fsockopen.remote_host_path', array(&$this, 'fsockopen_remote_host_path'));
88 +
		$hooks->register('fsockopen.remote_socket', array($this, 'fsockopen_remote_socket'));
89 +
		$hooks->register('fsockopen.remote_host_path', array($this, 'fsockopen_remote_host_path'));
90 90
		if ($this->use_authentication) {
91 -
			$hooks->register('fsockopen.after_headers', array(&$this, 'fsockopen_header'));
91 +
			$hooks->register('fsockopen.after_headers', array($this, 'fsockopen_header'));
92 92
		}
93 93
	}
94 94

@@ -54,8 +54,8 @@
Loading
54 54
	 * @param Requests_Hooks $hooks Hook system
55 55
	 */
56 56
	public function register(Requests_Hooks $hooks) {
57 -
		$hooks->register('curl.before_send', array(&$this, 'curl_before_send'));
58 -
		$hooks->register('fsockopen.after_headers', array(&$this, 'fsockopen_header'));
57 +
		$hooks->register('curl.before_send', array($this, 'curl_before_send'));
58 +
		$hooks->register('fsockopen.after_headers', array($this, 'fsockopen_header'));
59 59
	}
60 60
61 61
	/**

@@ -419,7 +419,7 @@
Loading
419 419
	 */
420 420
	protected function replace_invalid_with_pct_encoding($string, $extra_chars, $iprivate = false) {
421 421
		// Normalize as many pct-encoded sections as possible
422 -
		$string = preg_replace_callback('/(?:%[A-Fa-f0-9]{2})+/', array(&$this, 'remove_iunreserved_percent_encoded'), $string);
422 +
		$string = preg_replace_callback('/(?:%[A-Fa-f0-9]{2})+/', array($this, 'remove_iunreserved_percent_encoded'), $string);
423 423
424 424
		// Replace invalid percent characters
425 425
		$string = preg_replace('/%(?![A-Fa-f0-9]{2})/', '%25', $string);
Files Complexity Coverage
library 761 92.12%
Project Totals (21 files) 761 92.12%
745.5
TRAVIS_OS_NAME=linux
5.6=.6
743.5
TRAVIS_OS_NAME=linux
5.6=.6

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading