public function lint()
{
$this->node = null;
if (is_null($this->tokens)) {
$this->debug("Syntax error in file.. Skipping\n", 0, OPT_VERBOSE);
} elseif ($this->tcount === 0) {
$this->debug("Empty file.. Skipping\n", 0, OPT_VERBOSE);
} else {
$this->node = $this->measure_file();
$lint = new Lint\LFile($this->node, $this->config);
$this->report = $lint->lint();
$this->score = $lint->penalty();
if (!empty($this->report)) {
foreach ($this->report as $_) {
$arr[] = $_['line'];
}
array_multisort($arr, SORT_ASC, $this->report);
}
}
return $this->report;
}