protected function getReportErrors(\Asgard\Validation\Report $report) {
		if($report->attributes()) {
			$errors = [];
			foreach($report->attributes() as $attribute=>$attrReport) {
				$attrErrors = $this->getReportErrors($attrReport);
				if($attrErrors)
					$errors[$attribute] = $attrErrors;
			}
			return $errors;
		}
		else
			return $report->errors();
	}
protected function getReportErrors(\Asgard\Validation\Report $report) {
		if($report->attributes()) {
			$errors = [];
			foreach($report->attributes() as $attribute=>$attrReport) {
				$attrErrors = $this->getReportErrors($attrReport);
				if($attrErrors)
					$errors[$attribute] = $attrErrors;
			}
			return $errors;
		}
		else
			return $report->errors();
	}
protected function getReportErrors ( \ Asgard \ Validation \ Report $ report ) { if ( $ report -> attributes ( ) ) { $ errors = [ ] ; foreach ( $ report -> attributes ( ) as $ attribute => $ attrReport ) { $ attrErrors = $ this -> getReportErrors ( $ attrReport ) ; if ( $ attrErrors ) $ errors [ $ attribute ] = $ attrErrors ; } return $ errors ; } else return $ report -> errors ( ) ; }
Return array of errors from a report.
@param  \Asgard\Validation\Report $report
@return array
Return array of errors from a report .