original_string: public function hasErrorMessages() {
        $messages = $this->getMessages();
        foreach ($messages as $message) {
          if ($message->mt == 'error') {
            return true;
          }
        }
        return false;
      }
code: public function hasErrorMessages() {
        $messages = $this->getMessages();
        foreach ($messages as $message) {
          if ($message->mt == 'error') {
            return true;
          }
        }
        return false;
      }
code_tokens: public function hasErrorMessages ( ) { $ messages = $ this -> getMessages ( ) ; foreach ( $ messages as $ message ) { if ( $ message -> mt == 'error' ) { return true ; } } return false ; }
docstring: Checks into the message bag if there is some error message.
  Type == error
docstring_tokens: Checks into the message bag if there is some error message . Type == error