mirror of
https://github.com/predis/predis.git
synced 2026-08-23 21:49:40 +00:00
Apply minor styling fix.
This commit is contained in:
@@ -158,6 +158,7 @@ class MasterSlaveReplication implements ReplicationInterface
|
||||
if (!$connection instanceof NodeConnectionInterface) {
|
||||
$connection = $this->getConnectionById($connection);
|
||||
}
|
||||
|
||||
if ($connection !== $this->master && !in_array($connection, $this->slaves, true)) {
|
||||
throw new \InvalidArgumentException('Invalid connection or connection not found.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user