@@ -34,6 +34,9 @@ |
||
34 | 34 | $this->tmp = sys_get_temp_dir(); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param string $url |
|
39 | + */ |
|
37 | 40 | private function urlToPath($url) |
38 | 41 | { |
39 | 42 | $dir = $this->tmp . DIRECTORY_SEPARATOR . "OpenWeatherMapPHPAPI"; |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * Returns the forecast for the place you specified. DANGER: Might return |
222 | 222 | * fewer results than requested due to a bug in the OpenWeatherMap API! |
223 | 223 | * |
224 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
224 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
225 | 225 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
226 | 226 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
227 | 227 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | * Returns the DAILY forecast for the place you specified. DANGER: Might return |
253 | 253 | * fewer results than requested due to a bug in the OpenWeatherMap API! |
254 | 254 | * |
255 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
255 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
256 | 256 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
257 | 257 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
258 | 258 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | /** |
280 | 280 | * Returns the weather history for the place you specified. |
281 | 281 | * |
282 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
282 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
283 | 283 | * @param \DateTime $start |
284 | 284 | * @param int $endOrCount |
285 | 285 | * @param string $type Can either be 'tick', 'hour' or 'day'. |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | * |
336 | 336 | * @param float $lat The location's latitude. |
337 | 337 | * @param float $lon The location's longitude. |
338 | - * @param \DateTimeInterface $dateTime The date and time to request data for. |
|
338 | + * @param \DateTime $dateTime The date and time to request data for. |
|
339 | 339 | * @param string $timePrecision This decides about the timespan OWM will look for the uv index. The tighter |
340 | 340 | * the timespan, the less likely it is to get a result. Can be 'year', 'month', |
341 | 341 | * 'day', 'hour', 'minute' or 'second', defaults to 'day'. |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | * |
453 | 453 | * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
454 | 454 | * @param \DateTime $start The \DateTime object of the date to get the first weather information from. |
455 | - * @param \DateTime|int $endOrCount Can be either a \DateTime object representing the end of the period to |
|
455 | + * @param integer $endOrCount Can be either a \DateTime object representing the end of the period to |
|
456 | 456 | * receive weather history data for or an integer counting the number of |
457 | 457 | * reports requested. |
458 | 458 | * @param string $type The period of the weather history requested. Can be either be either "tick", |
@@ -590,10 +590,10 @@ discard block |
||
590 | 590 | * Build the url to fetch weather data from. |
591 | 591 | * |
592 | 592 | * @param $query |
593 | - * @param $units |
|
594 | - * @param $lang |
|
595 | - * @param $appid |
|
596 | - * @param $mode |
|
593 | + * @param string $units |
|
594 | + * @param string $lang |
|
595 | + * @param string $appid |
|
596 | + * @param string $mode |
|
597 | 597 | * @param string $url The url to prepend. |
598 | 598 | * |
599 | 599 | * @return bool|string The fetched url, false on failure. |