Skip to content

Commit 12aac6d

Browse files
committed
Clean up
1 parent 0090c30 commit 12aac6d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Curl/Url.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ function ($matches) {
194194
*/
195195
private function unparseUrl($parsed_url) {
196196
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
197-
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';
198-
$port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
199-
$user = isset($parsed_url['user']) ? $parsed_url['user'] : '';
200-
$pass = isset($parsed_url['pass']) ? ':' . $parsed_url['pass'] : '';
201-
$pass = ($user || $pass) ? $pass . '@' : '';
202-
$path = isset($parsed_url['path']) ? $parsed_url['path'] : '';
203-
$query = isset($parsed_url['query']) ? '?' . $parsed_url['query'] : '';
197+
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';
198+
$port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
199+
$user = isset($parsed_url['user']) ? $parsed_url['user'] : '';
200+
$pass = isset($parsed_url['pass']) ? ':' . $parsed_url['pass'] : '';
201+
$pass = ($user || $pass) ? $pass . '@' : '';
202+
$path = isset($parsed_url['path']) ? $parsed_url['path'] : '';
203+
$query = isset($parsed_url['query']) ? '?' . $parsed_url['query'] : '';
204204
$fragment = isset($parsed_url['fragment']) ? '#' . $parsed_url['fragment'] : '';
205205
$unparsed_url = $scheme . $user . $pass . $host . $port . $path . $query . $fragment;
206206
return $unparsed_url;

0 commit comments

Comments
 (0)