Skip to content

Commit 756530d

Browse files
committed
Fix typo
1 parent d37bb8c commit 756530d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Dashboards/Redis/RedisDashboard.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ class RedisDashboard implements DashboardInterface {
2929

3030
public Compatibility\Redis|Compatibility\Predis $redis;
3131

32-
public string $clinet = '';
32+
public string $client = '';
3333

34-
public function __construct(private readonly Template $template, ?string $clinet = null) {
35-
$this->clinet = $clinet ?? (extension_loaded('redis') ? 'redis' : 'predis');
34+
public function __construct(private readonly Template $template, ?string $client = null) {
35+
$this->client = $client ?? (extension_loaded('redis') ? 'redis' : 'predis');
3636
$this->servers = Config::get('redis', []);
3737

3838
$server = Http::get('server', 0);
@@ -81,9 +81,9 @@ public function connect(array $server): Compatibility\Redis|Compatibility\Predis
8181
$server['password'] = trim(file_get_contents($server['authfile']));
8282
}
8383

84-
if ($this->clinet === 'redis') {
84+
if ($this->client === 'redis') {
8585
$redis = new Compatibility\Redis($server);
86-
} elseif ($this->clinet === 'predis') {
86+
} elseif ($this->client === 'predis') {
8787
$redis = new Compatibility\Predis($server);
8888
} else {
8989
throw new DashboardException('Redis extension or Predis is not installed.');

src/Dashboards/Redis/RedisTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ trait RedisTrait {
2323
use RedisTypes;
2424

2525
private function panels(): string {
26-
if ($this->clinet === 'redis') {
26+
if ($this->client === 'redis') {
2727
$title = 'PHP Redis extension v'.phpversion('redis');
28-
} elseif ($this->clinet === 'predis') {
28+
} elseif ($this->client === 'predis') {
2929
$title = 'Predis v'.Predis::VERSION;
3030
}
3131

0 commit comments

Comments
 (0)