More code styling changes.

This commit is contained in:
Daniele Alessandri
2012-07-27 12:23:25 +02:00
parent 6c732c737b
commit 55a3fd65a2
75 changed files with 260 additions and 232 deletions
+3 -5
View File
@@ -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;