Skip to content

Commit

Permalink
Applied fixes from StyleCI (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
willwashburn committed Aug 16, 2016
1 parent 6299447 commit e41137f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mushroom/Mushroom.php
Expand Up @@ -173,7 +173,7 @@ private function getUrlFromHandle($ch, array $options)
// if they do not, we'll use the effective url from the curl
// request to determine what it should be
$scheme = parse_url($url, PHP_URL_SCHEME);
$host = parse_url($url, PHP_URL_HOST);
$host = parse_url($url, PHP_URL_HOST);

// If there is a scheme, we can return the url as is
if ($scheme && $host) {
Expand All @@ -188,7 +188,7 @@ private function getUrlFromHandle($ch, array $options)
$parsed['scheme'] = parse_url($effective_url, PHP_URL_SCHEME);
}

if(!$host) {
if (!$host) {
$parsed['host'] = parse_url($effective_url, PHP_URL_HOST);
}

Expand Down

0 comments on commit e41137f

Please sign in to comment.