| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 44 | private function getWeatherResultXML(Location $location) |
||
| 45 | { |
||
| 46 | try { |
||
| 47 | $globalWeather = $this->globalWeatherClient->GetWeather( |
||
| 48 | [ |
||
| 49 | 'CityName' => $location->getCity(), |
||
| 50 | 'CountryName' => $location->getCountry() |
||
| 51 | ] |
||
| 52 | ); |
||
| 53 | return $globalWeather->GetWeatherResult; |
||
| 54 | } catch (\Exception $e) { |
||
| 55 | return false; |
||
| 56 | } |
||
| 57 | } |
||
| 58 | } |
||
| 59 |