mirror of
https://github.com/predis/predis.git
synced 2026-10-17 01:06:20 +00:00
More code styling changes.
This commit is contained in:
@@ -189,10 +189,9 @@ class Client implements ClientInterface
|
||||
{
|
||||
if (isset($id)) {
|
||||
if (!$this->connection instanceof AggregatedConnectionInterface) {
|
||||
throw new NotSupportedException(
|
||||
'Retrieving connections by alias is supported only with aggregated connections (cluster or replication)'
|
||||
);
|
||||
throw new NotSupportedException('Retrieving connections by alias is supported only with aggregated connections');
|
||||
}
|
||||
|
||||
return $this->connection->getConnectionById($id);
|
||||
}
|
||||
|
||||
@@ -257,8 +256,7 @@ class Client implements ClientInterface
|
||||
}
|
||||
|
||||
if ($this->options->exceptions === true) {
|
||||
$message = $response->getMessage();
|
||||
throw new ServerException($message);
|
||||
throw new ServerException($response->getMessage());
|
||||
}
|
||||
|
||||
return $response;
|
||||
|
||||
Reference in New Issue
Block a user