original_string: private function buildQuery($pattern, $args)
      {
  
          if (count($args['parameters']) > 0) {
  
              $string = $pattern[0];
          } else {
  
              $string = $pattern[1];
          }
  
          if (preg_match_all("/:(\w+)/", $string, $match)) {
  
              $match = $match[0];
              $values = array_values($args);
              return str_replace($match, $values, $string);
          }
      }
code: private function buildQuery($pattern, $args)
      {
  
          if (count($args['parameters']) > 0) {
  
              $string = $pattern[0];
          } else {
  
              $string = $pattern[1];
          }
  
          if (preg_match_all("/:(\w+)/", $string, $match)) {
  
              $match = $match[0];
              $values = array_values($args);
              return str_replace($match, $values, $string);
          }
      }
code_tokens: private function buildQuery ( $ pattern , $ args ) { if ( count ( $ args [ 'parameters' ] ) > 0 ) { $ string = $ pattern [ 0 ] ; } else { $ string = $ pattern [ 1 ] ; } if ( preg_match_all ( "/:(\w+)/" , $ string , $ match ) ) { $ match = $ match [ 0 ] ; $ values = array_values ( $ args ) ; return str_replace ( $ match , $ values , $ string ) ; } }
docstring: create the a sql query
  
  @param array $pattern
  @param array $args
  @return mixed
docstring_tokens: create the a sql query