Skip to content

Commit 85b0096

Browse files
committed
const renamed
1 parent 840b90f commit 85b0096

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Repositories/RedisRepository.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
readonly class RedisRepository implements Repository
1717
{
18-
private const STATUS_KEY = 'top-status';
18+
private const TOP_STATUS_KEY = 'top-status';
1919

2020
public function __construct(
2121
private Connection $connection
@@ -209,17 +209,17 @@ public function getTopRoutes(): RouteCollection
209209

210210
public function recorderExists(): bool
211211
{
212-
return $this->connection->exists(self::STATUS_KEY) === 1; // @phpstan-ignore-line
212+
return $this->connection->exists(self::TOP_STATUS_KEY) === 1; // @phpstan-ignore-line
213213
}
214214

215215
public function setRecorder(int $duration = 5): void
216216
{
217-
$this->connection->setex(self::STATUS_KEY, $duration, true); // @phpstan-ignore-line
217+
$this->connection->setex(self::TOP_STATUS_KEY, $duration, true); // @phpstan-ignore-line
218218
}
219219

220220
public function deleteRecorder(): void
221221
{
222-
$this->connection->del(self::STATUS_KEY); // @phpstan-ignore-line
222+
$this->connection->del(self::TOP_STATUS_KEY); // @phpstan-ignore-line
223223
}
224224

225225
private function execute(string $script): array

0 commit comments

Comments
 (0)