Skip to content

Commit

Permalink
Minor tweaks for better code readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
allebb committed Jan 30, 2016
1 parent 1598095 commit c020424
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Helpers/MetarHTTPClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ public function __construct($config = [])
*/
public function getMetarAPIResponse($url)
{
if ($this->guzzle_conf) {
if (!empty($this->guzzle_conf)) {
$client = new HttpClient($this->guzzle_conf);
} else {
$client = new HttpClient();
}
$response = $client->get($url);
return $response->getBody();
return $response->getBody()
->getContents();
}
}

0 comments on commit c020424

Please sign in to comment.