original_string: protected function createErrorEntry($error, $parse_errors)
      {
          $marker_obj = new \DOMElement(strtolower($error->getSeverity()));
          $parse_errors->appendChild($marker_obj);
  
          $message = ($this->getTranslator())
              ? vsprintf($this->getTranslator()->translate($error->getCode()), $error->getContext())
              : $error->getCode();
  
          $marker_obj->appendChild(new \DOMText($message));
          $marker_obj->setAttribute('line', $error->getLine());
          $marker_obj->setAttribute('code', $error->getCode());
      }
code: protected function createErrorEntry($error, $parse_errors)
      {
          $marker_obj = new \DOMElement(strtolower($error->getSeverity()));
          $parse_errors->appendChild($marker_obj);
  
          $message = ($this->getTranslator())
              ? vsprintf($this->getTranslator()->translate($error->getCode()), $error->getContext())
              : $error->getCode();
  
          $marker_obj->appendChild(new \DOMText($message));
          $marker_obj->setAttribute('line', $error->getLine());
          $marker_obj->setAttribute('code', $error->getCode());
      }
code_tokens: protected function createErrorEntry ( $ error , $ parse_errors ) { $ marker_obj = new \ DOMElement ( strtolower ( $ error -> getSeverity ( ) ) ) ; $ parse_errors -> appendChild ( $ marker_obj ) ; $ message = ( $ this -> getTranslator ( ) ) ? vsprintf ( $ this -> getTranslator ( ) -> translate ( $ error -> getCode ( ) ) , $ error -> getContext ( ) ) : $ error -> getCode ( ) ; $ marker_obj -> appendChild ( new \ DOMText ( $ message ) ) ; $ marker_obj -> setAttribute ( 'line' , $ error -> getLine ( ) ) ; $ marker_obj -> setAttribute ( 'code' , $ error -> getCode ( ) ) ; }
docstring: Creates an entry in the ParseErrors collection of a file for a given error.
  
  @param Error       $error
  @param \DOMElement $parse_errors
  
  @return void
docstring_tokens: Creates an entry in the ParseErrors collection of a file for a given error .