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
@@ -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'");
}