classes/ezfezpsolrquerybuilder.php
static function quoteIfNeeded( $value )
    {
        $quote = '';
        if ( strpos( $value, ' ' ) !== false )
        {
            $quote = '"';
            if ( strpos( trim( $value ), '(' ) === 0 )
            {
                $quote = '';
            }
        }
        return $quote . $value . $quote;
    }
static function quoteIfNeeded( $value )
    {
        $quote = '';
        if ( strpos( $value, ' ' ) !== false )
        {
            $quote = '"';
            if ( strpos( trim( $value ), '(' ) === 0 )
            {
                $quote = '';
            }
        }
        return $quote . $value . $quote;
    }
static function quoteIfNeeded ( $ value ) { $ quote = '' ; if ( strpos ( $ value , ' ' ) !== false ) { $ quote = '"' ; if ( strpos ( trim ( $ value ) , '(' ) === 0 ) { $ quote = '' ; } } return $ quote . $ value . $ quote ; }
Analyze the string, and decide if quotes should be added or not.

@param string String

@return string String with quotes added if needed.
@deprecated
Analyze the string and decide if quotes should be added or not .