Update composer dependencies

This commit is contained in:
Kijin Sung 2017-06-29 23:39:23 +09:00
parent 49cc39e507
commit cbd324c35b
428 changed files with 17862 additions and 5885 deletions

View file

@ -67,7 +67,7 @@ class Requests_Proxy_HTTP implements Requests_Proxy {
$this->use_authentication = true;
}
else {
throw new Requests_Exception( 'Invalid number of arguments', 'proxyhttpbadargs');
throw new Requests_Exception('Invalid number of arguments', 'proxyhttpbadargs');
}
}
}
@ -87,7 +87,7 @@ class Requests_Proxy_HTTP implements Requests_Proxy {
$hooks->register('fsockopen.remote_socket', array(&$this, 'fsockopen_remote_socket'));
$hooks->register('fsockopen.remote_host_path', array(&$this, 'fsockopen_remote_host_path'));
if( $this->use_authentication ) {
if ($this->use_authentication) {
$hooks->register('fsockopen.after_headers', array(&$this, 'fsockopen_header'));
}
}
@ -112,9 +112,9 @@ class Requests_Proxy_HTTP implements Requests_Proxy {
* Alter remote socket information before opening socket connection
*
* @since 1.6
* @param string $out HTTP header string
* @param string $remote_socket Socket connection string
*/
public function fsockopen_remote_socket( &$remote_socket ) {
public function fsockopen_remote_socket(&$remote_socket) {
$remote_socket = $this->proxy;
}
@ -122,9 +122,10 @@ class Requests_Proxy_HTTP implements Requests_Proxy {
* Alter remote path before getting stream data
*
* @since 1.6
* @param string $out HTTP header string
* @param string $path Path to send in HTTP request string ("GET ...")
* @param string $url Full URL we're requesting
*/
public function fsockopen_remote_host_path( &$path, $url ) {
public function fsockopen_remote_host_path(&$path, $url) {
$path = $url;
}
@ -134,8 +135,8 @@ class Requests_Proxy_HTTP implements Requests_Proxy {
* @since 1.6
* @param string $out HTTP header string
*/
public function fsockopen_header( &$out ) {
$out .= "Proxy-Authorization: Basic " . base64_encode($this->get_auth_string()) . "\r\n";
public function fsockopen_header(&$out) {
$out .= sprintf("Proxy-Authorization: Basic %s\r\n", base64_encode($this->get_auth_string()));
}
/**