@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | if ($staleIfErrorTo === null && $values->has('stale-if-error')) { |
| 78 | 78 | $this->staleIfErrorTo = (new \DateTime( |
| 79 | - '@'.($this->staleAt->getTimestamp() + (int) $values->get('stale-if-error')) |
|
| 79 | + '@'.($this->staleAt->getTimestamp() + (int)$values->get('stale-if-error')) |
|
| 80 | 80 | )); |
| 81 | 81 | } else { |
| 82 | 82 | $this->staleIfErrorTo = $staleIfErrorTo; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | if ($staleWhileRevalidateTo === null && $values->has('stale-while-revalidate')) { |
| 86 | 86 | $this->staleWhileRevalidateTo = new \DateTime( |
| 87 | - '@'.($this->staleAt->getTimestamp() + (int) $values->get('stale-while-revalidate')) |
|
| 87 | + '@'.($this->staleAt->getTimestamp() + (int)$values->get('stale-while-revalidate')) |
|
| 88 | 88 | ); |
| 89 | 89 | } else { |
| 90 | 90 | $this->staleWhileRevalidateTo = $staleWhileRevalidateTo; |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | $ttl = max($ttl, $this->staleAt->getTimestamp() - time()); |
| 247 | 247 | |
| 248 | 248 | // Don't return 0, it's reserved for infinite TTL |
| 249 | - return $ttl !== 0 ? (int) $ttl : -1; |
|
| 249 | + return $ttl !== 0 ? (int)$ttl : -1; |
|
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | /** |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | { |
| 262 | 262 | // Stream/Resource can't be serialized... So we copy the content |
| 263 | 263 | if ($this->response !== null) { |
| 264 | - $this->responseBody = (string) $this->response->getBody(); |
|
| 264 | + $this->responseBody = (string)$this->response->getBody(); |
|
| 265 | 265 | $this->response->getBody()->rewind(); |
| 266 | 266 | } |
| 267 | 267 | |