mirror of
https://github.com/predis/predis.git
synced 2026-10-13 07:18:10 +00:00
More code styling changes.
This commit is contained in:
@@ -83,11 +83,13 @@ class TextResponseReader implements ResponseReaderInterface
|
||||
public function read(ComposableConnectionInterface $connection)
|
||||
{
|
||||
$header = $connection->readLine();
|
||||
|
||||
if ($header === '') {
|
||||
$this->protocolError($connection, 'Unexpected empty header');
|
||||
}
|
||||
|
||||
$prefix = $header[0];
|
||||
|
||||
if (!isset($this->handlers[$prefix])) {
|
||||
$this->protocolError($connection, "Unknown prefix '$prefix'");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user