[curweather] CR request:

- added/removed spaces
- added missing line-feed after opening curly brace
This commit is contained in:
Roland Häder 2018-07-25 01:27:18 +02:00
parent 7b3ceb33aa
commit 4b5691707b
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -35,7 +35,8 @@ function curweather_uninstall()
}
// get the weather data from OpenWeatherMap
function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cachetime = 0) {
function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cachetime = 0)
{
$url = "http://api.openweathermap.org/data/2.5/weather?q=" . $loc . "&appid=" . $appid . "&lang=" . $lang . "&units=" . $units . "&mode=xml";
$cached = Cache::get('curweather'.md5($url));
$now = new DateTime();