original_string: public function query(string $sql, array $values = []): int
      {
          return $this->dbConnection->prepare($sql)
                  ->execute($values)
                  ->count();
      }
code: public function query(string $sql, array $values = []): int
      {
          return $this->dbConnection->prepare($sql)
                  ->execute($values)
                  ->count();
      }
code_tokens: public function query ( string $ sql , array $ values = [ ] ) : int { return $ this -> dbConnection -> prepare ( $ sql ) -> execute ( $ values ) -> count ( ) ; }
docstring: sends a query to the database and returns amount of affected records
  
  @param   string  $sql
  @param   array   $values
  @return  int
  @since   3.1.0
docstring_tokens: sends a query to the database and returns amount of affected records