original_string: public function hasAnswer($answerId)
      {
          foreach ($this->answers as $answer) {
              if ($answer->id == $answerId) {
                  return true;
              }
          }
          return false;
      }
code: public function hasAnswer($answerId)
      {
          foreach ($this->answers as $answer) {
              if ($answer->id == $answerId) {
                  return true;
              }
          }
          return false;
      }
code_tokens: public function hasAnswer ( $ answerId ) { foreach ( $ this -> answers as $ answer ) { if ( $ answer -> id == $ answerId ) { return true ; } } return false ; }
docstring: Checks if poll has given answer.
  @param int $answerId
  @return bool
docstring_tokens: Checks if poll has given answer .