src/Command/PubSubPubsub.php
protected static function processNumsub(array $channels)
    {
        $processed = array();
        $count = count($channels);

        for ($i = 0; $i < $count; ++$i) {
            $processed[$channels[$i]] = $channels[++$i];
        }

        return $processed;
    }
protected static function processNumsub(array $channels)
    {
        $processed = array();
        $count = count($channels);

        for ($i = 0; $i < $count; ++$i) {
            $processed[$channels[$i]] = $channels[++$i];
        }

        return $processed;
    }
protected static function processNumsub ( array $ channels ) { $ processed = array ( ) ; $ count = count ( $ channels ) ; for ( $ i = 0 ; $ i < $ count ; ++ $ i ) { $ processed [ $ channels [ $ i ] ] = $ channels [ ++ $ i ] ; } return $ processed ; }
Returns the processed response to PUBSUB NUMSUB.

@param array $channels List of channels

@return array
Returns the processed response to PUBSUB NUMSUB .