original_string: public function getErrorHeader()
  	{
  		$err_str = '';
  		$error_class = $this->getErrors();
  		$error_session = Session::get($this->errors_key);
  
  		if( $error_class )
  		{
  			foreach ($error_class->all() as $error_key => $error) {
  				$err_str.="<div class=\"alert alert-danger\">{$error}</div>";
  			}
  		}
  
  		if( $error_session)
  		{
  			foreach ($error_session->all() as $error_key => $error) {
  				$err_str.="<div class=\"alert alert-danger\">{$error}</div>";
  			}
  		}
  
  		$this->resetErrors();
  
  		return $err_str;
  	}
code: public function getErrorHeader()
  	{
  		$err_str = '';
  		$error_class = $this->getErrors();
  		$error_session = Session::get($this->errors_key);
  
  		if( $error_class )
  		{
  			foreach ($error_class->all() as $error_key => $error) {
  				$err_str.="<div class=\"alert alert-danger\">{$error}</div>";
  			}
  		}
  
  		if( $error_session)
  		{
  			foreach ($error_session->all() as $error_key => $error) {
  				$err_str.="<div class=\"alert alert-danger\">{$error}</div>";
  			}
  		}
  
  		$this->resetErrors();
  
  		return $err_str;
  	}
code_tokens: public function getErrorHeader ( ) { $ err_str = '' ; $ error_class = $ this -> getErrors ( ) ; $ error_session = Session :: get ( $ this -> errors_key ) ; if ( $ error_class ) { foreach ( $ error_class -> all ( ) as $ error_key => $ error ) { $ err_str .= "<div class=\"alert alert-danger\">{$error}</div>" ; } } if ( $ error_session ) { foreach ( $ error_session -> all ( ) as $ error_key => $ error ) { $ err_str .= "<div class=\"alert alert-danger\">{$error}</div>" ; } } $ this -> resetErrors ( ) ; return $ err_str ; }
docstring: Print the form errors if exists
  
  @return String|null
docstring_tokens: Print the form errors if exists