@@ -40,7 +40,6 @@ |
||
40 | 40 | * @param HttpClientInterface $client |
41 | 41 | * @param UrlFactory $factory |
42 | 42 | * @param HandlerInterface $handler |
43 | - * @param \Marek\OpenWeatherMap\Denormalizer\DenormalizerInterface $hydrator |
|
44 | 43 | */ |
45 | 44 | public function __construct(HttpClientInterface $client, UrlFactory $factory, HandlerInterface $handler, DenormalizerInterface $denormalizer) |
46 | 45 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Marek\OpenWeatherMap\API\Exception\ExceptionThrower; |
10 | 10 | use Marek\OpenWeatherMap\Factory\UrlFactory; |
11 | 11 | use Marek\OpenWeatherMap\Http\Client\HttpClientInterface; |
12 | -use Marek\OpenWeatherMap\Hydrator\HydratorInterface; |
|
13 | 12 | use Marek\OpenWeatherMap\Denormalizer\DenormalizerInterface; |
14 | 13 | |
15 | 14 | abstract class Base |
@@ -37,6 +37,9 @@ |
||
37 | 37 | |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $key |
|
42 | + */ |
|
40 | 43 | protected function getDateTimeFromTimestamp($key, $data) |
41 | 44 | { |
42 | 45 | return empty($data[$key]) ? null : new \DateTimeImmutable("@{$data[$key]}"); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | return $this->name; |
56 | 56 | } |
57 | 57 | |
58 | - return $this->name . ',' . (string) $this->code; |
|
58 | + return $this->name . ',' . (string)$this->code; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -36,10 +36,10 @@ |
||
36 | 36 | public function getGetParameterValue() |
37 | 37 | { |
38 | 38 | if (null === $this->countryCode) { |
39 | - return (string) $this->zip; |
|
39 | + return (string)$this->zip; |
|
40 | 40 | } |
41 | 41 | |
42 | - return (string) $this->zip . ',' . $this->countryCode; |
|
42 | + return (string)$this->zip . ',' . $this->countryCode; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function getGetParameterValue() |
38 | 38 | { |
39 | - return (string) $this->latitude; |
|
39 | + return (string)$this->latitude; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function getGetParameterValue() |
38 | 38 | { |
39 | - return (string) $this->count; |
|
39 | + return (string)$this->count; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function getGetParameterValue() |
38 | 38 | { |
39 | - return (string) $this->cityId; |
|
39 | + return (string)$this->cityId; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function getGetParameterValue() |
38 | 38 | { |
39 | - return (string) $this->longitude; |
|
39 | + return (string)$this->longitude; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -51,9 +51,9 @@ |
||
51 | 51 | */ |
52 | 52 | public function getUriParameterValue() |
53 | 53 | { |
54 | - return (string) $this->latitude->getLatitude() . |
|
54 | + return (string)$this->latitude->getLatitude() . |
|
55 | 55 | ',' . |
56 | - (string) $this->longitude->getLongitude(); |
|
56 | + (string)$this->longitude->getLongitude(); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |