mirror of
https://github.com/predis/predis.git
synced 2026-10-14 07:47:49 +00:00
Minor code styling changes in Predis\Connection.
This commit is contained in:
@@ -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()}]"
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user