@@ -34,6 +34,9 @@ |
||
34 | 34 | */ |
35 | 35 | class ExampleCache extends AbstractCache |
36 | 36 | { |
37 | + /** |
|
38 | + * @param string $url |
|
39 | + */ |
|
37 | 40 | private function urlToPath($url) |
38 | 41 | { |
39 | 42 | $tmp = sys_get_temp_dir(); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * Returns the forecast for the place you specified. DANGER: Might return |
187 | 187 | * fewer results than requested due to a bug in the OpenWeatherMap API! |
188 | 188 | * |
189 | - * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
|
189 | + * @param string $query The place to get weather information for. For possible values see ::getWeather. |
|
190 | 190 | * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned. |
191 | 191 | * @param string $lang The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi. |
192 | 192 | * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details. |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | * |
324 | 324 | * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather. |
325 | 325 | * @param \DateTime $start The \DateTime object of the date to get the first weather information from. |
326 | - * @param \DateTime|int $endOrCount Can be either a \DateTime object representing the end of the period to |
|
326 | + * @param integer $endOrCount Can be either a \DateTime object representing the end of the period to |
|
327 | 327 | * receive weather history data for or an integer counting the number of |
328 | 328 | * reports requested. |
329 | 329 | * @param string $type The period of the weather history requested. Can be either be either "tick", |
@@ -408,13 +408,13 @@ discard block |
||
408 | 408 | * Build the url to fetch weather data from. |
409 | 409 | * |
410 | 410 | * @param $query |
411 | - * @param $units |
|
412 | - * @param $lang |
|
413 | - * @param $appid |
|
414 | - * @param $mode |
|
411 | + * @param string $units |
|
412 | + * @param string $lang |
|
413 | + * @param string $appid |
|
414 | + * @param string $mode |
|
415 | 415 | * @param string $url The url to prepend. |
416 | 416 | * |
417 | - * @return bool|string The fetched url, false on failure. |
|
417 | + * @return string The fetched url, false on failure. |
|
418 | 418 | */ |
419 | 419 | private function buildUrl($query, $units, $lang, $appid, $mode, $url) |
420 | 420 | { |