src/Command/ServerSentinel.php
protected static function processMastersOrSlaves(array $servers)
    {
        foreach ($servers as $idx => $node) {
            $processed = array();
            $count = count($node);

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

            $servers[$idx] = $processed;
        }

        return $servers;
    }
protected static function processMastersOrSlaves(array $servers)
    {
        foreach ($servers as $idx => $node) {
            $processed = array();
            $count = count($node);

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

            $servers[$idx] = $processed;
        }

        return $servers;
    }
protected static function processMastersOrSlaves ( array $ servers ) { foreach ( $ servers as $ idx => $ node ) { $ processed = array ( ) ; $ count = count ( $ node ) ; for ( $ i = 0 ; $ i < $ count ; ++ $ i ) { $ processed [ $ node [ $ i ] ] = $ node [ ++ $ i ] ; } $ servers [ $ idx ] = $ processed ; } return $ servers ; }
Returns a processed response to SENTINEL MASTERS or SENTINEL SLAVES.

@param array $servers List of Redis servers.

@return array
Returns a processed response to SENTINEL MASTERS or SENTINEL SLAVES .