@@ -28,7 +28,7 @@ |
||
28 | 28 | $this->data = $data; |
29 | 29 | |
30 | 30 | if (is_array($data) && array_key_exists('cod', $data)) { |
31 | - $this->httpCode = (int) $data['cod']; |
|
31 | + $this->httpCode = (int)$data['cod']; |
|
32 | 32 | } else { |
33 | 33 | $this->httpCode = $httpCode; |
34 | 34 | } |
@@ -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 | { |
@@ -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 | /** |