Apply some coding style changes.

This commit is contained in:
Daniele Alessandri
2011-10-18 15:03:04 +02:00
parent 4251664095
commit 20d872a306
222 changed files with 2789 additions and 1281 deletions
@@ -8,14 +8,18 @@ use Predis\Protocol\ProtocolException;
use Predis\Network\IConnectionComposable;
use Predis\Iterators\MultiBulkResponseSimple;
class ResponseMultiBulkStreamHandler implements IResponseHandler {
public function handle(IConnectionComposable $connection, $lengthString) {
class ResponseMultiBulkStreamHandler implements IResponseHandler
{
public function handle(IConnectionComposable $connection, $lengthString)
{
$length = (int) $lengthString;
if ($length != $lengthString) {
Helpers::onCommunicationException(new ProtocolException(
$connection, "Cannot parse '$length' as data length"
));
}
return new MultiBulkResponseSimple($connection, $length);
}
}