src/Command/Command.php
public static function normalizeVariadic(array $arguments)
    {
        if (count($arguments) === 2 && is_array($arguments[1])) {
            return array_merge(array($arguments[0]), $arguments[1]);
        }

        return $arguments;
    }
public static function normalizeVariadic(array $arguments)
    {
        if (count($arguments) === 2 && is_array($arguments[1])) {
            return array_merge(array($arguments[0]), $arguments[1]);
        }

        return $arguments;
    }
public static function normalizeVariadic ( array $ arguments ) { if ( count ( $ arguments ) === 2 && is_array ( $ arguments [ 1 ] ) ) { return array_merge ( array ( $ arguments [ 0 ] ) , $ arguments [ 1 ] ) ; } return $ arguments ; }
Normalizes the arguments array passed to a variadic Redis command.

@param array $arguments Arguments for a command.

@return array
Normalizes the arguments array passed to a variadic Redis command .