@@ -125,7 +125,7 @@ |
||
| 125 | 125 | public function createDailyForecastService() |
| 126 | 126 | { |
| 127 | 127 | return new DailyForecast( |
| 128 | - $this->httpClient,$this->factory, $this->cache, new DailyForecastHydrator($this->hydratorFactory->create()) |
|
| 128 | + $this->httpClient, $this->factory, $this->cache, new DailyForecastHydrator($this->hydratorFactory->create()) |
|
| 129 | 129 | ); |
| 130 | 130 | } |
| 131 | 131 | } |
@@ -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 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | // as a relative value, so we will make sure that it is converted to a timestamp for consistent |
| 64 | 64 | // usage later on |
| 65 | 65 | if ($this->ttl < 60 * 60 * 24 * 30) { |
| 66 | - $this->ttl = time() + (int) $this->ttl; |
|
| 66 | + $this->ttl = time() + (int)$this->ttl; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $this->memcached->set($cacheKey, $data, $this->ttl); |