original_string: public function appendError($error_key, $error_string)
  	{
  		if($this->getErrors())
  		{
  			// append
  			$this->errors->add( $error_key, $error_string );
  		}
  		else
  		{
  			// new MessageBag
  			$this->errors = new MessageBag( array($error_key => $error_string) );
  		}
  	}
code: public function appendError($error_key, $error_string)
  	{
  		if($this->getErrors())
  		{
  			// append
  			$this->errors->add( $error_key, $error_string );
  		}
  		else
  		{
  			// new MessageBag
  			$this->errors = new MessageBag( array($error_key => $error_string) );
  		}
  	}
code_tokens: public function appendError ( $ error_key , $ error_string ) { if ( $ this -> getErrors ( ) ) { // append $ this -> errors -> add ( $ error_key , $ error_string ) ; } else { // new MessageBag $ this -> errors = new MessageBag ( array ( $ error_key => $ error_string ) ) ; } }
docstring: Append error to the MessageBag
docstring_tokens: Append error to the MessageBag