original_string: protected function _getTokenFromToSql($from, $to, $fieldName)
      {
          $lsDb = $this->getSourceDatabase();
          if ($from) {
              // Build the sql statement using recursion
              return 'REPLACE(' .
                  $this->_getTokenFromToSql(substr($from, 1), substr($to, 1), $fieldName) . ', ' .
                  $lsDb->quote($from[0]) . ', ' .
                  $lsDb->quote($to[0]) . ')';
          } else {
              return $lsDb->quoteIdentifier($fieldName);
          }
      }
code: protected function _getTokenFromToSql($from, $to, $fieldName)
      {
          $lsDb = $this->getSourceDatabase();
          if ($from) {
              // Build the sql statement using recursion
              return 'REPLACE(' .
                  $this->_getTokenFromToSql(substr($from, 1), substr($to, 1), $fieldName) . ', ' .
                  $lsDb->quote($from[0]) . ', ' .
                  $lsDb->quote($to[0]) . ')';
          } else {
              return $lsDb->quoteIdentifier($fieldName);
          }
      }
code_tokens: protected function _getTokenFromToSql ( $ from , $ to , $ fieldName ) { $ lsDb = $ this -> getSourceDatabase ( ) ; if ( $ from ) { // Build the sql statement using recursion return 'REPLACE(' . $ this -> _getTokenFromToSql ( substr ( $ from , 1 ) , substr ( $ to , 1 ) , $ fieldName ) . ', ' . $ lsDb -> quote ( $ from [ 0 ] ) . ', ' . $ lsDb -> quote ( $ to [ 0 ] ) . ')' ; } else { return $ lsDb -> quoteIdentifier ( $ fieldName ) ; } }
docstring: Creates a SQL update statement for tokens that do not
  have a correct name and are in a tokens table.
  
  @param string $from The tokens that should not occur
  @param string $to The tokens that replace them
  @param string $fieldName Name of database field to use
  @return string
docstring_tokens: Creates a SQL update statement for tokens that do not have a correct name and are in a tokens table .