Skip to content

Commit 703d0ac

Browse files
committed
Clean up
1 parent e86246a commit 703d0ac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Curl/Url.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ function ($matches) {
193193
* Combine url components into a url.
194194
*/
195195
private function unparseUrl($parsed_url) {
196-
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
197-
$user = isset($parsed_url['user']) ? $parsed_url['user'] : '';
198-
$pass = isset($parsed_url['pass']) ? ':' . $parsed_url['pass'] : '';
199-
$pass = ($user || $pass) ? $pass . '@' : '';
200-
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';
201-
$port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
202-
$path = isset($parsed_url['path']) ? $parsed_url['path'] : '';
203-
$query = isset($parsed_url['query']) ? '?' . $parsed_url['query'] : '';
204-
$fragment = isset($parsed_url['fragment']) ? '#' . $parsed_url['fragment'] : '';
196+
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
197+
$user = isset($parsed_url['user']) ? $parsed_url['user'] : '';
198+
$pass = isset($parsed_url['pass']) ? ':' . $parsed_url['pass'] : '';
199+
$pass = ($user || $pass) ? $pass . '@' : '';
200+
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';
201+
$port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';
202+
$path = isset($parsed_url['path']) ? $parsed_url['path'] : '';
203+
$query = isset($parsed_url['query']) ? '?' . $parsed_url['query'] : '';
204+
$fragment = isset($parsed_url['fragment']) ? '#' . $parsed_url['fragment'] : '';
205205
$unparsed_url = $scheme . $user . $pass . $host . $port . $path . $query . $fragment;
206206
return $unparsed_url;
207207
}

0 commit comments

Comments
 (0)