Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
"host" is not a constant but a variable.
  • Loading branch information
brice committed Dec 12, 2013
1 parent 502b4ff commit 4cb6387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Embedly/Embedly.php
Expand Up @@ -99,7 +99,7 @@ protected function parse_host($host)
preg_match('/^(https?:\/\/)?([^\/]+)(:\d+)?\/?$/', $host, $matches);

if (!$matches) {
throw new \Exception(sprintf('invalid host %s', host));
throw new \Exception(sprintf('invalid host %s', $host));
}

$hostname = $matches[2];
Expand Down

0 comments on commit 4cb6387

Please sign in to comment.