original_string: protected function replaceParamInSql()/*# : string */
      {
          $count = 0;
          $params = $this->params;
          return preg_replace_callback(
              '/\?|\:\w+/',
              function ($m) use ($count, $params) {
                  if ('?' === $m[0]) {
                      $res = $params[$count++];
                  } else {
                      $res = isset($params[$m[0]]) ? $params[$m[0]] :
                          $params[substr($m[0], 1)];
                  }
                  return $this->getDriver()->quote($res);
              },
              $this->sql
          );
      }
code: protected function replaceParamInSql()/*# : string */
      {
          $count = 0;
          $params = $this->params;
          return preg_replace_callback(
              '/\?|\:\w+/',
              function ($m) use ($count, $params) {
                  if ('?' === $m[0]) {
                      $res = $params[$count++];
                  } else {
                      $res = isset($params[$m[0]]) ? $params[$m[0]] :
                          $params[substr($m[0], 1)];
                  }
                  return $this->getDriver()->quote($res);
              },
              $this->sql
          );
      }
code_tokens: protected function replaceParamInSql ( ) /*# : string */ { $ count = 0 ; $ params = $ this -> params ; return preg_replace_callback ( '/\?|\:\w+/' , function ( $ m ) use ( $ count , $ params ) { if ( '?' === $ m [ 0 ] ) { $ res = $ params [ $ count ++ ] ; } else { $ res = isset ( $ params [ $ m [ 0 ] ] ) ? $ params [ $ m [ 0 ] ] : $ params [ substr ( $ m [ 0 ] , 1 ) ] ; } return $ this -> getDriver ( ) -> quote ( $ res ) ; } , $ this -> sql ) ; }
docstring: Replace params in the SQL
  
  @return string
  @access protected
docstring_tokens: Replace params in the SQL