original_string: public function quote($value)
      {
          if (is_array($value)) {
              $result = [];
              foreach ($value as $single) {
                  $result[] = $this->quote($single);
              }
              return sprintf(
                  '(%s)',
                  implode(', ', $result)
              );
          } else {
              return $this->pdo->quote($value);
          }
      }
code: public function quote($value)
      {
          if (is_array($value)) {
              $result = [];
              foreach ($value as $single) {
                  $result[] = $this->quote($single);
              }
              return sprintf(
                  '(%s)',
                  implode(', ', $result)
              );
          } else {
              return $this->pdo->quote($value);
          }
      }
code_tokens: public function quote ( $ value ) { if ( is_array ( $ value ) ) { $ result = [ ] ; foreach ( $ value as $ single ) { $ result [ ] = $ this -> quote ( $ single ) ; } return sprintf ( '(%s)' , implode ( ', ' , $ result ) ) ; } else { return $ this -> pdo -> quote ( $ value ) ; } }
docstring: Quote a value for use in a query.
  @param  $value
  @return string
docstring_tokens: Quote a value for use in a query .