Minor code styling changes in Predis\Connection.

This commit is contained in:
Daniele Alessandri
2013-12-02 15:56:53 +01:00
parent ccf8822b4b
commit cf70d2f20e
5 changed files with 29 additions and 13 deletions
+10 -2
View File
@@ -136,7 +136,11 @@ abstract class AbstractConnection implements SingleConnectionInterface
*/
protected function onConnectionError($message, $code = null)
{
CommunicationException::handle(new ConnectionException($this, "$message [{$this->parameters->scheme}://{$this->getIdentifier()}]", $code));
CommunicationException::handle(
new ConnectionException(
$this, "$message [{$this->parameters->scheme}://{$this->getIdentifier()}]", $code
)
);
}
/**
@@ -146,7 +150,11 @@ abstract class AbstractConnection implements SingleConnectionInterface
*/
protected function onProtocolError($message)
{
CommunicationException::handle(new ProtocolException($this, "$message [{$this->parameters->scheme}://{$this->getIdentifier()}]"));
CommunicationException::handle(
new ProtocolException(
$this, "$message [{$this->parameters->scheme}://{$this->getIdentifier()}]"
)
);
}
/**