mirror of
https://github.com/predis/predis.git
synced 2026-10-10 22:07:31 +00:00
Apply some coding style changes.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user