Predis\Command\ZSetAdd::filterArguments PHP Method

filterArguments() protected method

protected filterArguments ( array $arguments )
$arguments array
    protected function filterArguments(array $arguments)
    {
        if (is_array(end($arguments))) {
            foreach (array_pop($arguments) as $member => $score) {
                $arguments[] = $score;
                $arguments[] = $member;
            }
        }
        return $arguments;
    }