public function data($metrics = [])
{
if (func_num_args() === 0) {
return $this->_metrics;
}
$this->_metrics = $metrics + $this->_metrics;
if ($this->_metrics['lloc']) {
$this->_metrics['percent'] = $this->_metrics['cloc'] * 100 / $this->_metrics['lloc'];
} else {
$this->_metrics['percent'] = 100;
}
}