@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | * Returns the forecast for the place you specified. DANGER: Might return |
| 225 | 225 | * fewer results than requested due to a bug in the OpenWeatherMap API! |
| 226 | 226 | * |
| 227 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 227 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 228 | 228 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
| 229 | 229 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
| 230 | 230 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | * Returns the DAILY forecast for the place you specified. DANGER: Might return |
| 256 | 256 | * fewer results than requested due to a bug in the OpenWeatherMap API! |
| 257 | 257 | * |
| 258 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 258 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 259 | 259 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
| 260 | 260 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
| 261 | 261 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | /** |
| 283 | 283 | * Returns the weather history for the place you specified. |
| 284 | 284 | * |
| 285 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 285 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
| 286 | 286 | * @param \DateTime $start |
| 287 | 287 | * @param int $endOrCount |
| 288 | 288 | * @param string $type Can either be 'tick', 'hour' or 'day'. |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | * |
| 485 | 485 | * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
| 486 | 486 | * @param \DateTime $start The \DateTime object of the date to get the first weather information from. |
| 487 | - * @param \DateTime|int $endOrCount Can be either a \DateTime object representing the end of the period to |
|
| 487 | + * @param integer $endOrCount Can be either a \DateTime object representing the end of the period to |
|
| 488 | 488 | * receive weather history data for or an integer counting the number of |
| 489 | 489 | * reports requested. |
| 490 | 490 | * @param string $type The period of the weather history requested. Can be either be either "tick", |
@@ -605,10 +605,10 @@ discard block |
||
| 605 | 605 | * Build the url to fetch weather data from. |
| 606 | 606 | * |
| 607 | 607 | * @param $query |
| 608 | - * @param $units |
|
| 609 | - * @param $lang |
|
| 610 | - * @param $appid |
|
| 611 | - * @param $mode |
|
| 608 | + * @param string $units |
|
| 609 | + * @param string $lang |
|
| 610 | + * @param string $appid |
|
| 611 | + * @param string $mode |
|
| 612 | 612 | * @param string $url The url to prepend. |
| 613 | 613 | * |
| 614 | 614 | * @return bool|string The fetched url, false on failure. |
@@ -51,6 +51,9 @@ discard block |
||
| 51 | 51 | return $response->withBody(Psr7\stream_for($content)); |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param string $format |
|
| 56 | + */ |
|
| 54 | 57 | private function currentWeather($format) |
| 55 | 58 | { |
| 56 | 59 | if ($format == 'xml') { |
@@ -58,6 +61,9 @@ discard block |
||
| 58 | 61 | } |
| 59 | 62 | } |
| 60 | 63 | |
| 64 | + /** |
|
| 65 | + * @param string $format |
|
| 66 | + */ |
|
| 61 | 67 | private function forecast($format) |
| 62 | 68 | { |
| 63 | 69 | if ($format == 'xml') { |
@@ -65,6 +71,9 @@ discard block |
||
| 65 | 71 | } |
| 66 | 72 | } |
| 67 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $format |
|
| 76 | + */ |
|
| 68 | 77 | private function group($format) |
| 69 | 78 | { |
| 70 | 79 | if ($format == 'json') { |