public function make($text, $options = null)
    {
        $this->setUserOptions($options);  // set user defined options

        $text = $this->decode($text);  // decode UTF-8 chars

        $text = trim($text);  // trim

        $text = $this->lower($text);  // convert to lowercase

        $text = $this->strip($text);  // strip HTML

        $text = $this->filter($text);  // filter the input

        //chop?
        if (strlen($text) > $this->maxlength) {
            $text = substr($text, 0, $this->maxlength);

            if ($this->whole_word) {
                /*
                 * If maxlength is small and leaves us with only part of one
                 * word ignore the "whole_word" filtering.
                 */
                $words = explode($this->separator, $text);
                $temp = implode($this->separator, array_diff($words, [array_pop($words)]));
                if ($temp != '') {
                    $text = $temp;
                }
            }

            $text = rtrim($text, $this->separator); // remove any trailing separators
        }
        //return =]
        if ($text == '') {
            return $this->blank;
        }

        return $text;
    }
public function make($text, $options = null)
    {
        $this->setUserOptions($options);  // set user defined options

        $text = $this->decode($text);  // decode UTF-8 chars

        $text = trim($text);  // trim

        $text = $this->lower($text);  // convert to lowercase

        $text = $this->strip($text);  // strip HTML

        $text = $this->filter($text);  // filter the input

        //chop?
        if (strlen($text) > $this->maxlength) {
            $text = substr($text, 0, $this->maxlength);

            if ($this->whole_word) {
                /*
                 * If maxlength is small and leaves us with only part of one
                 * word ignore the "whole_word" filtering.
                 */
                $words = explode($this->separator, $text);
                $temp = implode($this->separator, array_diff($words, [array_pop($words)]));
                if ($temp != '') {
                    $text = $temp;
                }
            }

            $text = rtrim($text, $this->separator); // remove any trailing separators
        }
        //return =]
        if ($text == '') {
            return $this->blank;
        }

        return $text;
    }
public function make ( $ text , $ options = null ) { $ this -> setUserOptions ( $ options ) ; // set user defined options $ text = $ this -> decode ( $ text ) ; // decode UTF-8 chars $ text = trim ( $ text ) ; // trim $ text = $ this -> lower ( $ text ) ; // convert to lowercase $ text = $ this -> strip ( $ text ) ; // strip HTML $ text = $ this -> filter ( $ text ) ; // filter the input //chop? if ( strlen ( $ text ) > $ this -> maxlength ) { $ text = substr ( $ text , 0 , $ this -> maxlength ) ; if ( $ this -> whole_word ) { /*
                 * If maxlength is small and leaves us with only part of one
                 * word ignore the "whole_word" filtering.
                 */ $ words = explode ( $ this -> separator , $ text ) ; $ temp = implode ( $ this -> separator , array_diff ( $ words , [ array_pop ( $ words ) ] ) ) ; if ( $ temp != '' ) { $ text = $ temp ; } } $ text = rtrim ( $ text , $ this -> separator ) ; // remove any trailing separators } //return =] if ( $ text == '' ) { return $ this -> blank ; } return $ text ; }
the worker method.

@param string $text

@return string
the worker method .