protected function getNiceSuggestion($collation = '')
    {
        $collationParts = explode(' ', $collation);

        // Remove advanced query params from the beginning of each collation part.
        foreach ($collationParts as $key => &$part) {
            $part = ltrim($part, '+');
        }

        return implode(' ', $collationParts);
    }
protected function getNiceSuggestion($collation = '')
    {
        $collationParts = explode(' ', $collation);

        // Remove advanced query params from the beginning of each collation part.
        foreach ($collationParts as $key => &$part) {
            $part = ltrim($part, '+');
        }

        return implode(' ', $collationParts);
    }
protected function getNiceSuggestion ( $ collation = '' ) { $ collationParts = explode ( ' ' , $ collation ) ; // Remove advanced query params from the beginning of each collation part. foreach ( $ collationParts as $ key => & $ part ) { $ part = ltrim ( $ part , '+' ) ; } return implode ( ' ' , $ collationParts ) ; }
Extract a human friendly spelling suggestion from a Solr spellcheck collation string.
@param string $collation
@return String
Extract a human friendly spelling suggestion from a Solr spellcheck collation string .