@@ -190,7 +190,7 @@ |
||
190 | 190 | $this->has_proxy = true; |
191 | 191 | $this->proxy_ip = $ip; |
192 | 192 | $this->proxy_port = $port; |
193 | - $this->proxy_auth = ($username && $password) ? base64_encode($username.':'.$password) : null; |
|
193 | + $this->proxy_auth = ($username && $password) ? base64_encode($username . ':' . $password) : null; |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | public function getProxy(&$ip, &$port, &$auth) |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $context |
138 | 138 | ); |
139 | 139 | |
140 | - $write = "CONNECT $host HTTP/1.1\r\n"; |
|
140 | + $write = "CONNECT $host HTTP/1.1\r\n"; |
|
141 | 141 | if ($auth) { |
142 | 142 | $write .= "Proxy-Authorization: Basic $auth\r\n"; |
143 | 143 | } |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | . implode( |
206 | 206 | "\r\n", |
207 | 207 | array_map( |
208 | - function ($key, $value) { |
|
208 | + function($key, $value) { |
|
209 | 209 | return "$key: $value"; |
210 | 210 | }, |
211 | 211 | array_keys($headers), |