Skip to content

Commit 9c125c6

Browse files
AlexVanderbistgithub-actions[bot]
authored andcommitted
Fix styling
1 parent b789b64 commit 9c125c6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/FlexibleCache.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ public function usingRepository(CacheRepository $repository): self
4545
*
4646
* @param string $key The cache key
4747
* @param array{0: DateTimeInterface|DateInterval|int, 1: DateTimeInterface|DateInterval|int} $ttl
48-
* First value: seconds the cache is considered "fresh"
49-
* Second value: seconds the cache can be served as "stale" before hard expiration
48+
* First value: seconds the cache is considered "fresh"
49+
* Second value: seconds the cache can be served as "stale" before hard expiration
5050
* @param callable(): TCacheValue $callback The callback to generate the cached value
5151
* @param array{seconds?: int, owner?: string}|null $lock Optional lock configuration
52-
*
5352
* @return TCacheValue
5453
*/
5554
public function flexible(string $key, array $ttl, callable $callback, ?array $lock = null): mixed
@@ -86,7 +85,7 @@ public function flexible(string $key, array $ttl, callable $callback, ?array $lo
8685

8786
// Value is stale. Return it but schedule refresh in terminating callback only once (see $this->scheduled)
8887
// Use object ID to differentiate between cache stores
89-
$scheduledKey = "illuminate:cache:flexible:".spl_object_id($cache).":".$key;
88+
$scheduledKey = 'illuminate:cache:flexible:'.spl_object_id($cache).':'.$key;
9089

9190
if (! isset($this->scheduled[$scheduledKey])) {
9291
$this->scheduled[$scheduledKey] = true;

0 commit comments

Comments
 (0)