@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | /** |
284 | 284 | * Convert the various expressions of a TTL value into duration in seconds. |
285 | 285 | */ |
286 | - protected function duration(\DateInterval|int|null $ttl): int |
|
286 | + protected function duration(\DateInterval | int | null $ttl): int |
|
287 | 287 | { |
288 | 288 | if ($ttl === null) { |
289 | 289 | return $this->duration; |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | return $ttl; |
293 | 293 | } |
294 | 294 | if ($ttl instanceof \DateInterval) { |
295 | - return (int)$ttl->format('%s'); |
|
295 | + return (int) $ttl->format('%s'); |
|
296 | 296 | } |
297 | 297 | |
298 | 298 | throw new \InvalidArgumentException('TTL values must be one of null, int, \DateInterval'); |