src/package/Version.php
protected function replaceVariables($string)
    {
        do {
            $original = $string;

            $string = $this->searchAndReplaceVariables($string);
        } while ($original !== $string);

        return $string;
    }
protected function replaceVariables($string)
    {
        do {
            $original = $string;

            $string = $this->searchAndReplaceVariables($string);
        } while ($original !== $string);

        return $string;
    }
protected function replaceVariables ( $ string ) { do { $ original = $ string ; $ string = $ this -> searchAndReplaceVariables ( $ string ) ; } while ( $ original !== $ string ) ; return $ string ; }
Replace text variables with their values.

@param $string

@return mixed
Replace text variables with their values .