Skip to content

Commit

Permalink
Update: 修复代码样式
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed Feb 17, 2024
1 parent 788a01f commit 8a92ea6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Components/redis/src/Connector/PredisConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class PredisConnector implements IRedisConnector
public static function connect(RedisDriverConfig $config): PredisHandler
{
$params = [
'scheme' => 'tcp',
'host' => $config->host,
'port' => $config->port,
'scheme' => 'tcp',
'host' => $config->host,
'port' => $config->port,
'database' => $config->database,
];
if ($config->password)
Expand Down
2 changes: 0 additions & 2 deletions src/Components/redis/src/Connector/RedisConnectionDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
use Imi\ConnectionCenter\Contract\IConnectionConfig;
use Imi\Redis\Enum\RedisMode;
use Imi\Redis\Handler\IRedisHandler;
use Imi\Redis\Handler\PhpRedisHandler;
use Imi\Redis\Handler\PredisHandler;

class RedisConnectionDriver extends AbstractConnectionDriver
{
Expand Down
1 change: 1 addition & 0 deletions src/Components/redis/src/Handler/IRedisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ interface IRedisHandler
public function getInstance(): object;

public function isCluster(): bool;

public function isSupportSerialize(): bool;
}
1 change: 0 additions & 1 deletion src/Components/redis/src/RedisManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Imi\Config;
use Imi\ConnectionCenter\Contract\IConnection;
use Imi\ConnectionCenter\Enum\ConnectionStatus;
use Imi\ConnectionCenter\Facade\ConnectionCenter;
use Imi\Redis\Handler\IRedisHandler;

Expand Down

0 comments on commit 8a92ea6

Please sign in to comment.