| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 4 | public function getWeatherData($longitude, $latitude) |
|
| 19 | { |
||
| 20 | 4 | $url = 'https://api.darksky.net/forecast'; |
|
| 21 | 4 | $question = [$this->apiKey . '/' . $latitude . ',' . $longitude . '?lang=sv&units=auto']; |
|
| 22 | |||
| 23 | 4 | $curl = $this->di->get("curl"); |
|
| 24 | |||
| 25 | 4 | $weatherJSON = $curl->multiCurl($url, $question); |
|
| 26 | |||
| 27 | 4 | return $weatherJSON; |
|
| 28 | } |
||
| 30 |