| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 9 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 4 | ||
| Bugs | 0 | Features | 3 | 
| 1 | <?php | ||
| 44 | public function getMetarAPIResponse($url) | ||
| 45 |     { | ||
| 46 | $client = new HttpClient($this->guzzle_conf); | ||
| 47 | $response = $client->get($url); | ||
| 48 |         if ($response->getStatusCode() != 200) { | ||
| 49 |             throw new Exception('An error occured when attempting to access the remote webservice, please try again shortly!'); | ||
| 50 | } | ||
| 51 | return $response->getBody(); | ||
| 52 | } | ||
| 53 | } | ||
| 54 |