File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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. ' );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments