@@ -59,11 +59,17 @@ discard block |
||
59 | 59 | return $response->withBody(Psr7\stream_for($content)); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param integer $code |
|
64 | + */ |
|
62 | 65 | public function returnErrorForNextRequest($code) |
63 | 66 | { |
64 | 67 | $this->errorWithStatusCode = $code; |
65 | 68 | } |
66 | 69 | |
70 | + /** |
|
71 | + * @param string $format |
|
72 | + */ |
|
67 | 73 | private function currentWeather($format) |
68 | 74 | { |
69 | 75 | if ($format == 'xml') { |
@@ -71,6 +77,9 @@ discard block |
||
71 | 77 | } |
72 | 78 | } |
73 | 79 | |
80 | + /** |
|
81 | + * @param string $format |
|
82 | + */ |
|
74 | 83 | private function forecast($format) |
75 | 84 | { |
76 | 85 | if ($format == 'xml') { |
@@ -78,6 +87,9 @@ discard block |
||
78 | 87 | } |
79 | 88 | } |
80 | 89 | |
90 | + /** |
|
91 | + * @param string $format |
|
92 | + */ |
|
81 | 93 | private function group($format) |
82 | 94 | { |
83 | 95 | if ($format == 'json') { |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | * Returns the forecast for the place you specified. DANGER: Might return |
216 | 216 | * fewer results than requested due to a bug in the OpenWeatherMap API! |
217 | 217 | * |
218 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
218 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
219 | 219 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
220 | 220 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
221 | 221 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * Returns the DAILY forecast for the place you specified. DANGER: Might return |
247 | 247 | * fewer results than requested due to a bug in the OpenWeatherMap API! |
248 | 248 | * |
249 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
249 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
250 | 250 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
251 | 251 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
252 | 252 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | * |
348 | 348 | * @param float $lat The location's latitude. |
349 | 349 | * @param float $lon The location's longitude. |
350 | - * @param ?DateTime|string $dateTime Time of the measurement. Set null for "current" |
|
350 | + * @param \DateTime $dateTime Time of the measurement. Set null for "current" |
|
351 | 351 | * |
352 | 352 | * @return AirPollution |
353 | 353 | * |
@@ -503,8 +503,8 @@ discard block |
||
503 | 503 | } |
504 | 504 | |
505 | 505 | /** |
506 | - * @param $lat |
|
507 | - * @param $lon |
|
506 | + * @param double $lat |
|
507 | + * @param double $lon |
|
508 | 508 | * @param $dateTime |
509 | 509 | * @return bool|string Returns the fetched data. |
510 | 510 | * @throws OWMException |
@@ -570,10 +570,10 @@ discard block |
||
570 | 570 | * Build the url to fetch weather data from. |
571 | 571 | * |
572 | 572 | * @param $query |
573 | - * @param $units |
|
574 | - * @param $lang |
|
575 | - * @param $appid |
|
576 | - * @param $mode |
|
573 | + * @param string $units |
|
574 | + * @param string $lang |
|
575 | + * @param string $appid |
|
576 | + * @param string $mode |
|
577 | 577 | * @param string $url The url to prepend. |
578 | 578 | * |
579 | 579 | * @return bool|string The fetched url, false on failure. |