@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | if ($staleIfErrorTo === null && $values->has('stale-if-error')) { |
| 72 | 72 | $this->staleIfErrorTo = (new \DateTime( |
| 73 | - '@'.($this->staleAt->getTimestamp() + (int) $values->get('stale-if-error')) |
|
| 73 | + '@'.($this->staleAt->getTimestamp() + (int)$values->get('stale-if-error')) |
|
| 74 | 74 | )); |
| 75 | 75 | } else { |
| 76 | 76 | $this->staleIfErrorTo = $staleIfErrorTo; |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | if ($staleWhileRevalidateTo === null && $values->has('stale-while-revalidate')) { |
| 80 | 80 | $this->staleWhileRevalidateTo = new \DateTime( |
| 81 | - '@'.($this->staleAt->getTimestamp() + (int) $values->get('stale-while-revalidate')) |
|
| 81 | + '@'.($this->staleAt->getTimestamp() + (int)$values->get('stale-while-revalidate')) |
|
| 82 | 82 | ); |
| 83 | 83 | } else { |
| 84 | 84 | $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 | /** |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | private static function restoreStreamBody(MessageInterface $message): MessageInterface |
| 313 | 313 | { |
| 314 | 314 | return $message->withBody( |
| 315 | - \GuzzleHttp\Psr7\Utils::streamFor((string) $message->getBody()) |
|
| 315 | + \GuzzleHttp\Psr7\Utils::streamFor((string)$message->getBody()) |
|
| 316 | 316 | ); |
| 317 | 317 | } |
| 318 | 318 | |