mirror of
https://github.com/predis/predis.git
synced 2026-08-30 12:15:03 +00:00
Reduce lines of code.
This commit is contained in:
+1
-5
@@ -119,11 +119,7 @@ class Client {
|
||||
"Invalid connection alias: '$connectionAlias'"
|
||||
);
|
||||
}
|
||||
|
||||
$newClient = new Client();
|
||||
$newClient->setupClient($this->_options);
|
||||
$newClient->setConnection($connection);
|
||||
return $newClient;
|
||||
return new Client($connection, $this->_options);
|
||||
}
|
||||
|
||||
public function connect() {
|
||||
|
||||
Reference in New Issue
Block a user