This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
16
{
17
3
foreach ($configs as $name => $config) {
18
3
if (isset($config['dsn'])) {
19
2
$this->parseDsn($config);
20
}
21
22
3
$check = new Redis($config['host'], $config['port'], $config['password']);
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
38
/*
39
* since "redis://my-super-secret-password@redis-host:6379" is a valid redis
40
* dsn but \parse_url does not understand this notation and extracts the auth as user,
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.