protected function _generateSearchText(...$contentParts)
    {
        $searchText = '';
        foreach ($contentParts as $contentPart) {
            $contentPart = trim((string) $contentPart);
            if ($contentPart !== '') {
                $searchText .= $contentPart . ' ';
            }
        }
        $searchText = trim(strip_tags($searchText));
        return ($searchText !== '') ? $searchText : null;
    }
protected function _generateSearchText(...$contentParts)
    {
        $searchText = '';
        foreach ($contentParts as $contentPart) {
            $contentPart = trim((string) $contentPart);
            if ($contentPart !== '') {
                $searchText .= $contentPart . ' ';
            }
        }
        $searchText = trim(strip_tags($searchText));
        return ($searchText !== '') ? $searchText : null;
    }
protected function _generateSearchText ( ... $ contentParts ) { $ searchText = '' ; foreach ( $ contentParts as $ contentPart ) { $ contentPart = trim ( ( string ) $ contentPart ) ; if ( $ contentPart !== '' ) { $ searchText .= $ contentPart . ' ' ; } } $ searchText = trim ( strip_tags ( $ searchText ) ) ; return ( $ searchText !== '' ) ? $ searchText : null ; }
Joins all non whitespace parameters passed through as and returns string or null if only whitespace
Also removes HTML tags
@param array ...$contentParts
@return null|string
Joins all non whitespace parameters passed through as and returns string or null if only whitespace Also removes HTML tags