@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | * |
461 | 461 | * @param array|int|string $query The place to get weather information for. For possible values see below. |
462 | 462 | * @param \DateTime $start The \DateTime object of the date to get the first weather information from. |
463 | - * @param \DateTime|int $endOrCount Can be either a \DateTime object representing the end of the period to |
|
463 | + * @param integer $endOrCount Can be either a \DateTime object representing the end of the period to |
|
464 | 464 | * receive weather history data for or an integer counting the number of |
465 | 465 | * reports requested. |
466 | 466 | * @param string $type The period of the weather history requested. Can be either be either "tick", |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | /** |
529 | 529 | * Fetches the result or delivers a cached version of the result. |
530 | 530 | * |
531 | - * @param $url |
|
531 | + * @param string $url |
|
532 | 532 | * |
533 | 533 | * @return string |
534 | 534 | * |
@@ -558,13 +558,13 @@ discard block |
||
558 | 558 | * Build the url to fetch weather data from. |
559 | 559 | * |
560 | 560 | * @param $query |
561 | - * @param $units |
|
562 | - * @param $lang |
|
563 | - * @param $appid |
|
564 | - * @param $mode |
|
561 | + * @param string $units |
|
562 | + * @param string $lang |
|
563 | + * @param string $appid |
|
564 | + * @param string $mode |
|
565 | 565 | * @param string $url The url to prepend. |
566 | 566 | * |
567 | - * @return bool|string The fetched url, false on failure. |
|
567 | + * @return string The fetched url, false on failure. |
|
568 | 568 | * |
569 | 569 | * @internal |
570 | 570 | */ |
@@ -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(); |