original_string: public function exists($entity, $entity_id, $user_id)
      {
          $sql = 'SELECT history_id FROM history WHERE entity=? AND entity_id=? AND user_id=?';
          return (bool) $this->db->fetchColumn($sql, array($entity, $entity_id, $user_id));
      }
code: public function exists($entity, $entity_id, $user_id)
      {
          $sql = 'SELECT history_id FROM history WHERE entity=? AND entity_id=? AND user_id=?';
          return (bool) $this->db->fetchColumn($sql, array($entity, $entity_id, $user_id));
      }
code_tokens: public function exists ( $ entity , $ entity_id , $ user_id ) { $ sql = 'SELECT history_id FROM history WHERE entity=? AND entity_id=? AND user_id=?' ; return ( bool ) $ this -> db -> fetchColumn ( $ sql , array ( $ entity , $ entity_id , $ user_id ) ) ; }
docstring: Whether a record exists in the history table
  @param string $entity
  @param int $entity_id
  @param int $user_id
  @return bool
docstring_tokens: Whether a record exists in the history table